/* ==========================================================================
   STYLES.CSS - Comercializadora de Acciones
   Versión mejorada con diseño responsive, accesibilidad y mejor organización
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES CSS Y CONFIGURACIÓN BASE
   ========================================================================== */

:root {
  /* Colores principales */
  --primary: #0d47a1;
  --primary-hover: #1565c0;
  --primary-dark: #002171;
  --accent: #ffb300;
  --accent-hover: #ff8f00;
  
  /* Colores de estado */
  --success: #2e7d32;
  --success-light: #e8f5e8;
  --error: #d32f2f;
  --error-light: #ffebee;
  --warning: #f57c00;
  --warning-light: #fff3e0;
  
  /* Colores de texto y fondo */
  --text-primary: #111;
  --text-secondary: #666;
  --text-muted: #999;
  --bg: #f7f8fb;
  --bg-white: #fff;
  --card: #fff;
  --border: #e6eefc;
  --border-focus: #2196f3;
  
  /* Espaciado */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  
  /* Tipografía */
  --font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;
  --line-height: 1.5;
  --line-height-tight: 1.25;
  
  /* Layout */
  --max-width: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --topbar-height: 48px;
  --header-height: 88px;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(12, 34, 80, 0.04);
  --shadow: 0 8px 28px rgba(12, 34, 80, 0.06);
  --shadow-lg: 0 12px 40px rgba(12, 34, 80, 0.08);
  --shadow-focus: 0 0 0 3px rgba(33, 150, 243, 0.2);
  
  /* Transiciones */
  --transition: all 0.2s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.3s ease;
}

/* Soporte para preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition: none;
    --transition-fast: none;
    --transition-slow: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   3. UTILIDADES Y COMPONENTES BASE
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: var(--space-md);
  }
}

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
  z-index: 1000;
  transition: var(--transition);
}

.skip-link:focus {
  top: 6px;
  box-shadow: var(--shadow-focus);
}

/* Focus styles */
*:focus {
  outline: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  box-shadow: var(--shadow-focus);
  outline: 2px solid transparent;
}

/* ==========================================================================
   4. TIPOGRAFÍA
   ========================================================================== */

.h1, h1 { 
  font-size: clamp(28px, 5vw, 54px); 
  font-weight: 800; 
  line-height: var(--line-height-tight); 
  margin: 0 0 var(--space-md) 0; 
}

.h2, h2 { 
  font-size: var(--font-size-xxl); 
  font-weight: 700; 
  line-height: var(--line-height-tight); 
  margin: 0 0 var(--space-md) 0; 
}

.h3, h3 { 
  font-size: var(--font-size-xl); 
  font-weight: 700; 
  margin: 0 0 var(--space-sm) 0; 
}

.h4, h4 { 
  font-size: var(--font-size-lg); 
  font-weight: 600; 
  margin: 0 0 var(--space-xs) 0; 
}

.small { 
  color: var(--text-secondary); 
  font-size: var(--font-size-sm); 
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   5. BOTONES
   ========================================================================== */

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 20px;
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-height: 44px; /* Accessibility: minimum touch target */
}

.btn {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 16px 28px;
  font-size: var(--font-size-md);
  min-height: 52px;
}

/* Loading state */
.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-loading {
  display: none;
}

.btn[aria-busy="true"] .btn-text {
  display: none;
}

.btn[aria-busy="true"] .btn-loading {
  display: inline;
}

