/* ============================================================
   RESET & TOKENS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #30574d;
  --primary-90: rgba(48,87,77,0.9);
  --primary-85: rgba(48,87,77,0.85);
  --primary-70: rgba(48,87,77,0.7);
  --primary-10: rgba(48,87,77,0.1);
  --bg:         #f3f7f2;
  --bg-70:      rgba(243,247,242,0.7);
  --bg-20:      rgba(243,247,242,0.2);
  --accent:     #6fb1a0;
  --secondary:  #98a886;
  --tertiary:   #cbdfbd;
  --accent-70:  rgba(111,177,160,0.7);

  --font-display: 'Cardo', Georgia, serif;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-h: 100px;
  --section-px: clamp(24px, 6vw, 100px);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.label-sm {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.cardo { font-family: var(--font-display); }
.italic { font-style: italic; }

/* Cuerpo de texto — Inter Light 300 */
.nosotras-subtitle,
.client-desc,
.founder-bio,
.founder-bio p,
.contact-detail-value,
.footer-desc,
.form-input,
.form-select,
.form-textarea,
.form-helper,
.form-option span,
.form-legend-hint,
.service-item,
.stat-label {
  font-family: var(--font-body);
  font-weight: 300;
}

a:not(.form-privacy-link) { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   SCROLL FADE-IN
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-px);
  transition: box-shadow 0.3s ease;
}
#nav.scrolled {
  box-shadow: 0 4px 24px rgba(48,87,77,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  display: block;
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 50px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--primary);
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.5; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--primary);
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-overlay a {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--bg);
  transition: opacity 0.2s;
}
.nav-overlay a:hover { opacity: 0.5; }

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-logo img { height: 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  height: 88vh;
  min-height: 560px;
  background-color: #f3f7f2;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}
/* Patron de fondo */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background-image: url("assets/images/patron.webp");
  background-repeat: no-repeat;
  background-size: cover;
}
/* Dot grid derecha con fade — capa de fondo */
#hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(48,87,77,0.4) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 30%, transparent 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 30%, transparent 100%);
}
/* Imagen derecha — por encima del patron y los puntos */
.hero-right {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  max-width: 55%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.hero-right img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: right bottom;
}

/* Horizontal divider lines decorative */
.hero-lines {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.hero-lines::before,
.hero-lines::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(48,87,77,0.06);
}
.hero-lines::before { top: 33%; }
.hero-lines::after  { top: 66%; }

/* Hero left column */
.hero-left {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--section-px) 8vh;
}

/* Hero text */
.hero-content {
  max-width: 820px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3.2rem, 4vw, 6rem);
  line-height: 1.05;
  color: #111;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-static-line,
.hero-dynamic-line {
  display: block;
}
.hero-dynamic-word {
  color: var(--primary);
  font-style: italic;
}
.hero-cursor {
  color: var(--primary);
  font-style: normal;
  font-weight: 300;
  animation: cursorBlink 0.75s ease-in-out infinite;
  margin-left: 1px;
}
@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(17,17,17,0.65);
  max-width: 560px;
  margin-bottom: 0;
}
.hero-sub strong {
  font-weight: 600;
  color: rgba(17,17,17,0.82);
}

/* CTA button — inline bajo el texto */
.hero-cta {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}
.hero-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 0.5rem;
}
.hero-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.hero-social-icon:hover {
  opacity: 0.65;
}
.hero-social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}
.hero-social-icon--stroke svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-social-icon--stroke .hero-social-dot {
  fill: currentColor;
  stroke: none;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid rgba(48,87,77,0.45);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-outline:hover {
  background: var(--primary);
  color: #f3f7f2;
  border-color: var(--primary);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(48,87,77,0.4);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(48,87,77,0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(48,87,77,0.6);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line::after { animation: none; top: 0; }
}
@media (max-width: 1024px) {
  #hero {
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    min-height: unset;
  }

  .hero-left {
    order: 1;
    width: 100%;
    justify-content: flex-start;
    padding: calc(var(--nav-h) + 1.5rem) var(--section-px) 0;
  }

  .hero-right {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 0;
    padding: 0 var(--section-px);
    justify-content: center;
    align-items: center;
  }

  .hero-right img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 58vh;
    margin: 0;
    display: block;
    object-fit: contain;
    object-position: center bottom;
  }

  #hero::after {
    left: 0;
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.65) 35%, transparent 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.65) 35%, transparent 100%);
  }
}

