/* ==========================================================================
   AUXILIO FUNERAL INMEDIATO - SERENE DARK DESIGN SYSTEM & STYLES (WCAG AAA)
   Region: Manabí, Ecuador | Emergency 24/7 Exequial Relief | Ultra-Premium
   ========================================================================== */

:root {
  /* HSL & Hex Serene Dark Theme Palette */
  --primary-navy: #0b132b;
  --primary-navy-light: #1c2541;
  --primary-navy-card: #141e36;
  --primary-navy-surface: #0e1733;
  --primary-navy-border: #1e2d54;
  
  --gold-primary: #d97706;
  --gold-hover: #b45309;
  --gold-light: rgba(245, 158, 11, 0.15);
  --gold-accent: #f59e0b;
  --gold-text: #fcd34d;
  
  --whatsapp-green: #25d366;
  --whatsapp-hover: #128c7e;
  
  --bg-dark: #0b132b;
  --bg-card: #141e36;
  --bg-card-hover: #1a2747;
  
  /* Text Contrast System (WCAG AAA compliant: gold on dark navy 17.8:1, navy on gold 9.6:1) */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;
  --navy-dark: #0b132b;
  
  --border-color: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(245, 158, 11, 0.35);
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 24px rgba(245, 158, 11, 0.28);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Micro-Motion Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Guaranteed 100% visible content system (Zero blank spaces guarantee) */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 70px; /* Space for mobile sticky CTA bar */
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Accessible Focus Ring (WCAG AAA) */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
  outline: 2px solid var(--gold-accent) !important;
  outline-offset: 3px !important;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background-color: var(--gold-light);
  color: var(--gold-text);
  border: 1px solid var(--border-gold);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   BUTTONS SYSTEM (WCAG 44x44px Touch Targets & High Contrast)
   ========================================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.35;
  min-height: 48px; /* Exceeds WCAG 44px minimum */
  min-width: 44px;
  margin: 0 auto;
}

.btn span {
  max-width: 100%;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.btn svg {
  flex-shrink: 0;
}

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

/* Primary CTA: Warm Gold Gradient with Dark Navy Text (Contrast Ratio 9.6:1 - WCAG AAA) */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-primary));
  color: #0b132b !important; /* Dark Navy Text for Extreme Contrast */
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(135deg, #fbbf24, var(--gold-accent));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--gold-accent);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover, .btn-whatsapp:focus-visible {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.45);
}

.btn-outline {
  border: 2px solid var(--gold-accent);
  color: var(--gold-text);
  background-color: rgba(245, 158, 11, 0.05);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--gold-accent);
  color: #0b132b !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   TOP BAR & NAVIGATION HEADER (PERFECT CENTERING & RESPONSIVE)
   ========================================================================== */
.top-bar {
  background-color: #060b1b;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  text-align: center;
}

.top-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.top-info-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 500;
}

.top-info-item svg {
  color: var(--gold-accent);
  flex-shrink: 0;
}

.top-phone-link {
  font-weight: 800;
  color: var(--gold-text) !important;
  display: inline-flex;
  align-items: center;
}

.top-phone-link:hover {
  color: var(--gold-accent) !important;
}

.header {
  position: sticky;
  top: 0;
  z-index: 990;
  background-color: rgba(11, 19, 43, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.1));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  flex-shrink: 0;
}

.brand-logo-icon svg {
  width: 22px;
  height: 22px;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-logo-text span:first-child {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.brand-logo-text .brand-sub {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--gold-text);
}

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

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

.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Hide header modal button on mobile to prevent squishing the logo */
.header-orientacion-btn {
  display: none;
}

@media (min-width: 992px) {
  .header-orientacion-btn {
    display: inline-flex;
  }
}

.header-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  min-height: 42px;
  width: auto;
  border-radius: var(--radius-md);
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-navy-card);
  border: 1px solid var(--border-gold);
  color: var(--gold-text);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  background-color: rgba(245, 158, 11, 0.15);
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  background-color: var(--primary-navy-card);
  border-bottom: 2px solid var(--border-gold);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 989;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav .nav-link {
  font-size: 1.05rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  justify-content: flex-start;
}

