/* ==========================================================================
   PROTECCIONPLANISAPRE.CL - CORE STYLESHEET (SUMMARIZED + ON-CLICK DETAIL)
   Full FPS, Modern Minimalist Legal Architecture
   Direct Palette from logo.jpeg:
   - Primary Deep Navy: #041e42 / #061d3d / #0b2545
   - Electric Cyan: #009fe3 / #00adef
   - Surface Light Tints: #f8fafc / #edf7fd / #ffffff
   ========================================================================== */

:root {
  /* Brand Palette from Logo */
  --navy-darkest: #031429;
  --navy-dark: #061d3d;
  --navy-primary: #0b2545;
  --navy-light: #163e72;
  
  --cyan-primary: #009fe3;
  --cyan-light: #38bdf8;
  --cyan-hover: #0087c2;
  --cyan-glow: rgba(0, 159, 227, 0.28);
  --cyan-surface: #edf7fd;
  
  /* Neutral Palette */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --border-light: #e2e8f0;
  --border-hover: #93c5fd;
  
  /* Status & Accents */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #20ba59;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(6, 29, 61, 0.06);
  --shadow-md: 0 4px 14px rgba(6, 29, 61, 0.08);
  --shadow-lg: 0 12px 28px rgba(6, 29, 61, 0.12);
  --shadow-xl: 0 20px 45px rgba(6, 29, 61, 0.18);
  --shadow-glow: 0 0 25px rgba(0, 159, 227, 0.35);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions (Full FPS) */
  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.98rem;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.justify-center { justify-content: center; }
.max-w-750 { max-width: 750px; margin-left: auto; margin-right: auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan-primary) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-primary) 0%, #0284c7 100%);
  color: #ffffff;
  padding: 12px 24px;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 159, 227, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00adef 0%, var(--cyan-primary) 100%);
  box-shadow: 0 6px 18px rgba(0, 159, 227, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--navy-primary);
  color: #ffffff;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.btn-outline-hero {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 13px 26px;
  font-size: 0.98rem;
  backdrop-filter: blur(8px);
}