@media (max-width: 768px) {
  .hero-right img {
    max-height: 52vh;
  }

  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .hero-right img {
    max-height: 48vh;
  }
}

/* ============================================================
   INTRO TEXT SECTION
   ============================================================ */
#intro {
  background: var(--bg);
  padding: 120px var(--section-px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intro-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--primary);
  line-height: 1.5;
  text-align: center;
  max-width: 800px;
  margin-bottom: 4rem;
}
.intro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 800px;
  border-top: 1px solid var(--primary-10);
}
.stat {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--primary-10);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.35rem;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--primary-70);
  letter-spacing: 0.03em;
}
@media (max-width: 600px) {
  .intro-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--primary-10); }
  .stat:nth-child(4) { border-right: none; }
}

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */

/* --- D: Grid CTA 4 columnas (estilo Colores Agencia) --- */
.pfc-d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pfc-d-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}
.pfc-d-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pfc-d-card:hover .pfc-d-card-bg {
  transform: scale(1.07);
}
.pfc-d-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  transition: background 0.4s ease;
}
.pfc-d-card:hover .pfc-d-card-overlay {
  background: rgba(0,0,0,0.32);
}
.pfc-d-card-title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.5rem;
  text-align: center;
  color: var(--bg);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  transition: text-shadow 0.4s ease;
}
.pfc-d-card-name {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.pfc-d-card-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.2;
}
.pfc-d-card:hover .pfc-d-card-title {
  text-shadow: 0 2px 16px rgba(0,0,0,0.75);
}
@media (max-width: 768px) {
  .pfc-d { grid-template-columns: repeat(2, 1fr); }
  .pfc-d-card-title { padding: 0.5rem; }
}
#proyectos {
  background: var(--primary);
  padding: 80px var(--section-px);
}
#proyectos .section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 600;
  color: var(--bg);
  line-height: 1.15;
}
#proyectos .section-header {
  padding: 0 0 2rem;
}
.section-header {
  padding: 0 var(--section-px) 2rem;
}
/* ============================================================
   MARQUEE DE SERVICIOS
   ============================================================ */
.marquee-band {
  background: var(--primary);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
.marquee-item {
  white-space: nowrap;
  padding: 0 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
}
.marquee-sep {
  color: var(--accent);
  font-size: 0.6rem;
  align-self: center;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-play-state: paused; }
}

/* ============================================================
   GALERÍA MASONRY — 3 columnas scroll continuo
   ============================================================ */
.carousel-masonry {
  background: var(--bg);
  padding: clamp(24px, 4vw, 56px) var(--section-px);
  overflow: hidden;
}
.carousel-masonry-cta {
  margin-top: clamp(32px, 4vw, 48px);
}
.carousel-masonry-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  overflow: hidden;
  height: clamp(500px, 70vh, 820px);
}
.carousel-masonry-col {
  overflow: hidden;
  height: 100%;
}
.carousel-masonry-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.carousel-masonry-col--up .carousel-masonry-track {
  animation: masonryUp 20s linear infinite;
}
.carousel-masonry-col--down .carousel-masonry-track {
  animation: masonryDown 24s linear infinite;
}
.carousel-masonry-col--up2 .carousel-masonry-track {
  animation: masonryUp 28s linear infinite;
}
.carousel-masonry-set {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}
.carousel-masonry-item {
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}
.carousel-masonry-set .carousel-masonry-item:nth-child(odd)  { aspect-ratio: 3 / 4; }
.carousel-masonry-set .carousel-masonry-item:nth-child(even) { aspect-ratio: 4 / 5; }
.carousel-masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@keyframes masonryUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes masonryDown {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-masonry-track { animation-play-state: paused; }
}
@media (max-width: 600px) {
  .carousel-masonry-stage { grid-template-columns: repeat(2, 1fr); }
  .carousel-masonry-col--up2 { display: none; }
}