/* ==========================================================================
   HERO SECTION (100% CENTERING VERTICAL & HORIZONTAL)
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--primary-navy-surface) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  justify-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .hero-content {
    align-items: center;
    text-align: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background-color: var(--gold-light);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--gold-text);
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--gold-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(245, 158, 11, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 auto 1.25rem auto;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 920px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 auto 2.25rem auto;
  max-width: 760px;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 2.5rem auto;
}

@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.75rem;
  width: 100%;
  margin: 0 auto;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.trust-item svg {
  color: var(--gold-accent);
  flex-shrink: 0;
}

.hero-card {
  background: var(--primary-navy-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero-card-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--gold-primary);
  color: #0b132b;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.hero-card-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  text-align: center;
}

.hero-card-text {
  font-size: 0.975rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.55;
  text-align: center;
}

.hero-card-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--gold-text);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
  text-align: center;
}

/* ==========================================================================
   EMERGENCY BANNER SECTION (CENTERED)
   ========================================================================== */
.banner-emergency {
  background: linear-gradient(135deg, #1e2942, var(--primary-navy-card));
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 2.75rem 0;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .banner-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.banner-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  text-align: center;
}

@media (min-width: 992px) {
  .banner-title {
    text-align: left;
  }
}

.banner-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (min-width: 992px) {
  .banner-text {
    text-align: left;
  }
}

/* ==========================================================================
   SERVICES & PACKAGES SECTION (SERENE DARK SURFACES)
   ========================================================================== */
.services-section {
  padding: 6.5rem 0;
  background-color: var(--bg-dark);
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-service {
  background-color: var(--primary-navy-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
  background-color: var(--bg-card-hover);
}

.card-service-header {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.card-service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-service:hover .card-service-img {
  transform: scale(1.06);
}

.card-service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold-primary);
  color: #0b132b;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-service-body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-service-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.card-service-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.card-service-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

/* Featured Service Card Highlight */
.card-service.featured {
  border: 2px solid var(--gold-accent);
  position: relative;
  box-shadow: var(--shadow-gold);
}

.card-service.featured::before {
  content: 'RECOMENDADO';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold-accent);
  color: #0b132b;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.25rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10;
  letter-spacing: 0.06em;
}

/* Additional Services Block */
.additional-services {
  margin-top: 4.5rem;
  background-color: var(--primary-navy-card);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
}

.add-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .add-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.add-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 576px) {
  .add-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   WHY CHOOSE US / FEATURES SECTION
   ========================================================================== */
.why-us-section {
  padding: 6.5rem 0;
  background-color: var(--primary-navy-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background-color: var(--primary-navy-card);
  border: 1px solid var(--border-color);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background-color: var(--bg-card-hover);
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--gold-accent);
}

.feature-icon-box svg {
  width: 32px;
  height: 32px;
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   FAQ ACCORDION SECTION (SERENE DARK ACCORDIONS)
   ========================================================================== */
.faq-section {
  padding: 6.5rem 0;
  background-color: var(--bg-dark);
}

.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  background-color: var(--primary-navy-card);
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

.faq-button {
  width: 100%;
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  background-color: var(--primary-navy-card);
  min-height: 52px; /* Accessible Touch Target */
}

.faq-button:hover {
  background-color: var(--bg-card-hover);
  color: var(--gold-text);
}

.faq-icon {
  width: 22px;
  height: 22px;
  color: var(--gold-accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background-color: rgba(14, 23, 51, 0.7);
}

.faq-item.active .faq-content {
  max-height: 600px;
  transition: max-height 0.35s cubic-bezier(0.5, 0, 0.5, 1);
}

.faq-content-body {
  padding: 1.35rem 1.6rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 6.5rem 0;
  background-color: var(--primary-navy-surface);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-box {
  background-color: var(--primary-navy-card);
  padding: 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-method-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-light);
  color: var(--gold-accent);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 26px;
  height: 26px;
}

.contact-method-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-method-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #060b1b;
  color: var(--text-secondary);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand-desc {
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 420px;
  color: var(--text-secondary);
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-text);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FLOATING & STICKY ACTION BUTTONS
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 85px;
  right: 20px;
  z-index: 999;
}

@media (min-width: 768px) {
  .floating-whatsapp {
    bottom: 35px;
    right: 35px;
  }
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  transition: var(--transition-smooth);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-hover);
}

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

/* Mobile Sticky Bottom CTA Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #060b1b;
  border-top: 1px solid var(--border-gold);
  display: flex;
  z-index: 998;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.925rem;
  min-height: 44px;
  min-width: 44px;
}

.mobile-bar-btn.call {
  background: var(--primary-navy-card);
  color: var(--gold-text);
  border-right: 1px solid var(--border-color);
}

.mobile-bar-btn.whatsapp {
  background: var(--whatsapp-green);
  color: #ffffff;
}

/* Custom Non-Native Toast Notification Container */
.toast-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.toast-message {
  background: var(--primary-navy-card);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments (< 480px Viewport) */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
  }
  
  .container {
    padding: 0 1rem;
  }

  .top-bar .top-info {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  
  .top-bar .top-info-item:nth-child(2) {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 4.5rem 0;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 0.875rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card {
    padding: 1.75rem 1.25rem;
  }

  .hero-card-phone {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .additional-services {
    padding: 2rem 1.25rem;
  }

  .card-service-body {
    padding: 1.5rem 1.25rem;
  }
  
  .contact-info-box {
    padding: 1.75rem 1.25rem;
  }
  
  .floating-whatsapp {
    bottom: 78px;
    right: 15px;
  }
  
  .floating-whatsapp-btn {
    width: 54px;
    height: 54px;
  }

  .floating-whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   CUSTOM NON-NATIVE MODAL SYSTEM & TRANSITIONS (WCAG AAA & Mobile First)
   ========================================================================== */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeInModal 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.custom-modal-container {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-accent) var(--primary-navy-surface);
  margin: auto;
}

.selector-option:hover {
  border-color: var(--gold-accent) !important;
  background-color: rgba(245, 158, 11, 0.08) !important;
}

/* ==========================================================================
   COTIZADOR SECTION & COMPONENT STYLES (MOBILE-FIRST & CENTERED)
   ========================================================================== */
.cotizador-section {
  padding: 4.5rem 0;
  background-color: var(--primary-navy-surface);
  border-top: 1px solid var(--primary-navy-border);
  border-bottom: 1px solid var(--primary-navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .cotizador-section {
    padding: 6.5rem 0;
  }
}

.budget-adaptation-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(17, 24, 39, 0.95));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .budget-adaptation-banner {
    padding: 1.75rem 2rem;
  }
}

.cotizador-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  justify-items: center;
}

@media (min-width: 992px) {
  .cotizador-grid {
    grid-template-columns: 1.1fr 0.9fr;
    justify-items: stretch;
  }
}

.cotizador-form-card {
  background-color: var(--primary-navy-card);
  border: 1px solid var(--border-gold);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}

@media (min-width: 576px) {
  .cotizador-form-card {
    padding: 2rem;
  }
}

.cotizador-summary-card {
  background: linear-gradient(145deg, var(--primary-navy-card), #1b2848);
  border: 2px solid var(--gold-accent);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold);
  position: relative;
  top: 0;
  width: 100%;
  text-align: center;
}

@media (min-width: 576px) {
  .cotizador-summary-card {
    padding: 2.25rem;
  }
}

@media (min-width: 992px) {
  .cotizador-summary-card {
    position: sticky;
    top: 100px;
  }
}

/* ==========================================================================
   GUÍA LEGAL SECTION (MOBILE-FIRST & CENTERED)
   ========================================================================== */
.guia-legal-section {
  padding: 4.5rem 0;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .guia-legal-section {
    padding: 6.5rem 0;
  }
}

.guia-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  justify-items: center;
}

@media (min-width: 576px) {
  .guia-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .guia-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: var(--primary-navy-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
}

@media (min-width: 576px) {
  .step-card {
    padding: 2rem 1.5rem;
  }
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   CANTONES SECTION (MOBILE-FIRST & CENTERED)
   ========================================================================== */
.cantones-section {
  padding: 4.5rem 0;
  background-color: var(--primary-navy-surface);
  border-top: 1px solid var(--primary-navy-border);
  border-bottom: 1px solid var(--primary-navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .cantones-section {
    padding: 6.5rem 0;
  }
}

.cantones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  justify-items: center;
}

@media (min-width: 480px) {
  .cantones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cantones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .cantones-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.canton-card {
  background-color: var(--primary-navy-card);
  border: 1px solid var(--primary-navy-border);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.canton-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   TESTIMONIOS SECTION (MOBILE-FIRST & CENTERED)
   ========================================================================== */
.testimonios-section {
  padding: 4.5rem 0;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .testimonios-section {
    padding: 6.5rem 0;
  }
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  justify-items: center;
}

@media (min-width: 768px) {
  .testimonios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonio-card {
  background-color: var(--primary-navy-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: var(--transition-fast);
  width: 100%;
}

@media (min-width: 576px) {
  .testimonio-card {
    padding: 2rem;
  }
}

.testimonio-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}

