/* ============================================================
   COMISIÓN BINACIONAL TEXAS – MÉXICO
   styles.css — Versión 2.0
   Colores institucionales (del logo oficial):
     Verde   #1A7A3C  — "TEXAS - MEXICO" (primario de acción)
     Azul    #002868  — olas + texto (estructural/navy)
     Rojo    #BF0A30  — estrella/flecha (acento)
   Tipografía: Playfair Display + Source Sans 3
   ============================================================ */

/* ============================================================
   1. TOKENS CSS
   ============================================================ */
:root {
  /* Colores institucionales del logo */
  --green:        #1A7A3C;   /* Verde "TEXAS - MEXICO" */
  --green-dark:   #115C2C;
  --green-light:  #22974A;
  --green-pale:   #E8F5ED;
  --navy:         #002868;   /* Azul marino institucional */
  --navy-dark:    #001A45;
  --navy-light:   #1A3F7A;
  --red:          #BF0A30;   /* Rojo estrella */

  /* Neutros */
  --white:        #FFFFFF;
  --off-white:    #F8FAF9;   /* Tinte verdoso muy sutil */
  --light:        #F0F6F2;   /* Fondo alt con tinte verde */
  --gray-100:     #E8EDF5;
  --gray-200:     #D0DAEA;
  --gray-400:     #8BA0BE;
  --gray-600:     #516B8A;
  --gray-800:     #2C3E55;
  --text:         #1A2B40;
  --text-muted:   #5A7290;

  /* Semánticos */
  --success:      #1A7A3C;

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container:    1180px;
  --gutter:       clamp(1rem, 4vw, 2rem);
  --section-py:   clamp(3.5rem, 8vw, 6rem);

  /* Sombras */
  --shadow-sm:    0 1px 4px rgba(0,40,104,.06), 0 2px 8px rgba(0,40,104,.04);
  --shadow-md:    0 4px 16px rgba(0,40,104,.10), 0 2px 6px rgba(0,40,104,.06);
  --shadow-lg:    0 12px 40px rgba(0,40,104,.13), 0 4px 12px rgba(0,40,104,.07);
  --shadow-card:  0 2px 12px rgba(0,40,104,.07);

  /* Radios */
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;

  /* Transiciones */
  --t:            .25s cubic-bezier(.4,0,.2,1);
  --t-slow:       .45s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   3. UTILITARIOS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section         { padding-block: var(--section-py); }
.section-alt     { background: var(--light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Etiqueta de sección (chip verde) */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(26,122,60,.08);
  padding: .3rem .85rem;
  border-radius: 99px;
  border: 1px solid rgba(26,122,60,.18);
  margin-bottom: .85rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-dark);
  margin-bottom: .85rem;
}

.section-sub { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* ============================================================
   4. BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .8rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  text-align: center;
  white-space: nowrap;
  letter-spacing: .01em;
}

/* Primario verde institucional */
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,122,60,.28);
}

/* Outline navy */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-sm   { font-size: .85rem; padding: .55rem 1.1rem; }
.btn-lg   { font-size: 1rem;   padding: .95rem 2rem; }
.btn-full { width: 100%; justify-content: center; }

/* Botón email alternativo en info de contacto */
.btn-email-alt {
  margin-top: 1.75rem;
  display: inline-flex;
  width: auto;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,40,104,.07);
  transition: box-shadow var(--t);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

/* Logo PNG oficial */
.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav links */
.main-nav { margin-left: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  transition: all var(--t);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: .75rem; right: .75rem;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--t);
}

.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: .85rem; flex-shrink: 0; }

/* Lang switch */
.lang-switch {
  display: flex; align-items: center; gap: .2rem;
  background: var(--light);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: .2rem .3rem;
}