/* ============================================================
   CLIENT TYPES — FLIP CARDS
   ============================================================ */
#servicios {
  background: var(--bg);
}
.client-types-header {
  padding: 80px var(--section-px) 48px;
  border-top: 1px solid var(--primary-10);
}
.client-types-header .label-sm { color: var(--accent); margin-bottom: 0.75rem; }
.client-types-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}
.servicios-cta {
  padding: clamp(32px, 4vw, 48px) var(--section-px) clamp(48px, 6vw, 80px);
}
#servicios .btn-outline {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
#servicios .btn-outline:hover {
  background: var(--bg);
  color: var(--primary);
  border-color: var(--primary);
}

/* Grid de flip cards */
.client-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--primary-10);
}

/* Contenedor flip */
.client-type {
  border-right: 1px solid var(--primary-10);
  cursor: pointer;
  perspective: 1200px;
  background: none;
  border-top: none;
  border-bottom: none;
  border-left: none;
  padding: 0;
  font-family: inherit;
  display: flex;
  flex-direction: column;
}
.client-type:last-child { border-right: none; }

/* Inner */
.client-flip-inner {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Cara base */
.client-face {
  padding: 48px clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
}

/* Frontal: en flujo normal, da la altura */
.client-face--front {
  background: var(--bg);
  position: relative;
  flex: 1;
  min-height: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: center center;
}
.client-type.flipped .client-face--front {
  opacity: 0;
  transform: scale(0.97);
}

/* Trasera: se despliega desde arriba con rebote sutil */
.client-face--back {
  background: var(--primary);
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: 40px clamp(1.25rem, 2.5vw, 2rem);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
              opacity 0.25s ease;
}
.client-face--back .client-back-label {
  margin-bottom: 0.65rem;
}
.client-face--back .client-back-title {
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}
.client-face--back .service-item {
  padding: 0.3rem 0;
  font-size: 0.78rem;
  line-height: 1.35;
}
.client-type.flipped .client-face--back {
  opacity: 1;
  transform: scaleY(1);
}

/* Cara frontal — estilos */
.client-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}
.client-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--primary-70);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.client-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cara trasera — servicios */
.client-back-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.client-back-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--bg);
  margin-bottom: 1rem;
}
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.service-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(243,247,242,0.1);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(243,247,242,0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-item::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .client-strip { grid-template-columns: 1fr; }
  .client-type {
    border-right: none;
    border-bottom: 1px solid var(--primary-10);
  }
  .client-type:last-child { border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) {
  .client-face--front,
  .client-face--back { transition: none; }
}


@media (max-width: 580px) {
  .services-list { grid-template-columns: 1fr; }
  .services-list .service-item:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }
}

/* ============================================================
   NOSOTRAS — estilo T2 (fondo crema, fotos circulares, divisor)
   ============================================================ */
