/* ============================================
   HERO - INICIO
   ============================================ */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15,37,64,0.94), rgba(15,37,64,0.78)), 
              url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?q=80&w=1600&auto=format&fit=crop') center/cover;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--route-orange) 0px, var(--route-orange) 24px,
    transparent 24px, transparent 44px
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 640px;
}

.hero .eyebrow {
  color: var(--route-orange);
}

.hero h1 {
  color: var(--white);
  margin: 16px 0 18px;
}

.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 28px;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--off-white);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2 {
  color: var(--white);
}

.section--navy p {
  color: rgba(255,255,255,0.78);
}

/* Tarjeta destacada de especialidad (Inicio) */
.feature-highlight {
  background: var(--road-blue);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.feature-highlight .icon-badge {
  background: rgba(255,255,255,0.15);
}

.feature-highlight h3,
.feature-highlight p {
  color: var(--white);
}

.feature-highlight p {
  opacity: 0.9;
  margin: 10px 0 18px;
  max-width: 560px;
}

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

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(28,111,217,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: var(--road-blue);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.card p {
  color: var(--slate);
  font-size: 0.93rem;
  margin-top: 10px;
}

/* Por qué elegirnos */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: left;
}

.why-card p {
  color: var(--slate);
  font-size: 0.92rem;
  margin-top: 8px;
}

/* Testimonios */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.stars {
  color: var(--route-orange);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.55;
}

.testimonial-author {
  margin-top: 16px;
  font-size: 0.85rem;
}

.testimonial-author strong {
  display: block;
  color: var(--navy);
}

.testimonial-author span {
  color: var(--slate);
}

/* CTA final */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg, var(--route-orange) 0px, var(--route-orange) 20px,
    transparent 20px, transparent 36px
  );
}

.cta-banner h2 { color: var(--white); }
.cta-banner p {
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin: 12px auto 28px;
}

/* ============================================
   PÁGINA: SERVICIOS / COBERTURAS
   ============================================ */

.page-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}

.page-hero .eyebrow { color: var(--route-orange); }
.page-hero h1 { margin: 14px 0 12px; }
.page-hero p {
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.coverage-card h3 { margin-top: 18px; }

.coverage-card ul {
  margin-top: 16px;
}

.coverage-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 9px;
}

.coverage-card ul li svg {
  width: 16px;
  height: 16px;
  stroke: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   PÁGINA: PLANES
   ============================================ */

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.plan-card--featured {
  border: 2px solid var(--road-blue);
  position: relative;
  box-shadow: 0 12px 32px -8px rgba(28,111,217,0.25);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--route-orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.plan-card h3 {
  margin-bottom: 8px;
}

.plan-card > p {
  color: var(--slate);
  font-size: 0.88rem;
  min-height: 60px;
}

.plan-subhead {
  font-size: 0.78rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 18px 0 4px;
}

.plan-card ul {
  margin: 14px 0 24px;
  flex-grow: 1;
}

.plan-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.89rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.plan-card ul li:last-child { border-bottom: none; }

.plan-card ul li.included { color: var(--navy); }
.plan-card ul li.excluded { color: var(--slate-light); }

.plan-card ul li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-card ul li.included svg { stroke: var(--success); }
.plan-card ul li.excluded svg { stroke: var(--slate-light); }

/* Tabla comparativa */
.compare-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table caption {
  text-align: left;
  padding: 24px 28px 4px;
}

.compare-table thead th {
  background: var(--off-white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th:first-child {
  text-align: left;
}

.compare-table thead th.col-featured {
  color: var(--road-blue);
}

.compare-table tbody td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.compare-table tbody td:first-child {
  text-align: left;
  color: var(--navy);
  font-weight: 500;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table .yes {
  color: var(--success);
  font-weight: 700;
}

.compare-table .no {
  color: var(--slate-light);
}

/* ============================================
   PÁGINA: FAQ
   ============================================ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
}

.faq-question .chevron {
  width: 20px;
  height: 20px;
  stroke: var(--slate);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .chevron {
  transform: rotate(180deg);
  stroke: var(--road-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding: 0 4px 22px;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 640px;
}

.faq-cta {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin-top: 48px;
}

.faq-cta p {
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ============================================
   PÁGINA: CONTACTO
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group .required {
  color: var(--route-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--road-blue);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 14px;
  text-align: center;
}

.contact-sidebar .card {
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-item .icon-badge {
  width: 40px;
  height: 40px;
}

.contact-info-item .icon-badge svg {
  width: 20px;
  height: 20px;
}

.contact-info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 500;
}

.contact-info-item span,
.contact-info-item a {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
}

.contact-info-item a:hover {
  color: var(--road-blue);
}

/* ============================================
   RESPONSIVE - PÁGINAS
   ============================================ */

@media (max-width: 900px) {
  .feature-highlight {
    grid-template-columns: 1fr;
  }
  .feature-grid-sm,
  .why-grid,
  .testimonial-grid,
  .coverage-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .compare-table {
    font-size: 0.85rem;
  }
  .cta-banner {
    padding: 40px 24px;
  }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { min-height: auto; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
}

/* ============================================
   SECCIÓN COMPAÑÍAS PARTNER
   ============================================ */

.partners-section {
  background: var(--off-white);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.partners-section .section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 24px;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.partner-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

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

/* ============================================
   BANDA SSN (cumplimiento MACOP / PAS)
   ============================================ */

.ssn-band {
  background: var(--white);
  border-top: 3px solid #29ABE2;
  padding: 16px 0;
}

.ssn-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ssn-band-logo img {
  height: 32px;
  width: auto;
}

.ssn-band-data {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.ssn-band-item {
  font-size: 0.78rem;
  color: #4A4A49;
  line-height: 1.4;
}

.ssn-band-item strong {
  display: block;
  font-size: 0.82rem;
  color: #4A4A49;
}

.ssn-band-item a {
  color: #29ABE2;
  text-decoration: none;
}

.ssn-band-item a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .ssn-band .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .ssn-band-data {
    gap: 16px;
  }
  .partners-logos {
    gap: 14px;
  }
  .partner-logo {
    height: 60px;
    padding: 10px 16px;
  }
  .partner-logo img {
    height: 30px;
  }
}