.lang-btn {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--gray-600);
  padding: .2rem .45rem;
  border-radius: 4px;
  transition: all var(--t);
  cursor: pointer;
  background: transparent;
}
.lang-btn.active { background: var(--green); color: var(--white); }
.lang-btn:hover:not(.active) { color: var(--green); }
.lang-sep { color: var(--gray-200); font-size: .75rem; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--t);
}
.hamburger span {
  display: block; height: 2px;
  background: var(--navy); border-radius: 1px;
  transition: all var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 1rem var(--gutter) 1.5rem;
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav .nav-link { display: block; padding: .65rem .75rem; font-size: 1rem; }
.mobile-nav .nav-link::after { display: none; }
.mobile-nav .btn { margin-top: .5rem; width: 100%; justify-content: center; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  min-height: auto;
  padding-top: 72px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .4;
}
.blob-1 {
  width: 600px; height: 600px; right: -100px; top: -150px;
  background: radial-gradient(ellipse, rgba(26,122,60,.07) 0%, transparent 70%);
}
.blob-2 {
  width: 400px; height: 400px; left: -80px; bottom: -80px;
  background: radial-gradient(ellipse, rgba(0,40,104,.05) 0%, transparent 70%);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26,122,60,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,122,60,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 2rem 1.75rem;
}

.hero-content { position: relative; z-index: 1; }

/* Badge verde */
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  color: var(--green);
  background: rgba(26,122,60,.09);
  border: 1px solid rgba(26,122,60,.22);
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-dark);
  margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}

/* Em en verde (color "TEXAS - MEXICO" del logo) */
.hero-headline em {
  font-style: normal;
  color: var(--green);
  position: relative;
  display: inline-block;
}
.hero-headline em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  opacity: .5;
}

.hero-subheadline {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 2rem;
  max-width: 480px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.25rem; }

.hero-microcopy {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text-muted);
}

/* Visual mapa */
.hero-visual {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
}

.hero-map-visual {
  position: relative; max-width: 320px; width: 100%;
  filter: drop-shadow(0 12px 40px rgba(0,40,104,.12));
}

.map-svg {
  width: 100%; height: auto;
  animation: floatMap 6s ease-in-out infinite;
}
@keyframes floatMap {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Floating cards */
.hero-card-float {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  display: flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-md);
  max-width: 200px; line-height: 1.3; z-index: 2;
}
.card-float-1 { top: 15%; left: -10%; animation: fc1 5s ease-in-out infinite; }
.card-float-2 { bottom: 12%; right: -5%; animation: fc2 5.5s ease-in-out infinite .8s; }
@keyframes fc1 { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-8px) rotate(0)} }
@keyframes fc2 { 0%,100%{transform:translateY(0) rotate(1deg)}  50%{transform:translateY(-8px) rotate(0)} }

/* Scroll dot */
.scroll-indicator { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); }
.scroll-dot {
  width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  animation: sdot 2s ease-in-out infinite; opacity: .4;
}
@keyframes sdot { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(12px);opacity:.8} }

/* ============================================================
   7. BARRA DE CONFIANZA
   ============================================================ */
.trust-bar {
  background: var(--white);
  border-top: 1px solid rgba(26,122,60,.1);
  border-bottom: 1px solid rgba(26,122,60,.1);
}

.trust-container {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 1rem; padding-block: 1.75rem;
}

.trust-item {
  display: flex; align-items: center; gap: .65rem;
  font-size: .88rem; font-weight: 600; color: var(--navy);
  white-space: nowrap;
}

.trust-divider { width: 1px; height: 28px; background: rgba(26,122,60,.15); }

.logos-bar {
  border-top: 1px solid var(--gray-100);
  padding-block: 1.25rem;
  background: var(--off-white);
}
.logos-container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.logos-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gray-400); flex-shrink: 0;
}
.logos-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.logo-placeholder {
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 700; color: var(--gray-400);
  padding: .4rem .8rem;
  border: 1px dashed var(--gray-200); border-radius: var(--radius-sm);
  transition: all var(--t);
}
.logo-placeholder:hover { border-color: var(--green); color: var(--green); }

/* ============================================================
   8. NOSOTROS
   ============================================================ */
.nosotros-container {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.nos-placeholder-img {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.nos-svg { width: 100%; height: auto; border-radius: var(--radius-lg); }

.nos-stat-badge {
  position: absolute; background: var(--white);
  border-radius: var(--radius); padding: .75rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: .15rem;
  border-left: 3px solid var(--green); z-index: 2;
}
.badge-top    { top: -1rem;    right: -1rem; }
.badge-bottom { bottom: -1rem; left: -1rem;  }
.stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--green); line-height: 1; }
.stat-lbl { font-size: .72rem; color: var(--text-muted); font-weight: 500; max-width: 120px; line-height: 1.3; }

