/* =============================================
   LOCAL FONTS
   ============================================= */

@font-face {
  font-family: 'Akira';
  src: url('../fonts/Akira%20Expanded%20Demo.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Thin.ttf') format('truetype');             font-weight:100; font-style:normal;  font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-ThinItalic.ttf') format('truetype');       font-weight:100; font-style:italic; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-ExtraLight.ttf') format('truetype');       font-weight:200; font-style:normal;  font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-ExtraLightItalic.ttf') format('truetype'); font-weight:200; font-style:italic; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Light.ttf') format('truetype');            font-weight:300; font-style:normal;  font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-LightItalic.ttf') format('truetype');      font-weight:300; font-style:italic; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Regular.ttf') format('truetype');          font-weight:400; font-style:normal;  font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Italic.ttf') format('truetype');           font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Medium.ttf') format('truetype');           font-weight:500; font-style:normal;  font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-MediumItalic.ttf') format('truetype');     font-weight:500; font-style:italic; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-SemiBold.ttf') format('truetype');         font-weight:600; font-style:normal;  font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-SemiBoldItalic.ttf') format('truetype');   font-weight:600; font-style:italic; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Bold.ttf') format('truetype');             font-weight:700; font-style:normal;  font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-BoldItalic.ttf') format('truetype');       font-weight:700; font-style:italic; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-ExtraBold.ttf') format('truetype');        font-weight:800; font-style:normal;  font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-ExtraBoldItalic.ttf') format('truetype');  font-weight:800; font-style:italic; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-Black.ttf') format('truetype');            font-weight:900; font-style:normal;  font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/Poppins-BlackItalic.ttf') format('truetype');      font-weight:900; font-style:italic; font-display:swap; }

/* =============================================
   CSS VARIABLES
   ============================================= */

:root {
  --blue:       #8BAAC8;
  --black:      #111111;
  --dark:       #1a1a1a;
  --footer-dark:#000000;
  --white:      #ffffff;
  --light-gray: #efefef;
  --service-figure-height: clamp(257px, 25.5vw, 378px);

  --font-akira: 'Akira', 'Barlow Condensed', sans-serif;
  --font-body:  'Poppins', Arial, sans-serif;

  --nav-h: 68px;
  --ease:  0.3s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */

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

html {
  scroll-behavior: smooth;
  /* Evita línea blanca debajo del footer */
  background: var(--footer-dark);
}

body   { font-family: var(--font-body); background: var(--white); color: var(--black); overflow-x: hidden; }
img    { display: block; max-width: 100%; }
a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }

.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 156px;
  background: transparent;
  transition: background var(--ease), box-shadow var(--ease);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 16px rgba(0,0,0,0.08);
}

.nav-logo {
  font-family: var(--font-akira);
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--ease);
}

.navbar.scrolled .nav-logo { color: var(--black); }

.nav-links {
  display: flex;
  gap: 44px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: opacity var(--ease);
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar.scrolled .nav-links a { color: var(--black); }
.nav-links a:hover { opacity: 0.6; }
.nav-links a.active {
  font-weight: 700;
  font-style: italic;
  text-decoration-line: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s ease;
  transform-origin: center;
}

.navbar.scrolled .hamburger span { background: var(--black); }

/* Transparent navbar + open menu → keep white lines on dark bg */
.navbar.menu-open:not(.scrolled) { background: rgba(17,17,17,0.97); }
.navbar.menu-open:not(.scrolled) .nav-logo { color: var(--white); }
.navbar.menu-open:not(.scrolled) .hamburger span { background: var(--white); }

/* X animation: gap=6px, span height=2px → centers at 1px, 9px, 17px */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  background: var(--black);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-video-mobile {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
}

/* =============================================
   SERVICES GRID
   ============================================= */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* ---- Card base ---- */
.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-repeat: no-repeat;
  outline: none;
}

.card:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

/* Half cards: aspect-ratio 7/3.6 mantiene las cards más compactas.
   max-height evita cards enormes en pantallas muy anchas. */
.card-half {
  width: 100%;
  aspect-ratio: 7 / 3.6;
  max-height: 528px;
}

/* ---- Card background images via ::before (fades on hover) ---- */

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  transition: opacity var(--ease);
  pointer-events: none;
}

.card:hover::before,
.card:focus-visible::before { opacity: 0; }