#nosotras {
  background: var(--tertiary);
  padding: 100px var(--section-px);
}
/* Heading */
.nosotras-heading {
  text-align: center;
  margin-bottom: 4rem;
}
.nosotras-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}
.nosotras-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: #272727;
  line-height: 1.75;
  max-width: 680px;
  margin: 1.25rem auto 0;
}
/* Grid: founder | divider | founder */
.team-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}
.founders-divider {
  width: 1px;
  background: rgba(48,87,77,0.12);
  align-self: stretch;
  margin-top: 1rem;
}
.founder {
  text-align: center;
}
/* Circular photo */
.founder-photo {
  margin: 0 auto 2rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder:hover .founder-photo { transform: scale(1.03); }

/* Mariela — blob orgánico animado */
.founder-photo--blob {
  width: 210px;
  height: 210px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blobMorph1 8s ease-in-out infinite;
}
@keyframes blobMorph1 {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%  { border-radius: 40% 60% 55% 45% / 50% 60% 40% 55%; }
  50%  { border-radius: 30% 70% 70% 30% / 30% 40% 60% 70%; }
  75%  { border-radius: 55% 45% 40% 60% / 65% 35% 65% 35%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* María — blob orgánico animado (fase distinta) */
.founder-photo--oval {
  width: 210px;
  height: 210px;
  border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%;
  animation: blobMorph2 9s ease-in-out infinite;
}
@keyframes blobMorph2 {
  0%   { border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%; }
  25%  { border-radius: 60% 40% 45% 55% / 60% 40% 55% 45%; }
  50%  { border-radius: 70% 30% 30% 70% / 55% 65% 35% 45%; }
  75%  { border-radius: 45% 55% 60% 40% / 35% 65% 45% 55%; }
  100% { border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .founder-photo--blob { animation: none; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  .founder-photo--oval { animation: none; border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%; }
}
.founder-initials {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--bg);
  letter-spacing: 0.04em;
  user-select: none;
}
.founder-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.founder-handle {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(48,87,77,0.7);
  margin-bottom: 0.25rem;
}
.founder-followers {
  font-size: 0.8rem;
  font-weight: 500;
  color: #272727;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.founder-title {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(48,87,77,0.5);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.founder-bio {
  font-size: 0.92rem;
  font-weight: 300;
  color: #272727;
  line-height: 1.75;
  max-width: 420px;
  margin: 0 auto;
  text-align: justify;
}
.founder-bio p + p {
  margin-top: 1rem;
}
.founder-bio strong {
  font-weight: 600;
  color: #111;
}
@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .founders-divider { display: none; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
#contacto {
  background: var(--bg);
  padding: 100px var(--section-px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}
.contact-info-label {
  margin-bottom: 2.5rem;
}
.contact-info-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 2rem;
}
.contact-detail {
  margin-bottom: 1.25rem;
}
.contact-detail-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.contact-detail-value {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--primary);
}
.contact-detail-value a:hover { opacity: 0.6; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
fieldset.form-field {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-70);
}
.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(48,87,77,0.25);
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(48,87,77,0.35); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--accent);
}
.form-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='%2330574d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.form-helper {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--primary-70);
  margin-top: 0.25rem;
  line-height: 1.5;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-legend {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 0.15rem;
}
.form-legend-hint {
  font-size: 0.75rem;
  color: var(--primary-70);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}
.form-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.form-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.45;
}
.form-option input {
  margin-top: 0.2rem;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.form-option-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--primary-70);
  margin-top: 0.1rem;
}
.form-subfield {
  margin-top: 0.75rem;
  padding-left: 1.65rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
}
.form-subfield.is-visible { display: flex; }
.form-field--privacy {
  margin-top: 0.25rem;
}
.form-field--privacy .form-option {
  font-size: 0.82rem;
  color: var(--primary-70);
  line-height: 1.5;
}
#contacto .form-field--privacy a.form-privacy-link {
  color: #1e3a34;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: #1e3a34;
}
#contacto .form-field--privacy a.form-privacy-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}
.form-error {
  font-size: 0.75rem;
  color: #b54a4a;
  margin-top: 0.25rem;
  display: none;
}
.form-field.is-invalid .form-error { display: block; }
fieldset.form-field.is-invalid .form-legend {
  color: #b54a4a;
}
.form-field.is-invalid .form-input,
.form-field.is-invalid .form-select,
.form-field.is-invalid .form-textarea {
  border-bottom-color: #b54a4a;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.25s;
}
.btn-submit:hover { opacity: 0.75; }

.form-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--primary);
}
.form-status.is-success { color: #2d6a4f; }
.form-status.is-error { color: #9b2226; }

.form-field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--primary);
  padding: 80px var(--section-px) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(243,247,242,0.1);
}
.footer-logo {
  display: block;
  margin-bottom: 1rem;
}
.footer-logo img {
  display: block;
  height: 25px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(243,247,242,0.5);
  line-height: 1.6;
  max-width: 280px;
}
.footer-desc strong {
  font-weight: 600;
  color: rgba(243, 247, 242, 0.85);
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(243,247,242,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--bg); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(243,247,242,0.35);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}