.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp-direct {
  background: var(--whatsapp-green);
  color: #ffffff;
  padding: 13px 24px;
  font-size: 0.98rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-direct:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Botón "Ver Detalle" estilizado para máxima interacción */
.btn-detail {
  background: var(--cyan-surface);
  color: var(--cyan-hover);
  border: 1px solid rgba(0, 159, 227, 0.3);
  padding: 9px 16px;
  border-radius: var(--border-radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-detail:hover {
  background: var(--cyan-primary);
  color: #ffffff;
  border-color: var(--cyan-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 159, 227, 0.25);
}

/* ==========================================================================
   TOP ANNOUNCEMENT
   ========================================================================== */
.top-announcement {
  background: var(--navy-darkest);
  color: #e2e8f0;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 159, 227, 0.2);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-badge {
  background: var(--cyan-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
}

.announcement-text strong {
  color: var(--cyan-light);
}

.announcement-link-btn {
  background: none;
  color: var(--cyan-light);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.announcement-link-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(6, 29, 61, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-primary);
  padding: 6px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-btn-mobile {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-toggle {
  display: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle.active .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active .hamburger-bar:nth-child(2) { opacity: 0; }
.mobile-toggle.active .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO COMPACTO Y RESUMIDO
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #0d3663 0%, var(--navy-dark) 55%, var(--navy-darkest) 100%);
  color: #ffffff;
  padding: 65px 0 65px;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -120px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 159, 227, 0.2) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 159, 227, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-container-compact {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 159, 227, 0.15);
  border: 1px solid rgba(0, 159, 227, 0.35);
  color: var(--cyan-light);
  padding: 5px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-pill.highlight {
  border-color: rgba(0, 159, 227, 0.4);
  background: rgba(0, 159, 227, 0.1);
}

.stat-pill strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--cyan-light);
  line-height: 1.2;
}

.stat-pill span {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ==========================================================================
   QUIÉNES SOMOS RESUMIDO + DESPLEGABLE
   ========================================================================== */
.section {
  padding: 65px 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--cyan-primary);
  margin-bottom: 6px;
}

.section-tag-light {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--cyan-primary);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
}

.section-title-sm {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.title-underline {
  width: 50px;
  height: 3.5px;
  background: var(--cyan-primary);
  margin: 10px auto 14px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.summary-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.vplus-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-primary);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.vplus-tag:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 159, 227, 0.35);
  color: #ffffff;
}

.vplus-badge {
  background: var(--cyan-primary);
  color: #ffffff;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
}

.vplus-inline-link {
  color: var(--cyan-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.vplus-inline-link:hover {
  color: #ffffff;
}

.vplus-text-link {
  color: var(--cyan-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.vplus-text-link:hover {
  color: var(--navy-dark);
}

.vplus-footer-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.vplus-footer-link:hover {
  color: #ffffff;
}

.summary-paragraph {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.btn-text-expand {
  background: none;
  color: var(--cyan-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.btn-text-expand:hover {
  color: var(--navy-dark);
}

.chevron-icon {
  transition: transform var(--transition-fast);
}

.btn-text-expand.active .chevron-icon {
  transform: rotate(180deg);
}

/* Drawer oculto que se despliega con animación fluida */
.expandable-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-content {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}

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

.drawer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.drawer-col p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.drawer-col.highlight-bg {
  background: var(--bg-page);
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
}

.mini-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.mini-checklist li {
  position: relative;
  padding-left: 20px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.mini-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan-primary);
  font-weight: bold;
}

/* ==========================================================================
   EQUIPO JURÍDICO COMPACTO (1 O 2 INTEGRANTES)
   ========================================================================== */
.team-compact-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.team-compact-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-compact-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--cyan-primary);
  border-radius: 2px;
}

.team-compact-grid {
  display: grid;
  gap: 16px;
}

.team-compact-grid.two-members {
  grid-template-columns: repeat(2, 1fr);
}

.team-compact-grid.single-member {
  grid-template-columns: 1fr;
}

.team-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.team-member-card:hover {
  border-color: var(--cyan-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}

.team-avatar-wrap {
  flex-shrink: 0;
}

.team-avatar-img {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cyan-primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.team-avatar-placeholder {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 2px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.team-info-wrap {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 3px 0;
  line-height: 1.3;
}

.team-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.team-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .team-compact-grid.two-members {
    grid-template-columns: 1fr;
  }
  .team-member-card {
    padding: 16px;
    gap: 16px;
  }
  .team-avatar-img,
  .team-avatar-placeholder {
    width: 85px;
    height: 85px;
  }
}

/* ==========================================================================
   SERVICIOS COMPACTOS (RESUMEN + CLIC PARA DETALLE)
   ========================================================================== */
.services-section-compact {
  background-color: var(--bg-page);
}

.services-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-card-compact {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.service-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan-primary);
}

.service-card-compact.featured {
  border: 2px solid var(--cyan-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.card-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--cyan-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: var(--border-radius-full);
}

.card-badge.secondary { background: var(--navy-primary); }
.card-badge.warning { background: #d97706; }
.card-badge.danger { background: #dc2626; }

.card-top-icon {
  width: 48px;
  height: 48px;
  background: var(--cyan-surface);
  color: var(--cyan-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 159, 227, 0.2);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-summary {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pill {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--navy-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--border-radius-full);
}

.card-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.price-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.card-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   PROCEDIMIENTO COMPACTO (01 - 02 - 03)
   ========================================================================== */
.workflow-section-compact {
  background-color: #ffffff;
}

.workflow-steps-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.step-card-compact {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 24px;
  position: relative;
}

.step-card-compact.highlight {
  border-color: var(--cyan-primary);
  background: var(--cyan-surface);
}

.step-badge {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--cyan-primary);
  margin-bottom: 15px;
  line-height: 1;
  text-shadow: 2px 2px 0px rgba(0, 159, 227, 0.15);
}

.step-card-compact h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.step-card-compact p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ COMPACTO (ACORDEÓN)
   ========================================================================== */
.faq-section-compact {
  background-color: var(--bg-page);
}

.faq-container-compact {
  max-width: 800px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover, .faq-item.active {
  border-color: var(--cyan-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  cursor: pointer;
  text-align: left;
  gap: 14px;
}

.faq-q-text {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.faq-toggle-icon {
  color: var(--cyan-primary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 12px;
}

/* ==========================================================================
   FORMULARIO COMPACTO
   ========================================================================== */
.form-section {
  background: radial-gradient(circle at 10% 20%, #0d3663 0%, var(--navy-dark) 60%, var(--navy-darkest) 100%);
  color: #ffffff;
}

.form-wrapper-compact {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--border-radius-lg);
  padding: 40px 38px;
  box-shadow: var(--shadow-xl);
}

.form-main-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.form-main-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 5px;
}

.form-label .required { color: var(--color-danger); }
.form-label .optional { font-weight: normal; color: var(--text-muted); font-size: 0.78rem; }

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 11px 14px 11px 38px;
  font-size: 0.92rem;
  color: var(--navy-dark);
  background-color: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

textarea.form-control {
  padding-left: 14px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--cyan-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.select-wrap select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field-error {
  font-size: 0.75rem;
  color: var(--color-danger);
  margin-top: 4px;
  display: none;
  font-weight: 600;
}

.form-group.has-error .form-control {
  border-color: var(--color-danger);
  background-color: #fff5f5;
}

.form-group.has-error .field-error {
  display: block;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.privacy-notice {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* Success Card */
.form-success-card {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.form-success-card.visible {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  color: var(--color-success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.form-success-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.form-success-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   MODAL DE INFORMACIÓN DETALLADA (ON-CLICK DETAILS)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 20, 41, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl), 0 0 35px rgba(0, 159, 227, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 159, 227, 0.2);
}

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

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--bg-subtle);
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--navy-dark);
  color: #ffffff;
}

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan-surface) 100%);
}

.modal-badge {
  display: inline-block;
  background: var(--navy-primary);
  color: var(--cyan-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--border-radius-full);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-dark);
  padding-right: 36px;
  line-height: 1.25;
}

.modal-body {
  padding: 22px 28px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-body p {
  margin-bottom: 14px;
}

.modal-body strong {
  color: var(--navy-dark);
}

.modal-box-highlight {
  background: var(--bg-page);
  border-left: 3px solid var(--cyan-primary);
  padding: 12px 16px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin: 14px 0;
  font-size: 0.9rem;
}

.modal-step-box {
  background: #f1f5f9;
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 0.88rem;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-price-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cyan-primary);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   FOOTER (ORDERED, CENTERED & SYMMETRICAL)
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #020e1f 0%, #010811 100%);
  color: #ffffff;
  padding: 55px 0 45px;
  border-top: 1px solid rgba(0, 159, 227, 0.35);
  font-size: 0.94rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 90vw;
  height: 140px;
  background: radial-gradient(ellipse at top, rgba(0, 159, 227, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.footer-container-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

/* Brand / Logo Centered */
.footer-brand-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 7px 18px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 159, 227, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-logo-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 159, 227, 0.4);
}

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

.footer-tagline {
  color: #94a3b8;
  font-size: 0.94rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Navigation Links Centered */
.footer-nav-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 6px 0;
}

.footer-nav-centered a {
  color: #f1f5f9;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.93rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  padding: 4px 6px;
}

.footer-nav-centered a:hover {
  color: var(--cyan-light);
  transform: translateY(-1px);
}

.footer-sep {
  color: rgba(56, 189, 248, 0.45);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  user-select: none;
}

/* Divider Line */
.footer-divider {
  width: 100%;
  max-width: 580px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.35) 50%, transparent 100%);
  margin: 2px auto;
}

/* Legal & Copyright Centered */
.footer-legal-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
}

.footer-copy {
  color: #f8fafc;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-copy strong {
  color: #38bdf8;
  font-weight: 700;
}

.vplus-footer-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.vplus-footer-link:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.footer-subcopy {
  color: #64748b;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
}

/* Backward-compatibility styles */
.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   FLOATING WHATSAPP & SCROLL TO TOP
   ========================================================================== */
.floating-instagram {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 999;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(214, 36, 159, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-instagram:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 36, 159, 0.6);
}

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--whatsapp-green);
  opacity: 0.6;
  animation: pulseRing 2s infinite;
  z-index: -1;
}

.scroll-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 990;
  background: #ffffff;
  color: var(--navy-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: var(--cyan-surface);
  color: var(--cyan-primary);
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.7; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.highlight-selection {
  border-color: var(--cyan-primary) !important;
  background-color: var(--cyan-surface) !important;
  box-shadow: 0 0 0 3px var(--cyan-glow) !important;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (ALL DEVICES: MOBILE, TABLET, DESKTOP, 4K)
   ========================================================================== */

/* Large Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-title {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
  }
  .faq-grid-compact {
    grid-template-columns: 1fr;
  }
}

/* Medium Tablets & Phablets (max-width: 900px) */
@media (max-width: 900px) {
  .hero-stats-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .drawer-grid {
    grid-template-columns: 1fr;
  }
  .services-grid-compact {
    grid-template-columns: 1fr;
  }
  .workflow-steps-compact {
    grid-template-columns: 1fr;
  }
  .about-preview {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
  
  .site-header {
    height: 64px;
  }
  .header-container {
    height: 64px;
  }
  .logo-img {
    height: 40px;
  }
  
  .mobile-toggle {
    display: flex;
  }
  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(6, 29, 61, 0.16);
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-nav.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nav-link {
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px solid #f1f5f9;
  }
  .nav-btn-mobile {
    display: block;
    background: var(--cyan-primary);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: var(--border-radius-full);
    text-align: center;
    width: 100%;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.25);
  }

  .hero-section {
    padding: 45px 0 50px;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 48px 0;
  }
  .section-title {
    font-size: 1.75rem;
  }

  /* Form */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .form-wrapper-compact {
    padding: 24px 18px;
    border-radius: var(--border-radius-md);
  }
  .form-control {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    padding: 12px 14px 12px 38px;
  }

  /* Modal */
  .modal-card {
    max-height: 85vh;
    border-radius: var(--border-radius-md);
  }
  .modal-header {
    padding: 18px 20px 14px;
  }
  .modal-title {
    font-size: 1.2rem;
    padding-right: 32px;
  }
  .modal-body {
    padding: 16px 20px;
    font-size: 0.9rem;
  }
  .modal-footer {
    padding: 14px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .modal-actions {
    flex-direction: column;
    width: 100%;
  }
  .modal-actions .btn {
    width: 100%;
  }

  /* Footer on mobile */
  .site-footer {
    padding: 44px 0 48px;
  }
  .footer-container-centered {
    gap: 18px;
  }
  .footer-nav-centered {
    gap: 6px 12px;
  }
  .footer-nav-centered a {
    font-size: 0.88rem;
    padding: 3px 4px;
  }
  .footer-sep {
    font-size: 0.9rem;
  }
  .footer-copy {
    font-size: 0.88rem;
    padding: 0 10px;
  }
}

/* Smartphone & Compact Screens (max-width: 600px) */
@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .top-announcement {
    font-size: 0.76rem;
    padding: 6px 0;
  }
  .announcement-content {
    gap: 6px;
    flex-direction: column;
    text-align: center;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .form-submit-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .form-submit-row .btn {
    width: 100%;
    justify-content: center;
  }

  .summary-box {
    padding: 20px 16px;
  }
  .service-card-compact {
    padding: 22px 16px;
  }
  .card-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .card-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Floating action buttons resized for phone */
  .floating-whatsapp {
    bottom: 18px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }
  .floating-instagram {
    bottom: 72px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
  .floating-instagram svg {
    width: 22px;
    height: 22px;
  }
  .scroll-to-top {
    bottom: 18px;
    left: 16px;
    width: 38px;
    height: 38px;
  }
}

/* Extra Small Phones (max-width: 400px - iPhone SE, older Android) */
@media (max-width: 400px) {
  .hero-stats-compact {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .stat-pill {
    padding: 8px 12px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .footer-logo {
    height: 38px;
  }
  .footer-logo-wrap {
    padding: 6px 14px;
  }
}