.nosotros-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700; color: var(--navy-dark);
  line-height: 1.25; margin-bottom: 1rem;
}
.nosotros-content p { color: var(--text-muted); line-height: 1.75; margin-bottom: .85rem; }

.diferenciadores { margin-block: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.diferenciadores li { display: flex; align-items: flex-start; gap: .65rem; font-size: .95rem; color: var(--gray-800); font-weight: 500; }
.diferenciadores li svg { flex-shrink: 0; margin-top: .1rem; }

/* ============================================================
   9. SERVICIOS
   ============================================================ */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--t-slow);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--navy));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 60px; height: 60px;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; transition: background var(--t);
}
.service-card:hover .card-icon { background: rgba(26,122,60,.14); }

.service-card h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--navy-dark); margin-bottom: .6rem; line-height: 1.3;
}
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   10. TESTIMONIOS
   ============================================================ */
.testimonios-grid {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr;
  gap: 1.25rem; align-items: start;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative; box-shadow: var(--shadow-card);
  transition: all var(--t);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Featured: verde institucional */
.testimonial-card.featured {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white); border-color: transparent;
  transform: scale(1.02);
}
.testimonial-card.featured:hover { transform: scale(1.02) translateY(-3px); }

.test-quote-icon { position: absolute; top: 1.5rem; right: 1.75rem; }

.testimonial-card p { font-size: .95rem; line-height: 1.75; color: var(--gray-800); font-style: italic; }
.testimonial-card.featured p { color: rgba(255,255,255,.9); }

.testimonial-card footer { display: flex; align-items: center; gap: .85rem; margin-top: auto; }

.test-name {
  display: block; font-style: normal; font-weight: 700;
  font-size: .92rem; color: var(--green); line-height: 1.2;
}
.testimonial-card.featured .test-name { color: var(--white); }
.test-role { font-size: .78rem; color: var(--text-muted); line-height: 1.3; }
.testimonial-card.featured .test-role { color: rgba(255,255,255,.65); }

/* ============================================================
   11. CONTACTO — sin WhatsApp
   ============================================================ */
.contacto-container {
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}

.contacto-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700; color: var(--navy-dark);
  line-height: 1.25; margin-bottom: 1rem;
}
.contacto-info p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; }

.contact-details { display: flex; flex-direction: column; gap: .85rem; }

.contact-item {
  display: flex; align-items: center; gap: .75rem;
  font-size: .92rem; color: var(--gray-800);
}
.contact-item a { color: var(--green); font-weight: 600; transition: color var(--t); }
.contact-item a:hover { color: var(--green-dark); }

.contact-microcopy {
  margin-top: 1rem;
  font-size: .8rem; color: var(--text-muted);
  padding-left: .1rem;
}

/* Formulario */
.contacto-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

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

.form-group { display: flex; flex-direction: column; gap: .35rem; }

.form-group label {
  font-size: .85rem; font-weight: 600;
  color: var(--navy); letter-spacing: .01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--off-white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  font-size: .95rem; color: var(--text);
  width: 100%;
  transition: all var(--t);
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}

.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='%235A7290' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,122,60,.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--red);
  background: #FFF5F5;
}

.field-error { font-size: .78rem; color: var(--red); font-weight: 500; min-height: 1.1rem; }

#submit-btn { font-size: 1rem; padding: .95rem; }
#submit-btn.loading { pointer-events: none; opacity: .7; }

.form-success {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(26,122,60,.07);
  border: 1px solid rgba(26,122,60,.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--green); font-weight: 600; font-size: .95rem;
}

.form-microcopy {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--text-muted);
  text-align: center; justify-content: center;
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding-top: 3.5rem; }

.footer-container {
  display: grid; grid-template-columns: 1.4fr 2fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-logo-link { display: inline-flex; }

/* Logo en footer: fondo blanco sutil para que sea visible sobre navy */
.footer-logo-img {
  height: 48px; width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);  /* Logo blanco sobre fondo oscuro */
  opacity: .9;
}

.footer-tagline {
  font-size: .88rem; color: rgba(255,255,255,.5);
  line-height: 1.6; margin-top: 1rem; max-width: 220px;
}

.footer-domain { margin-top: .5rem; }
.footer-domain a { font-size: .82rem; color: rgba(255,255,255,.4); transition: color var(--t); }
.footer-domain a:hover { color: var(--white); }

.footer-nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }

