/* ==========================================================================
   Miniflipbook — estilos
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --text: #676767;
  --heading: #444;
  --header-dark: #1f1f1f;
  --footer-bg: #252525;
  --divider: #333;
  --muted: #777;
  --light: #ccc;
  --whatsapp: #25d366;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 90px;
  --container: 1425px;
  --header-h: 86px;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 26px;
  font-weight: 400;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font); margin: 0; }

p { margin: 0 0 21px; }

ul { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
}

.page--inner .site-header {
  position: relative;
  background: var(--header-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 30px;
  width: auto;
}

.main-nav { display: flex; align-items: center; }

.main-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.main-nav__list > li > a {
  position: relative;
  display: block;
  margin: 0 10px;
  padding: 4px 0;
  color: var(--white);
  font-size: 14px;
  line-height: 20px;
  transition: color 0.2s;
}

/* Subrayado animado (igual al tema original) */
.main-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav__list > li > a:hover::after,
.main-nav__list > li > a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.page--inner .main-nav__list > li > a { color: #a0a0a0; }
.page--inner .main-nav__list > li > a:hover { color: var(--white); }

.social-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin-left: 14px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  opacity: 1;
  transition: opacity 0.2s;
}
.social-links a:hover { opacity: 0.7; }
.social-links svg { width: 15px; height: 15px; fill: currentColor; }

.page--inner .social-links a { color: #a0a0a0; }
.page--inner .social-links a:hover { color: var(--white); opacity: 1; }

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 1001;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 3px;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.2s;
}
.menu-toggle span { top: 14px; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Menú mobile a pantalla completa */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 30px 40px;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .site-header { z-index: 1001; }
.menu-open { overflow: hidden; }

.mobile-menu__list {
  list-style: none;
  text-align: center;
}
.mobile-menu__list li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.menu-open .mobile-menu__list li { opacity: 1; transform: none; }
.menu-open .mobile-menu__list li:nth-child(2) { transition-delay: 0.06s; }
.menu-open .mobile-menu__list li:nth-child(3) { transition-delay: 0.12s; }

.mobile-menu__list a {
  display: inline-block;
  padding: 10px 0;
  color: var(--white);
  font-size: 34px;
  line-height: 1.3;
  font-weight: 600;
}

.mobile-menu .social-links {
  position: absolute;
  bottom: 40px;
  margin: 0;
  gap: 8px;
}
.mobile-menu .social-links svg { width: 18px; height: 18px; }

@media (max-width: 999px) {
  :root { --gutter: 30px; --header-h: 70px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .logo img { height: 24px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--black);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hero__mobile { display: none; }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 60px;
}

.hero__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hero__title {
  color: var(--white);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.hero__text {
  color: var(--white);
  font-size: 1.1rem;
  max-width: 400px;
  line-height: 1.5;
  margin: 0 0 10px;
}

@media (max-width: 768px) {
  .hero__desktop { display: none; }
  .hero__mobile { display: block; height: 100%; }
  .hero__grid { flex-direction: column; align-items: flex-start; }
  .hero__title { font-size: 2.5rem; }
  .hero__content { padding: 30px; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */

.section {
  background: var(--black);
  color: var(--white);
}

/* ¿Qué es un flipbook? */
.about {
  padding-top: 5vw;
  padding-bottom: 1vw;
}

/* Mismo ancho total que .creator__grid (560 + 80 + 360) para que los bordes coincidan */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 480px);
  justify-content: center;
  align-items: center;
  gap: 0 80px;
  padding-bottom: 1%;
}

.about__media img {
  width: 100%;
  max-width: 440px;
}

.about__title {
  color: var(--white);
  font-size: 34px;
  line-height: 44px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about__text p,
.about__text li {
  color: var(--white);
  font-size: 16px;
  line-height: 26px;
  margin: 0 0 20px;
}

.about__text ul {
  list-style: none;
  margin: 0 0 20px;
}
.about__text li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 22px;
}
.about__text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

@media (max-width: 999px) {
  .about { padding-top: 14vw; }
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 50px; }
}

@media (max-width: 690px) {
  .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .about__media img { margin: 0 auto; max-width: 320px; }
  .about__title { font-size: 28px; line-height: 36px; }
}

/* Divisor */
.divider {
  padding: 10px 0 1vw;
}
.divider__line {
  height: 1px;
  background: var(--divider);
  opacity: 0.93;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease);
}
.divider.is-visible .divider__line { transform: scaleX(1); }

/* Creador de Flipbook */
.creator {
  padding: 60px 0 4vw;
}

.creator__grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 360px);
  justify-content: center;
  align-items: center;
  gap: 0 80px;
}

.creator__text {
  max-width: 560px;
}

.creator__pill {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.creator__title {
  color: var(--white);
  font-size: 34px;
  line-height: 44px;
  font-weight: 600;
  margin-bottom: 20px;
}

.creator__text p,
.creator__steps li {
  color: var(--white);
  font-size: 16px;
  line-height: 26px;
}

.creator__steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 30px;
  padding: 0;
}
.creator__steps li {
  position: relative;
  counter-increment: step;
  margin: 0 0 14px;
  padding-left: 46px;
}
.creator__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}
.creator__steps strong { font-weight: 600; }