.bg-asesoria { background-color: #879DCE; }
.bg-asesoria::before {
  background-image: url('../images/card-asesoria.png');
  background-size: auto var(--service-figure-height);
  background-position: center bottom;
}

.bg-contenido { background-color: #92A7D2; }
.bg-contenido::before {
  background-image: url('../images/card-contenido.png');
  background-size: auto var(--service-figure-height);
  background-position: center bottom;
}

.bg-social {
  grid-column: 1 / -1;
  height: clamp(280px, 47vh, 605px);
  background-color: var(--light-gray);
}
.bg-social::before {
  background-image: url('../images/card-social.png'), url('../images/textura-social.jpg');
  background-size: auto var(--service-figure-height), cover;
  background-position: center bottom, center;
  background-repeat: no-repeat, no-repeat;
}

.bg-lab { background-color: #94A9D4; }
.bg-lab::before {
  background-image: url('../images/card-lab.png');
  background-size: auto var(--service-figure-height);
  background-position: center bottom;
}

.bg-paid { background-color: #869BCE; }
.bg-paid::before {
  background-image: url('../images/card-paid.png');
  background-size: auto var(--service-figure-height);
  background-position: center bottom;
}

.bg-wedding {
  grid-column: 1 / -1;
  height: clamp(280px, 47vh, 605px);
  background-color: var(--white);
}
.bg-wedding::before {
  background-image: url('../images/card-wedding.png');
  background-size: auto var(--service-figure-height);
  background-position: center bottom;
}

/* ---- Hover overlay (unused tint — kept for possible future use) ---- */
.card::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  z-index: 2;
  pointer-events: none;
}

/* Social / wedding have light backgrounds — use dark text on hover */
.bg-social .card-hover-text p,
.bg-wedding .card-hover-text p { color: rgba(17,17,17,0.82); }

/* ---- Hover text ---- */
.card-hover-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 44px);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

.card:hover .card-hover-text,
.card:focus-visible .card-hover-text { opacity: 1; }

.card-hover-text p {
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.65;
  color: rgba(255,255,255,0.93);
  text-align: center;
  max-width: 520px;
  white-space: pre-line;
}

/* ---- Fallback text ---- */
.card-fallback {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px 20px 22px;
  z-index: 1;
  pointer-events: none;
}

.card-fallback-split {
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

/* Oculto cuando hay imagen de fondo */
.bg-asesoria  .card-fallback,
.bg-contenido .card-fallback,
.bg-social    .card-fallback,
.bg-lab       .card-fallback,
.bg-paid      .card-fallback,
.bg-wedding   .card-fallback { opacity: 0; }

.card-title {
  font-family: 'Georgia', serif;
  font-weight: 900;
  line-height: 0.88;
  color: var(--white);
  font-size: clamp(40px, 8vw, 100px);
  text-transform: lowercase;
}

.card-title-right { margin-left: auto; text-align: right; }
.card-title-blue  { color: var(--blue); font-size: clamp(36px, 6vw, 88px); }

/* =============================================
   TESTIMONIALS
   ============================================= */

.testimonials {
  background: var(--light-gray);
  padding: 96px 80px;
  text-align: center;
}

.testimonials-inner {
  max-width: 760px;
  margin: 0 auto;
}

.testimonials-title {
  font-family: var(--font-akira);
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 36px;
  color: var(--black);
}

blockquote.testimonial {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.85;
  color: var(--black);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--footer-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 72px 156px 64px;
  min-height: 180px;
}

.footer-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  font-family: var(--font-akira);
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-divider {
  width: 280px;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

.footer-contact {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
}

.footer-contact a { color: inherit; transition: color var(--ease); }
.footer-contact a:hover { color: var(--white); }

.footer-wa { display: flex; align-items: center; gap: 10px; }

.wa-icon { width: 19px; height: 19px; flex-shrink: 0; opacity: 0.8; }

/* "mde" – imagen recortada posicionada en la esquina inferior derecha */
.footer-mde {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}

.footer-mde-img {
  /* Black PNG -> subtle light letters; screen blend hides the image background. */
  filter: invert(1) brightness(0.24);
  mix-blend-mode: screen;
  opacity: 1;
  height: clamp(110px, 18vh, 220px);
  width: auto;
  display: block;
}

/* CSS fallback (si no carga la imagen) */
.footer-mde-text {
  font-family: 'Georgia', serif;
  font-size: clamp(100px, 18vw, 240px);
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  line-height: 0.85;
  letter-spacing: -0.02em;
  display: none;
}

.footer-mde-img[data-fallback="true"]          { display: none; }
.footer-mde-img[data-fallback="true"] ~ .footer-mde-text { display: block; }

/* =============================================
   MODAL
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: 8px;
  max-width: min(600px, 90vw);
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.42);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.07);
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--black);
  line-height: 1;
  z-index: 10;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--ease);
}

.modal-close:hover { background: rgba(0,0,0,0.14); }

.modal-content { padding: 0; }

/* ---- Service popup: compact single-card ---- */
.service-popup-media {
  height: 247px;
  background: #ececec;
  overflow: hidden;
}

.service-popup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-popup-body {
  padding: 26px 31px 36px;
}

.service-popup-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.service-popup-body h3 {
  font-size: 26px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.1;
  text-transform: lowercase;
  margin-bottom: 13px;
}

.service-popup-body p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(17,17,17,0.62);
  margin-bottom: 26px;
}

.service-popup-body strong {
  color: rgba(17,17,17,0.8);
  font-weight: 600;
}

.service-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-akira);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background var(--ease);
}

.service-popup-cta:hover { background: var(--black); }

/* =============================================
   DINOTEST PAGE
   ============================================= */

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

.dinotest-page .navbar,
.dinotest-page .navbar.scrolled,
.dinotest-page .navbar.menu-open {
  background: #000000;
  box-shadow: none;
  border-bottom: 1px solid rgba(255,255,255,0.65);
}

.dinotest-page .navbar .nav-logo,
.dinotest-page .navbar.scrolled .nav-logo,
.dinotest-page .navbar .nav-links a,
.dinotest-page .navbar.scrolled .nav-links a {
  color: var(--white);
}

.dinotest-page .navbar .hamburger span,
.dinotest-page .navbar.scrolled .hamburger span {
  background: var(--white);
}

.dinotest-page .nav-links a.active {
  font-weight: 700;
  font-style: italic;
}

.dinotest-hero {
  min-height: 81vh;
  background: #000000;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 72px;
}

.dinotest-hero h1 {
  width: min(1180px, 100%);
  font-size: clamp(29px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.dinotest-hero strong {
  display: inline-block;
  margin-top: 2px;
  font-size: 1.25em;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(90deg, #2558b8, #5fa8d8, #9fd4f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dinotest-tool {
  background-color: #f8fbff;
  background-image:
    url('../images/dinotest-ellipse-left.png'),
    url('../images/dinotest-ellipse-right.png'),
    linear-gradient(90deg, rgba(139,170,200,0.16), rgba(255,255,255,0.84) 26%, rgba(255,255,255,0.72) 72%, rgba(139,170,200,0.12)),
    url('../images/textura.png');
  background-size: 100% auto, 100% auto, cover, cover;
  background-position: left top, right bottom, center, center top;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat-y;
  padding: 118px 24px 152px;
}

.dinotest-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.dinotest-intro {
  max-width: 980px;
  font-size: clamp(17px, 1.6vw, 28px);
  line-height: 1.62;
  letter-spacing: 0.05em;
  color: rgba(17,17,17,0.52);
  margin-bottom: 100px;
}

.dinotest-intro strong {
  color: rgba(17,17,17,0.6);
  font-weight: 800;
}

.dinotest-field {
  max-width: 100%;
  margin-bottom: 127px;
}

.dinotest-field label {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(22px, 2.3vw, 38px);
  font-weight: 800;
  color: #7da0dc;
  line-height: 1.15;
}

.dinotest-select-wrap {
  position: relative;
  width: 100%;
}

.dinotest-select::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 28px;
  width: 24px;
  height: 24px;
  border-right: 3px solid #6ba6e8;
  border-bottom: 3px solid #6ba6e8;
  transform: translateY(-64%) rotate(45deg);
  pointer-events: none;
}

.dinotest-select {
  position: relative;
  width: 100%;
  height: 72px;
  border: 2px solid #7da8e9;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(62,111,166,0.13);
  color: rgba(17,17,17,0.6);
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 19px);
  font-weight: 500;
  padding: 0 86px 0 30px;
  outline: none;
  cursor: pointer;
  text-align: left;
}

.dinotest-select:focus {
  border-color: #4e8bd8;
  box-shadow: 0 0 0 5px rgba(125,168,233,0.18), 0 18px 34px rgba(62,111,166,0.13);
}

.dinotest-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 5;
  display: none;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(125,168,233,0.72);
  border-radius: 20px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 34px rgba(62,111,166,0.18);
  color: rgba(17,17,17,0.72);
}

.dinotest-select-wrap.open .dinotest-options {
  display: block;
}

.dinotest-options li {
  padding: 14px 30px;
  font-size: clamp(14px, 1.1vw, 18px);
  cursor: pointer;
}

.dinotest-options li:hover,
.dinotest-options li[aria-selected="true"] {
  background: rgba(139,170,200,0.22);
}

.dinotest-result h2 {
  margin-bottom: 43px;
  text-align: center;
  font-size: clamp(19px, 1.9vw, 32px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(17,17,17,0.66);
}

.plan-card {
  position: relative;
  overflow: hidden;
  width: min(1260px, 100%);
  min-height: 540px;
  border-radius: 28px;
  margin: 0 auto;
  background-image: url('../images/dinotest-card-bg.png');
  background-color: #79a7d7;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 22px 36px rgba(54,94,144,0.16);
}

.plan-card-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: 98px 98px 68px;
  color: var(--white);
}

.plan-card-content h3 {
  font-family: Didot, 'Bodoni 72', Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 4.3vw, 68px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.58);
}