.footer-col h4 {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  /* Verde claro en footer para coherencia con logo */
  color: #5BC87F;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a, .footer-col span { font-size: .88rem; color: rgba(255,255,255,.55); transition: color var(--t); line-height: 1.4; }
.footer-col a:hover { color: var(--white); }

.footer-bottom { background: rgba(0,0,0,.2); padding-block: 1.1rem; }
.footer-bottom-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-disclaimer { font-size: .75rem; color: rgba(255,255,255,.3); text-align: right; }

/* ============================================================
   13. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px);
  pointer-events: none; transition: all var(--t); z-index: 800;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ============================================================
   14. ANIMACIONES SCROLL
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }

/* ============================================================
   15. RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .nosotros-container { grid-template-columns: 1fr; }
  .nosotros-visual { max-width: 480px; margin-inline: auto; }
  .testimonios-grid { grid-template-columns: 1fr 1fr; }
  .testimonios-grid .testimonial-card:last-child { grid-column: 1/-1; max-width: 500px; margin-inline: auto; }
  .testimonial-card.featured { transform: none; }
  .contacto-container { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand .footer-tagline { max-width: 100%; }

  .hero-container { grid-template-columns: 1fr; text-align: center; padding-block: 2.5rem 2rem; }
  .hero-subheadline { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-microcopy { justify-content: center; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
  .card-float-1 { left: -5%; }
  .card-float-2 { right: 0; }
}

/* ============================================================
   16. RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-py: 3rem; }

  .main-nav { display: none; }
  .nav-actions .btn-sm { display: none; }
  .hamburger { display: flex; }
  .nav-actions { gap: .5rem; }

  .trust-container { gap: .75rem; flex-direction: column; align-items: flex-start; padding-block: 1.5rem; }
  .trust-divider { display: none; }
  .trust-item { white-space: normal; }

  .hero-card-float { display: none; }
  .map-svg { max-width: 260px; }

  .cards-grid { grid-template-columns: 1fr; }

  .testimonios-grid { grid-template-columns: 1fr; }
  .testimonios-grid .testimonial-card:last-child { grid-column: auto; max-width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .contacto-form-wrap { padding: 1.5rem; }

  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom-container { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }

  .logos-container { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .logo-img { height: 42px; }
}

/* ============================================================
   17. RESPONSIVE — SMALL (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-headline { font-size: 1.8rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .footer-nav { grid-template-columns: 1fr; }
  .nos-stat-badge { display: none; }
  .logo-img { height: 36px; }
}

/* ============================================================
   18. ACCESIBILIDAD
   ============================================================ */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--green); color: var(--white);
  padding: .5rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-contrast: high) {
  .service-card, .testimonial-card { border-width: 2px; border-color: var(--navy); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SECCIÓN MEMBRESÍAS
   ============================================================ */
.membresias-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.membresia-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--t-slow);
  position: relative; overflow: hidden;
}
.membresia-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--navy));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow);
}
.membresia-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.membresia-card:hover::before { transform: scaleX(1); }

.membresia-featured {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white); border-color: transparent;
  transform: scale(1.02);
}
.membresia-featured:hover { transform: scale(1.02) translateY(-4px); }
.membresia-featured p { color: rgba(255,255,255,.88); }

.mem-tier {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 700; letter-spacing: .04em;
  padding: .3rem 1rem; border-radius: 99px;
  margin-bottom: 1rem;
}
.tier-titanium  { background: rgba(0,40,104,.08);  color: var(--navy);  border: 1px solid rgba(0,40,104,.2);  }
.tier-corporate { background: rgba(255,255,255,.2); color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.tier-individual{ background: rgba(26,122,60,.09); color: var(--green); border: 1px solid rgba(26,122,60,.2); }

.membresia-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.68; }

.membresias-note {
  text-align: center;
  font-size: .95rem; color: var(--text-muted);
  max-width: 700px; margin-inline: auto;
  line-height: 1.7; margin-bottom: 2rem;
  font-style: italic;
}

.membresias-cta { text-align: center; }

@media (max-width: 768px) {
  .membresias-grid { grid-template-columns: 1fr; }
  .membresia-featured { transform: none; }
}

/* Footer dev credit */
.footer-dev {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin-top: .25rem;
}
.footer-dev a {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-base);
}
.footer-dev a:hover { color: var(--green-light); }