.btn-creator {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 5px;
  background: var(--white);
  color: var(--black);
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  transition: background 0.2s, transform 0.2s;
}
.btn-creator:hover { background: var(--light); transform: translateY(-2px); }

.creator__video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.06);
}
.creator__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 999px) {
  .creator__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 0 50px; }
}

@media (max-width: 690px) {
  .creator { padding-top: 40px; }
  .creator__grid { grid-template-columns: 1fr; gap: 36px; }
  .creator__text { max-width: none; }
  .creator__title { font-size: 28px; line-height: 36px; }
  .creator__media { width: 100%; max-width: 320px; margin: 0 auto; }
}

/* Clientes */
.clients {
  padding: 10px 0 1vw;
  overflow: hidden;
}

.clients__inner {
  padding: 50px 0;
  text-align: center;
  overflow: hidden;
}

.clients__title {
  color: var(--white);
  font-family: sans-serif;
  font-size: 34px;
  line-height: 44px;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slide-track {
  display: flex;
  list-style: none;
  width: max-content;
  animation: logos-scroll 40s linear infinite;
}

.slider:hover .slide-track { animation-play-state: paused; }

.slide {
  flex: 0 0 250px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.slide img {
  width: 60%;
  max-width: 100px;
  height: auto;
  filter: brightness(0) invert(0.8);
  transition: filter 0.3s ease;
}
.slide img:hover { filter: brightness(0) invert(1); }

@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .slide-track { animation-duration: 120s; }
}

/* Contacto */
.contact {
  padding: 10px 0 1vw;
}

.contact__col {
  width: 50%;
  margin: 0 auto;
  padding: 0 0 1%;
}

.contact__title {
  color: var(--white);
  font-size: 34px;
  line-height: 44px;
  font-weight: 600;
  margin-bottom: 20px;
  overflow: hidden;
}
.contact__title span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
}
.contact.is-visible .contact__title span { transform: none; }

.contact-form p { margin: 0 0 21px; }

.contact-form label {
  display: block;
  color: var(--white);
  font-size: 14px;
  line-height: 26px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  line-height: 24px;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input[type="text"],
.contact-form input[type="email"] { height: 48px; }

.contact-form textarea { height: 250px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

/* Autocompletado del navegador: mantiene el fondo oscuro */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset;
  caret-color: var(--white);
  transition: background-color 9999s ease-out;
}

.contact-form .is-invalid { border-color: #e04b4b !important; }

.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.btn-submit {
  padding: 15px 22px;
  border: 0;
  border-radius: 5px;
  background: #424242;
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.btn-submit:hover { background: #585858; }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; }

.form-status {
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--white);
}
.form-status:empty { display: none; }
.form-status.is-success,
.form-status.is-error {
  padding: 10px 14px;
  border: 2px solid;
}
.form-status.is-success { border-color: #46b450; }
.form-status.is-error { border-color: #ffb900; }

@media (max-width: 999px) {
  .contact__col { width: 80%; }
}
@media (max-width: 690px) {
  .contact__col { width: 100%; }
}

/* ==========================================================================
   Páginas internas (políticas)
   ========================================================================== */

.page--inner { background: var(--white); }

.page-content {
  background: var(--white);
  padding: 40px 0;
}

.page-content h1 {
  color: var(--heading);
  font-size: 34px;
  line-height: 44px;
  font-weight: 600;
  margin-bottom: 30px;
}

.page-content h2 {
  color: var(--heading);
  font-size: 26px;
  line-height: 38px;
  font-weight: 600;
  margin: 30px 0 14px;
}

.page-content h3 {
  color: var(--heading);
  font-size: 22px;
  line-height: 34px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.page-content h4 {
  color: var(--heading);
  font-size: 18px;
  line-height: 32px;
  font-weight: 600;
  margin: 22px 0 10px;
}

.page-content strong { font-weight: 600; }
.page-content a { color: var(--black); font-weight: 600; }
.page-content a:hover { text-decoration: underline; }

.page-content ul,
.page-content ol {
  margin: 0 0 21px;
  padding-left: 30px;
}
.page-content li { margin-bottom: 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: var(--muted);
  padding: 20px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}

.site-footer p a { color: var(--light); }
.site-footer p a:hover { color: var(--white); }

.site-footer .social-links { margin: 0; }
.site-footer .social-links a { color: var(--muted); }
.site-footer .social-links a:hover { color: var(--white); opacity: 1; }

@media (max-width: 690px) {
  .site-footer .container { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   WhatsApp flotante y "volver arriba"
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 1px 6px 24px 0 rgba(7, 94, 84, 0.24);
  transform: scale(0);
  transition: transform 0.4s var(--ease), box-shadow 0.2s;
}
.whatsapp-float.is-visible { transform: scale(1); }
.whatsapp-float:hover { box-shadow: 1px 6px 24px 0 rgba(7, 94, 84, 0.5); }
.whatsapp-float svg { width: 34px; height: 34px; fill: currentColor; }

.to-top {
  position: fixed;
  right: 29px;
  bottom: 96px;
  z-index: 890;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(0, 0, 0, 0.6); }
.to-top svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 690px) {
  .to-top { display: none; }
}