.plan-title-serif {
  font-family: 'Lora', 'Hoefler Text', Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.plan-card-content p {
  font-size: clamp(13px, 1.2vw, 20px);
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.plan-kicker {
  font-weight: 700;
  margin-bottom: 18px;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 54px;
  margin-top: 30px;
  padding: 14px 26px;
  border-radius: 16px;
  background: rgba(173,219,245,0.48);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform var(--ease), background var(--ease);
}

.plan-cta:hover {
  background: rgba(255,255,255,0.26);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE — TABLET  (≤ 1100px)
   ============================================= */

@media (max-width: 1100px) {
  .navbar { padding: 0 80px; }
  .footer { padding: 72px 80px 64px; }
  .testimonials { padding: 80px 60px; }
  .dinotest-tool { padding: 98px 40px 126px; }
  .plan-card-content { padding: 74px 64px 52px; }
  .plan-card { min-height: 480px; }
  .contact-hero { padding: 0 80px 30px; }
  .contact-col-info,
  .contact-col-form { padding: 56px 56px; }
}

/* =============================================
   RESPONSIVE — MOBILE  (≤ 900px)
   ============================================= */

@media (max-width: 900px) {

  :root { --service-figure-height: clamp(187px, 46vw, 275px); }

  /* Navbar */
  .navbar { padding: 0 20px; height: 56px; }
  .hamburger { display: flex; }

  /* Nav dropdown — dark, slides from top */
  .nav-links {
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    z-index: 999;
  }

  .dinotest-page .nav-links {
    background: #000000;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }

  .nav-links a {
    color: rgba(255,255,255,0.8);
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links li:last-child a { border-bottom: none; }
  .navbar.scrolled .nav-links.open a,
  .navbar.menu-open .nav-links a { color: rgba(255,255,255,0.86); }
  .navbar.scrolled.menu-open {
    background: var(--dark);
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  }
  .navbar.scrolled.menu-open .nav-logo { color: var(--white); }
  .navbar.scrolled.menu-open .hamburger span { background: var(--white); }
  .nav-links a.active { color: var(--white); }
  .nav-links a:hover { opacity: 1; color: var(--white); }

  /* Hero */
  .hero { height: 100svh; min-height: 360px; }

  /* Services grid — single column */
  .services-grid { grid-template-columns: 1fr; }
  .card-half {
    aspect-ratio: 7 / 4.05;
    max-height: 432px;
  }
  .bg-social,
  .bg-wedding { height: clamp(180px, 45vw, 378px); }

  /* Testimonials */
  .testimonials { padding: 64px 24px; }
  blockquote.testimonial { font-size: 16px; }

  /* Dinotest */
  .dinotest-hero {
    min-height: 67vh;
    padding: 116px 20px 56px;
    justify-content: center;
  }

  .dinotest-hero h1 {
    font-size: clamp(26px, 8vw, 43px);
    line-height: 1.18;
  }

  .dinotest-tool {
    background-size: auto 100%, auto 100%, cover, cover;
    background-position: left top, right bottom, center, center top;
    padding: 74px 20px 98px;
  }

  .dinotest-intro {
    font-size: clamp(14px, 3.8vw, 19px);
    line-height: 1.62;
    letter-spacing: 0.02em;
    margin-bottom: 65px;
  }

  .dinotest-field {
    margin-bottom: 84px;
  }

  .dinotest-field label {
    font-size: clamp(20px, 6vw, 27px);
    margin-bottom: 14px;
  }

  .dinotest-select::after {
    right: 24px;
    width: 18px;
    height: 18px;
    border-width: 2px;
  }

  .dinotest-select {
    height: 58px;
    font-size: 14px;
    padding: 0 58px 0 20px;
  }

  .dinotest-options li {
    padding: 12px 20px;
    font-size: 14px;
  }

  .dinotest-result h2 {
    margin-bottom: 32px;
    text-align: center;
  }

  .plan-card {
    min-height: clamp(360px, 105vw, 430px);
    border-radius: 24px;
    background-size: cover;
    background-position: 60% center;
  }

  .plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(80,128,193,0.12), rgba(80,128,193,0.4));
  }

  .plan-card-content {
    padding: 34px 24px 30px;
    max-width: 64%;
  }

  .plan-card-content h3 {
    font-size: clamp(30px, 9vw, 42px);
    padding-bottom: 14px;
    margin-bottom: 18px;
  }

  .plan-card-content p {
    font-size: clamp(11px, 2.9vw, 15px);
    line-height: 1.32;
  }

  .plan-cta {
    min-width: 0;
    width: 100%;
    min-height: 50px;
    margin-top: 26px;
    border-radius: 16px;
  }

  /* Footer */
  .footer { padding: 48px 24px 40px; }
  .footer-divider { width: 100%; max-width: 260px; }
  .footer-mde-img { height: clamp(52px, 21vw, 98px); }
  .footer-mde-text { font-size: clamp(70px, 28vw, 140px); }

  /* Modal */
  .modal-overlay { padding: 16px; }
  .service-popup-media { height: 195px; }
  .service-popup-body { padding: 21px 23px 29px; }

  /* Contact page */
  .contact-hero { padding: 0 24px 22px; min-height: 140px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-col-info,
  .contact-col-form { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; justify-content: center; }
}

/* =============================================
   CONTACT PAGE
   ============================================= */

.contact-hero {
  height: 22vh;
  min-height: 160px;
  max-height: 240px;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  padding: 0 156px 32px;
}

.contact-hero-title {
  font-family: var(--font-akira);
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.contact-page .contact-section {
  flex: 1 0 auto;
  min-height: 0;
  padding-top: var(--nav-h);
}

.contact-page .footer {
  flex: 0 0 auto;
}

.contact-col-info {
  background: var(--blue);
  padding: 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.contact-col-info h2 {
  font-family: var(--font-akira);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.3;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-block p {
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.contact-info-block a {
  color: var(--white);
  font-weight: 500;
  transition: opacity var(--ease);
}

.contact-info-block a:hover { opacity: 0.7; }

.contact-info-wa {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-col-form {
  background: var(--white);
  padding: 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.58);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(17,17,17,0.18);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(17,17,17,0.32); }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
  cursor: pointer;
  color: rgba(17,17,17,0.58);
}

.form-group select.has-value { color: var(--black); }

.form-group select option { background: var(--white); color: var(--black); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--blue); }

.form-group textarea {
  resize: none;
  min-height: 100px;
  line-height: 1.6;
}

.form-submit {
  font-family: var(--font-akira);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--dark);
  border: none;
  padding: 16px 40px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  align-self: flex-start;
  margin-top: 4px;
}

.form-submit:hover { background: var(--blue); color: var(--white); }
.form-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.form-status {
  font-size: 13px;
  font-weight: 500;
  padding: 12px 0;
  display: none;
}

.form-status.success { display: block; color: #7dbf7d; }
.form-status.error   { display: block; color: #f08080; }

@media (max-width: 1100px) {
  .contact-hero {
    padding: 0 80px 30px;
  }

  .contact-col-info,
  .contact-col-form {
    padding: 56px;
  }
}

@media (max-width: 900px) {
  .contact-page .contact-section {
    padding-top: 56px;
  }

  .contact-hero {
    min-height: 140px;
    height: 20vh;
    padding: 0 24px 22px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .contact-col-info,
  .contact-col-form {
    padding: 40px 24px;
  }

  .contact-col-info {
    gap: 22px;
  }

  .contact-col-info h2 {
    font-size: clamp(18px, 7vw, 28px);
    overflow-wrap: anywhere;
  }

  .contact-form {
    gap: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-submit {
    width: 100%;
    align-self: stretch;
  }
}

@media (max-width: 520px) {
  .contact-hero-title {
    font-size: clamp(28px, 10vw, 42px);
  }

  .contact-col-info,
  .contact-col-form {
    padding: 34px 20px;
  }
}

/* =============================================
   HERO VIDEO MOBILE
   ============================================= */

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-video { display: none; }
  .hero-video-mobile { display: block; position: relative; inset: auto; height: auto; width: 100%; object-fit: contain; }
  .hero-overlay { display: none; }
}

/* =============================================
   NOSOTRAS SECTION
   ============================================= */

.nosotras {
  background: var(--white);
  padding: 100px 156px;
}

.nosotras-inner {
  max-width: 1260px;
  margin: 0 auto;
}

/* --- Who we are row --- */
.nosotras-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 96px;
}

.nosotras-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #b8c8e0;
  min-height: 200px;
}

.nosotras-text-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nosotras-label {
  font-family: var(--font-akira);
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
}

.nosotras-headline {
  font-family: var(--font-akira);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--black);
  text-transform: uppercase;
}

.nosotras-desc {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
  color: rgba(17,17,17,0.66);
}

/* --- No Negociables --- */
.nosotras-nn {
  margin-bottom: 96px;
}

.nosotras-section-title {
  font-family: var(--font-akira);
  font-size: clamp(13px, 1.3vw, 17px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nosotras-section-title::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.nn-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nn-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.nn-arrow {
  width: 24px;
  margin-top: 4px;
  color: var(--black);
  flex-shrink: 0;
}

.nn-content {}

.nn-pill {
  display: inline-block;
  border: 1.5px solid rgba(17,17,17,0.3);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.nn-body {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.7;
  color: rgba(17,17,17,0.62);
}

/* --- Compromiso --- */
.nosotras-compromiso {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
  background: #eef2f8;
  border-radius: 16px;
  padding: 56px 64px;
}

.compromiso-left {
  background: #3d6082;
  border-radius: 12px;
  padding: 44px 36px;
  color: var(--white);
}

.compromiso-left-title {
  font-family: var(--font-akira);
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 16px;
}

.compromiso-left p {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}

.compromiso-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compromiso-item {}

.compromiso-q {
  font-family: var(--font-akira);
  font-size: clamp(10px, 0.9vw, 13px);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 4px;
}

.compromiso-a {
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.6;
  color: rgba(17,17,17,0.7);
}

.compromiso-a strong {
  color: var(--blue);
  font-weight: 600;
}

/* =============================================
   COLLAGE OVERLAY
   ============================================= */

.collage-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.collage-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.collage-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.collage-title {
  font-family: var(--font-akira);
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.collage-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.collage-close:hover { background: rgba(255,255,255,0.24); }

.collage-grid {
  padding: 24px 40px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 10px;
}

.collage-grid-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  position: relative;
  transition: transform 0.2s ease;
}

.collage-grid-item:hover { transform: scale(1.02); z-index: 1; }

.collage-grid-item:nth-child(1) { grid-row: span 2; }
.collage-grid-item:nth-child(4) { grid-column: span 2; }

.collage-grid-item img,
.collage-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.collage-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,170,200,0.18);
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
  display: block;
}

.lightbox-video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
}

.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.24); }

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #8BAAC8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.wa-float:hover {
  background: #6f93b8;
  transform: scale(1.08);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

/* =============================================
   RESPONSIVE additions (≤ 900px)
   ============================================= */

@media (max-width: 900px) {
  /* Nosotras */
  .nosotras { padding: 64px 24px; }
  .nosotras-intro { grid-template-columns: 1fr; gap: 36px; }
  .nosotras-photo { aspect-ratio: 3 / 2; max-height: 340px; width: 100%; object-position: center top; }
  .nosotras-compromiso { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; }
  .collage-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; padding: 16px 16px 40px; gap: 8px; }
  .collage-grid-item:nth-child(1) { grid-row: span 1; }
  .collage-grid-item:nth-child(4) { grid-column: span 1; }
  .collage-header { padding: 14px 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .wa-float { bottom: 20px; right: 20px; width: 58px; height: 58px; }
  .wa-float svg { width: 28px; height: 28px; }
  .card-hover-text p { font-size: clamp(11px, 3vw, 14px); }
}