/* ==========================================================================
   6. HEADER Y NAVEGACIÓN
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--topbar-height);
  background: var(--primary);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-slow);
}

body.scrolled .topbar {
  transform: translateY(-100%);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.tb-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tb-pill {
  background: rgba(255, 255, 255, 0.18);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--font-size-sm);
}

.tb-phone {
  color: white;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.3px;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.tb-phone:hover,
.tb-phone:focus {
  text-decoration: underline;
}

.tb-wa {
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  min-height: 32px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.tb-wa:hover,
.tb-wa:focus {
  background: rgba(255, 255, 255, 0.25);
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: var(--transition-slow);
}

body.scrolled .site-header {
  transform: translateY(0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  gap: var(--space-md);
}

.brand {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand:hover,
.brand:focus {
  opacity: 0.8;
}

.brand img {
  height: 64px;
  width: auto;
  border-radius: var(--radius);
}

.brand-title {
  font-size: var(--font-size-lg);
  margin: 0;
  font-weight: 800;
}

.menu {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-height: 32px;
  display: flex;
  align-items: center;
}

.menu a:hover,
.menu a:focus {
  background: var(--primary);
  color: white;
}

.cta {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.phone {
  display: none;
  background: var(--primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--font-size-sm);
  white-space: nowrap;
  transition: var(--transition);
}

.phone:hover,
.phone:focus {
  background: var(--primary-hover);
}

body.scrolled .phone {
  display: inline-flex;
}

/* Mobile Navigation */
@media (max-width: 960px) {
  .menu {
    display: none;
  }
  
  .brand img {
    height: 48px;
  }
  
  .brand-title {
    font-size: var(--font-size-md);
  }
  
  .nav {
    gap: var(--space-sm);
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
  }
  
  .topbar {
    height: auto;
    min-height: var(--topbar-height);
  }
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero-full {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--hero, #0b1f3a) center/cover no-repeat;
  background-color: #0b1f3a;
  padding-top: calc(var(--topbar-height) + var(--space-lg));
  padding-bottom: var(--space-lg);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  color: white;
  text-align: left;
}

.hero-overlay h1 {
  font-size: clamp(32px, 6vw, 68px);
  font-weight: 900;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 12px 36px rgba(0, 0, 0, 0.55);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-overlay h1 .highlight {
  background: rgba(0, 0, 0, 0.3);
  padding: 0 0.35em;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin: var(--space-md) 0;
}

.trust {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0 0;
  flex-wrap: wrap;
}

.trust li {
  background: rgba(0, 0, 0, 0.35);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 999px;
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-dim {
  position: absolute;
  inset: calc(var(--space-lg) * -1);
  background: rgba(0, 0, 0, 0.10);
  border-radius: var(--space-lg);
  pointer-events: none;
  z-index: 1;
  transition: var(--transition);
}

body.scrolled .hero-dim {
  background: rgba(0, 0, 0, 0.40);
}

.hero-overlay > *:not(.hero-dim) {
  position: relative;
  z-index: 2;
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero-full {
    text-align: center;
    padding-top: calc(var(--topbar-height) + var(--space-xxl));
  }
  
  .hero-overlay {
    align-items: center;
    text-align: center;
  }
  
  .trust {
    justify-content: center;
    gap: var(--space-md);
  }
  
  .hero-cta {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================================
   8. CARDS Y LAYOUTS
   ========================================================================== */

.section {
  padding: var(--space-xxl) 0;
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sh-desc {
  font-size: var(--font-size-md);
  margin-top: var(--space-sm);
}

.card {
  background: var(--card);
  padding: var(--space-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.icon {
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.grid-contact {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.grid-contact > .card {
  flex: 1;
  min-width: 280px;
}

@media (max-width: 968px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 640px) {
  .grid-contact {
    flex-direction: column;
  }
  
  .grid-contact > .card {
    min-width: auto;
  }
}

/* ==========================================================================
   9. FORMULARIOS
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-md);
}

label {
  display: block;
  font-weight: 600;
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
}

.required-indicator {
  color: var(--error);
  font-weight: bold;
}

.optional {
  font-weight: normal;
  color: var(--text-muted);
}

input,
select,
textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: var(--transition);
  min-height: 48px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Honeypot field */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* Form messages */
.form-message {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin: var(--space-md) 0;
  font-size: var(--font-size-sm);
}

.form-success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.form-error {
  background: var(--error-light);
  color: var(--error);
  border: 1px solid var(--error);
}

.field-error {
  display: block;
  color: var(--error);
  font-size: var(--font-size-xs);
  margin-top: var(--space-xs);
}

.field-help {
  display: block;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin-top: var(--space-xs);
}

.form-actions {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.form-disclaimer {
  margin-top: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
}

.form-disclaimer a {
  color: var(--primary);
  text-decoration: none;
}

.form-disclaimer a:hover,
.form-disclaimer a:focus {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn,
  .form-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   10. PASOS Y FAQ
   ========================================================================== */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.steps li {
  counter-increment: step-counter;
  position: relative;
  padding: var(--space-md) 0 var(--space-md) var(--space-xxl);
  border-left: 2px solid var(--border);
}

.steps li:last-child {
  border-left-color: transparent;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: -15px;
  top: var(--space-md);
  background: var(--primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: var(--bg-white);
  border: none;
  padding: var(--space-lg);
  text-align: left;
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.faq-q::after {
  content: '+';
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: var(--primary);
  transition: var(--transition);
}

.faq-q[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-q:hover,
.faq-q:focus {
  background: var(--bg);
}

.faq-a {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   11. FOOTER Y ELEMENTOS ESPECIALES
   ========================================================================== */

.footer {
  padding: var(--space-xl) 0;
  color: var(--text-secondary);
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  margin-top: var(--space-xxl);
}

.fwrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: var(--transition);
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .fwrap {
    flex-direction: column;
    text-align: center;
  }
}

/* WhatsApp floating button */
.btn-whatsapp {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  z-index: 99;
  background: linear-gradient(135deg, #25d366, #128c7e);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  text-decoration: none;
  animation: whatsappPulse 2s infinite;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

@keyframes whatsappPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
  }
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp img {
  width: 32px;
  height: 32px;
}

@media (max-width: 640px) {
  .btn-whatsapp {
    right: var(--space-md);
    bottom: var(--space-md);
    width: 56px;
    height: 56px;
  }
  
  .btn-whatsapp img {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   12. VIDEO PLAYER OPTIMIZADO
   ========================================================================== */

.video-section {
  background: var(--bg-white);
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.video-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(12, 34, 80, 0.15);
}

.responsive-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: var(--transition);
  pointer-events: none;
}

.video-overlay.hidden {
  opacity: 0;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition);
  pointer-events: auto;
}

.play-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.video-description {
  text-align: center;
  margin-top: var(--space-md);
}

/* ==========================================================================
   13. TESTIMONIOS
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.testimonial-card {
  background: var(--card);
  padding: var(--space-xl);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: 60px;
  font-weight: bold;
  color: var(--primary);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--primary);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  display: block;
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.testimonial-role {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.testimonial-quote {
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
}

.testimonials-cta {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.testimonials-cta h3 {
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .testimonial-card {
    padding: var(--space-lg);
  }
  
  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

/* ==========================================================================
   14. OFICINA SECTION (PARALLAX)
   ========================================================================== */

.office-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--bg-image, #0b1f3a) center/cover no-repeat fixed;
  background-attachment: fixed;
  overflow: hidden;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 71, 161, 0.85);
  z-index: 1;
}

.office-content {
  position: relative;
  z-index: 2;
  color: white;
}

.office-text-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.office-title {
  color: white;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: var(--space-lg);
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.office-description {
  margin-bottom: var(--space-xl);
}

.office-description .lead-text {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.office-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.office-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: center;
}

.office-feature strong {
  color: var(--accent);
  font-size: var(--font-size-md);
  font-weight: 700;
}

.office-feature span {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.office-cta .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-primary);
  font-weight: 700;
}

.office-cta .btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Parallax effect on scroll */
@supports (background-attachment: fixed) {
  .office-section {
    background-attachment: fixed;
  }
}

/* Disable parallax on mobile for better performance */
@media (max-width: 768px) {
  .office-section {
    background-attachment: scroll;
    min-height: 500px;
  }
  
  .office-features {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ==========================================================================
   15. CONTENIDO PERSUASIVO
   ========================================================================== */

.persuasive-content {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.explosive-claims {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.claim-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: 999px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.trust-indicators {
  background: var(--bg-white);
  padding: var(--space-xl);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-lg);
}

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

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.trust-item {
  text-align: center;
  padding: var(--space-md);
}

.trust-item strong {
  display: block;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: var(--space-xs);
  counter-animation: countUp 2s ease-out;
}

.trust-item span {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.value-proposition {
  background: var(--bg-white);
  padding: var(--space-xl);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.lead-text {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  margin: var(--space-md) 0;
}

.highlight-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.2em;
  background-position: 0 88%;
  font-weight: 600;
  color: var(--primary);
  padding: 0 2px;
}

@media (max-width: 768px) {
  .explosive-claims {
    flex-direction: column;
    align-items: center;
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .persuasive-content .card,
  .trust-indicators,
  .value-proposition {
    padding: var(--space-lg);
  }
}

/* ==========================================================================
   16. FOOTER EXPANDIDO
   ========================================================================== */

.footer-expanded {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  margin-top: var(--space-xxl);
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.footer-brand img {
  border-radius: var(--radius-sm);
}

.footer-brand-text strong {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  display: block;
}

.footer-brand-text p {
  line-height: 1.6;
  opacity: 0.9;
}

.footer-title {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: var(--transition);
  display: block;
  padding: var(--space-xs) 0;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
  padding-left: var(--space-xs);
}

.footer-contact p,
.footer-schedule p {
  margin: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.footer-contact a,
.footer-schedule a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover,
.footer-schedule a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom-left {
  flex: 1;
  min-width: 250px;
}

.footer-legal {
  opacity: 0.7;
  margin-top: var(--space-xs);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-expanded {
    padding: var(--space-xl) 0 var(--space-md);
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-brand {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav {
    justify-content: center;
  }
}

/* ==========================================================================
   17. SCROLL OFFSETS Y UTILIDADES
   ========================================================================== */

/* Scroll offsets para navegación con headers fijos */
#por-que,
#proceso,
#faq,
#contacto {
  scroll-margin-top: calc(var(--topbar-height) + var(--header-height) + var(--space-md));
}

/* Mapa */
.mapa {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  max-height: 300px;
  object-fit: cover;
}

/* Address styling */
address {
  font-style: normal;
  line-height: 1.6;
}

address p {
  margin: var(--space-sm) 0;
}

address a {
  color: var(--primary);
  text-decoration: none;
}

address a:hover,
address a:focus {
  text-decoration: underline;
}

/* ==========================================================================
   13. DARK MODE SUPPORT (OPCIONAL)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --bg: #121212;
    --bg-white: #1e1e1e;
    --card: #1e1e1e;
    --border: #333;
    --border-focus: #64b5f6;
  }
  
  .hero-overlay {
    color: #f0f0f0;
  }
  
  .site-header {
    background: rgba(30, 30, 30, 0.78);
  }
}

/* ==========================================================================
   14. PRINT STYLES
   ========================================================================== */

@media print {
  .topbar,
  .site-header,
  .btn-whatsapp,
  .hero-cta,
  .form-actions {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-full {
    background: none !important;
    min-height: auto !important;
    padding: 0 !important;
  }
  
  .hero-overlay {
    color: black !important;
  }
  
  a {
    text-decoration: underline !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}