/* ==========================================================================
   SEGUROS CCH - UNIFIED DESIGN SYSTEM (styles.css)
   ========================================================================== */

:root {
  --primary-navy: #0b1e3f;
  --primary-blue: #004bb4;
  --blue-hover: #003a8c;
  --blue-light: #2563eb;
  --blue-bg: #edf4ff;
  --green-wa: #25d366;
  --green-wa-hover: #1ebd56;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --border-gray: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 30px -10px rgba(11, 30, 63, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  padding-top: 80px;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   ANNOUNCEMENT BAR (Disabled)
   ========================================================================== */
.announcement-bar {
  display: none !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-gray);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 75, 180, 0.25);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
}

.logo-text span {
  color: var(--primary-blue);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-blue);
}

/* Dropdown Menu - Hover Stability Fix */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown > a i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

/* Hover Bridge: Pseudo-element prevents mouse-out gap when moving downwards */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
  background: transparent;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  min-width: 260px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gray);
  padding: 10px 0;
  display: none;
  flex-direction: column;
  z-index: 1005;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: flex;
}

.nav-dropdown:hover > a i {
  transform: rotate(180deg);
}

.dropdown-menu a {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-menu a i {
  font-size: 16px;
  color: var(--primary-blue);
  width: 20px;
  text-align: center;
}

.dropdown-menu a:hover {
  background: var(--bg-gray);
  color: var(--primary-blue);
}

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

.btn-wa-header {
  width: 42px;
  height: 42px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-wa-header:hover {
  background: var(--green-wa-hover);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-quote-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.btn-quote-header:hover {
  background: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 75, 180, 0.3);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-navy);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
  padding: 60px 24px 80px;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge-tag {
  display: inline-block;
  background: var(--blue-bg);
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-blue);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 75, 180, 0.3);
  font-family: inherit;
}

.btn-hero-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 75, 180, 0.4);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--primary-navy);
  border: 1px solid var(--border-gray);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.btn-hero-secondary:hover {
  background: var(--bg-gray);
  border-color: var(--primary-blue);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-gray);
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}

.feature-pill i {
  color: var(--primary-blue);
  font-size: 16px;
}

.hero-media {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section-padding {
  padding: 80px 24px;
}

.bg-gray-section {
  background-color: var(--bg-gray);
}

.section-title-center {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 56px;
}

.section-h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-p {
  font-size: 16px;
  color: var(--text-muted);
}

/* ==========================================================================
   CARDS & GRID
   ========================================================================== */
.coverage-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.coverage-card {
  background: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.coverage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.cov-icon-box {
  width: 50px;
  height: 50px;
  background: var(--blue-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 22px;
  margin-bottom: 20px;
}

.coverage-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.coverage-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SPLIT SECTIONS & WHY CHOOSE US
   ========================================================================== */
.split-section {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.left-why {
  background: #ffffff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-why h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 24px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.why-icon {
  width: 28px;
  height: 28px;
  background: var(--blue-bg);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.right-custom-card {
  background: var(--primary-navy);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.custom-shield-icon {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  color: #ffffff;
}

.right-custom-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}

.right-custom-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-custom-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary-navy);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}

.btn-custom-white:hover {
  background: var(--blue-bg);
  transform: translateY(-2px);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.faq-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-navy);
  user-select: none;
  transition: background 0.2s ease;
}

.faq-header:hover {
  background: var(--bg-gray);
}

.faq-header i {
  color: var(--primary-blue);
  transition: transform 0.3s ease;
  font-size: 12px;
}

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

.faq-body {
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-body {
  display: block;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--primary-navy);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cta-shield-icon {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  flex-shrink: 0;
}

.cta-info h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.cta-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary-navy);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}

.btn-cta-white:hover {
  background: var(--blue-bg);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #071226;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 30px;
  font-size: 13px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .f-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-brand .f-logo span {
  color: var(--blue-light);
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-item i {
  color: var(--blue-light);
  width: 18px;
  text-align: center;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-gray);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--border-gray);
  color: var(--text-dark);
}

.mod-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 6px;
  text-align: center;
}

.mod-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 75, 180, 0.1);
}

.btn-submit-form {
  width: 100%;
  background: var(--primary-blue);
  color: #ffffff;
  padding: 13px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}

.btn-submit-form:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
  .hero-img {
    height: 300px;
  }
  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-section {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .cta-banner-container {
    flex-direction: column;
    text-align: center;
  }
  .cta-left {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  .header-container {
    height: 70px;
  }
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .coverage-grid {
    grid-template-columns: 1fr;
  }
  .faq-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
