/* ============================================================
   CASER SEGUROS DE SALUD - Estilos Globales
   Colores extraídos de: caser.ofertaseguromedico.es
   ============================================================ */

/* ---- Variables de Color ---- */
:root {
  --color-primary: #007363;
  --color-primary-dark: #095751;
  --color-primary-light: #e8f4f2;
  --color-cta: #EC7A08;
  --color-cta-hover: #d46c06;
  --color-text: #333333;
  --color-text-medium: #53565A;
  --color-text-light: #6b7280;
  --color-light-gray: #D9D9D6;
  --color-off-white: #FAF9F5;
  --color-dark-blue: #05355C;
  --color-white: #ffffff;
  --color-check: #007363;
  --color-cross: #d9534f;

  /* Tipografía */
  --font-main: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;

  /* Espaciados */
  --section-padding: 70px 0;
  --container-max: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

ul {
  list-style: none;
}

/* ---- Contenedor Principal ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Botones ---- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
  letter-spacing: 0.3px;
}

.btn-cta {
  background: var(--color-cta);
  color: var(--color-white);
}
.btn-cta:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(236,122,8,0.35);
  color: var(--color-white);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 18px;
}

/* ---- Tipografía ---- */
h1, h2, h3, h4, h5 {
  line-height: 1.25;
  font-weight: 700;
}

.section-title {
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-medium);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--color-light-gray);
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--color-text-medium);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--color-white);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  height: 52px;
  width: auto;
}

/* Logo SVG fallback */
.logo-svg-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-svg-wrap .logo-main {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -1px;
}
.logo-svg-wrap .logo-sub {
  font-size: 11px;
  color: var(--color-text-medium);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-phones {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
}

.phone-cta .label {
  font-size: 11px;
  font-weight: 400;
  display: block;
  line-height: 1;
  opacity: 0.85;
}

.phone-cta .number {
  font-size: 18px;
  display: block;
  line-height: 1.2;
}

.phone-secondary {
  text-align: right;
}

.phone-secondary .label {
  font-size: 11px;
  color: var(--color-text-medium);
  display: block;
  line-height: 1;
}

.phone-secondary .number {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  line-height: 1.3;
}

/* ---- NAVEGACIÓN ---- */
.main-nav {
  background: var(--color-primary);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav-inner a {
  color: var(--color-white);
  padding: 16px 26px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  display: block;
  white-space: nowrap;
}

.nav-inner a:hover,
.nav-inner a.active {
  background: var(--color-primary-dark);
}

.nav-inner a.nav-cta,
.nav-inner button.nav-cta {
  background: var(--color-cta) !important;
  font-weight: 700;
  border-radius: 0;
  color: var(--color-white) !important;
  text-decoration: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 26px;
  font-size: 15px;
  font-family: var(--font-main);
}

.nav-inner a.nav-cta:hover,
.nav-inner button.nav-cta:hover {
  background: var(--color-cta-hover) !important;
}

/* Hamburger menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-white);
  font-size: 24px;
}

/* ---- OFERTA BAR ---- */
.oferta-bar {
  background: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---- LOGO IMAGEN ---- */
.logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.logo-img-footer {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

/* ---- HERO SECTION ---- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #009e86 100%);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/seguro-salud-empresas-caser-hero.jpeg') center/cover no-repeat;
  opacity: 0.52;
}
/* Gradiente de protección para legibilidad del texto (izquierda más oscura) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0, 40, 33, 0.45) 0%,
    rgba(0, 40, 33, 0.20) 45%,
    transparent 75%
  );
  z-index: 1;
}
/* Hero backgrounds por página */
.hero.hero-particulares::before { background-image: url('../images/seguro-salud-autonomos-caser-hero.jpeg'); }
.hero.hero-familiar::before     { background-image: url('../images/seguro-salud-caser-familias.jpeg'); }
.hero.hero-embarazo::before     { background-image: url('../images/seguro-salud-embarazo-caser.jpeg'); }
.hero.hero-mayores::before      { background-image: url('../images/seguro-salud-mayores-caser.jpg'); }
.hero.hero-autonomos::before    { background-image: url('../images/seguro-salud-individual-caser.jpeg'); }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 50px 20px;
}

.hero-text .eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: 2.4rem;
  color: var(--color-white);
  margin-bottom: 22px;
  line-height: 1.2;
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.hero-descuento {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

/* Hero Form */
.hero-form-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-hover);
}

/* Hero form — estilo idéntico al modal "Te llamamos gratis" */
.hf-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--color-primary);
}
.hf-icon svg { width: 30px; height: 30px; }

.hero-form-card h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 6px;
  text-align: center;
}

.hf-sub {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-medium);
  margin-bottom: 20px;
}

/* Input de teléfono unificado (borde alrededor del conjunto) */
.hf-phone {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.hf-phone .phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #f7f7f7;
  border-right: 1.5px solid #ddd;
  height: 48px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.hf-phone input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-main);
  background: transparent;
}

/* Checkbox igual al modal */
.hf-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  margin-bottom: 18px;
}
.hf-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--color-primary); }
.hf-check label { font-size: 12px; color: var(--color-text-medium); line-height: 1.5; }
.hf-check a { color: var(--color-primary); text-decoration: underline; }

/* Botón igual al modal */
.hf-submit {
  display: block;
  width: 100%;
  background: var(--color-cta);
  color: var(--color-white);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s;
  margin-bottom: 12px;
}
.hf-submit:hover { background: var(--color-cta-hover); }

.hf-footer {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-light);
  margin: 0;
}

/* Feature icon wrap (reemplaza SVG inline en index) */
.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--color-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* SVG icons coloreados con el primary green */
.svg-icon {
  filter: brightness(0) saturate(100%) invert(31%) sepia(72%) saturate(400%) hue-rotate(136deg) brightness(90%) contrast(95%);
}

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

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-light-gray);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--color-text);
  transition: border-color 0.2s;
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.phone-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-off-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 6px;
  padding: 12px 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text);
}

.phone-prefix .flag {
  font-size: 18px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--color-text-medium);
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-check a {
  color: var(--color-primary);
  text-decoration: underline;
}

.hero-form-card .btn {
  width: 100%;
  font-size: 17px;
  padding: 16px;
}

/* ---- SECCIÓN POR QUÉ CASER ---- */
.why-section {
  padding: var(--section-padding);
  background: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid #e8e8e8;
  border-radius: var(--border-radius);
  padding: 28px 22px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.feature-card h3 {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-medium);
  font-size: 14px;
  line-height: 1.65;
}

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

/* ---- SECCIÓN CTA (PRECIO) ---- */
.cta-section {
  background: var(--color-primary);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ---- SECCIÓN SEGUROS A MEDIDA ---- */
.products-section {
  padding: var(--section-padding);
  background: var(--color-off-white);
}

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

.product-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.product-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--color-light-gray);
}

/* Image placeholders */
.product-card-img.embarazadas { background: linear-gradient(135deg, #a8d8c8 0%, #7ec8b0 100%); }
.product-card-img.familias { background: linear-gradient(135deg, #8ec8a8 0%, #5fb890 100%); }
.product-card-img.mayores { background: linear-gradient(135deg, #7abfb0 0%, #4fa898 100%); }
.product-card-img.autonomos { background: linear-gradient(135deg, #6ab8a8 0%, #3a9888 100%); }

.product-card-header {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.product-card-body {
  padding: 20px 18px;
}

.product-card-body ul {
  margin-bottom: 18px;
}

.product-card-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--color-text-medium);
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
}

.product-card-body ul li::before {
  content: '›';
  color: var(--color-cta);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  flex-shrink: 0;
}

.product-card a.btn {
  width: 100%;
  font-size: 14px;
  padding: 12px 20px;
}

/* ---- TESTIMONIOS ---- */
.testimonials-section {
  background: var(--color-primary);
  padding: 60px 0;
}

.testimonials-section .section-title {
  color: var(--color-white);
}
.testimonials-section .section-subtitle {
  color: rgba(255,255,255,0.85);
}

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

.testimonial-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--border-radius);
  padding: 28px 24px;
}

.testimonial-card p {
  color: var(--color-white);
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-author strong {
  display: block;
  color: var(--color-white);
  font-size: 15px;
}

.testimonial-author span {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

/* ---- SECCIÓN PLANES / PRICING ---- */
.plans-section {
  padding: var(--section-padding);
  background: var(--color-white);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.plan-card {
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.plan-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0,115,99,0.2);
}

.plan-header {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 20px 16px 16px;
  position: relative;
}

.plan-header .plan-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--color-cta);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 var(--border-radius-lg) 0 var(--border-radius);
}

.plan-header h3 {
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.plan-header .plan-type {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.plan-header .plan-copago {
  font-size: 12px;
  opacity: 0.8;
}

.plan-price {
  padding: 22px 16px 16px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.plan-price .from {
  font-size: 13px;
  color: var(--color-text-medium);
}

.plan-price .amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1;
}

.plan-price .amount sup {
  font-size: 1.5rem;
  vertical-align: super;
}

.plan-price .period {
  font-size: 13px;
  color: var(--color-text-medium);
  margin-top: 4px;
}

.plan-features {
  padding: 16px 20px;
}

.plan-features ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  color: var(--color-text);
}

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

.plan-features .icon-check {
  color: var(--color-check);
  font-size: 18px;
  flex-shrink: 0;
}

.plan-features .icon-cross {
  color: var(--color-cross);
  font-size: 18px;
  flex-shrink: 0;
}

.plan-flag-cta {
  width: 18px;
  height: 18px;
  background: var(--color-cta);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-flag-primary {
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 3px;
  flex-shrink: 0;
}

.plan-footer {
  padding: 16px 20px 24px;
  text-align: center;
  background: var(--color-off-white);
}

.plan-footer .btn {
  width: 100%;
  margin-bottom: 10px;
}

.plan-footer .descuento-note {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
}

/* ---- FAQ ---- */
.faq-section {
  padding: var(--section-padding);
  background: var(--color-off-white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

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

.faq-item.open {
  border-color: var(--color-primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
  user-select: none;
}

.faq-question .faq-icon {
  color: var(--color-primary);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.25s;
}

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

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--color-text-medium);
  line-height: 1.7;
  border-top: 1px solid #f0f0f0;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-light-gray);
  padding: 50px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
}

.footer-brand .logo-wrap {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--color-text-medium);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 340px;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.footer-phone svg {
  color: var(--color-primary);
}

.footer-nav h4 {
  color: var(--color-cta);
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-nav ul li {
  margin-bottom: 8px;
}

.footer-nav ul li a {
  color: var(--color-text-medium);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-nav ul li a::before {
  content: '›';
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
}

.footer-nav ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-light-gray);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-text-medium);
}

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

.footer-legal a {
  font-size: 13px;
  color: var(--color-text-medium);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* ---- PÁGINAS INTERIORES ---- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 24px;
}

.page-hero .badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

.badge.badge-cta {
  background: var(--color-cta);
  border-color: var(--color-cta);
}

/* Cobertura detail section */
.coberturas-section {
  padding: var(--section-padding);
  background: var(--color-white);
}

.coberturas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.cobertura-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid #e8e8e8;
  border-radius: var(--border-radius);
  background: var(--color-off-white);
  transition: border-color 0.2s;
}

.cobertura-card:hover {
  border-color: var(--color-primary);
}

.cobertura-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 20px;
}

.cobertura-card h4 {
  color: var(--color-primary);
  font-size: 14.5px;
  margin-bottom: 6px;
}

.cobertura-card p {
  font-size: 13px;
  color: var(--color-text-medium);
  line-height: 1.55;
}

/* Ventajas section */
.ventajas-section {
  padding: var(--section-padding);
  background: var(--color-off-white);
}

.ventajas-list {
  max-width: 800px;
  margin: 0 auto;
}

.ventaja-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.ventaja-num {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: white;
  font-size: 15px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ventaja-item h4 {
  color: var(--color-text);
  margin-bottom: 4px;
  font-size: 15px;
}

.ventaja-item p {
  color: var(--color-text-medium);
  font-size: 14px;
}

/* CTA bottom section */
.cta-bottom {
  background: var(--color-primary-dark);
  padding: 60px 0;
  text-align: center;
}

.cta-bottom h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-bottom p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 28px;
}

.cta-bottom .btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- PÁGINA CALCULAR ---- */
.calcular-section {
  padding: var(--section-padding);
  background: var(--color-off-white);
}

.calcular-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}

.calcular-card-header {
  background: var(--color-primary);
  padding: 28px 36px;
  color: var(--color-white);
}

.calcular-card-header h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.calcular-card-header p {
  font-size: 14px;
  opacity: 0.85;
}

.calcular-card-body {
  padding: 36px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-light-gray);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s;
}

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

.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--color-light-gray);
  padding-bottom: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(50% + 15px);
  right: calc(-50% + 15px);
  height: 2px;
  background: var(--color-light-gray);
}

.step.active:not(:last-child)::after,
.step.done:not(:last-child)::after {
  background: var(--color-primary);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-medium);
  background: white;
  position: relative;
  z-index: 1;
}

.step.active .step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.step.done .step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.step-label {
  font-size: 12px;
  color: var(--color-text-medium);
  text-align: center;
}

.step.active .step-label {
  color: var(--color-primary);
  font-weight: 700;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .coberturas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title { font-size: 1.6rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-badge { font-size: 1.1rem; }
  .hero-form-card { display: none; }

  /* ---- HEADER MOBILE: teléfonos en fila ---- */
  .site-header { padding: 10px 0; }
  .site-logo img { height: 40px; }
  .header-inner { flex-wrap: nowrap; gap: 8px; align-items: center; }
  .header-phones { flex-direction: row; gap: 8px; align-items: center; }
  .phone-cta { padding: 7px 10px; gap: 6px; border-radius: 6px; }
  .phone-cta svg { width: 16px; height: 16px; display: none; }
  .phone-cta .label { font-size: 9.5px; }
  .phone-cta .number { font-size: 13.5px; }
  .phone-secondary { text-align: right; }
  .phone-secondary .label { font-size: 9.5px; }
  .phone-secondary .number { font-size: 13.5px; }

  .main-nav { position: relative; }
  .main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .nav-inner {
    display: none;
    flex-direction: column;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--color-primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  }
  .nav-inner.open {
    display: flex;
  }
  .nav-inner a,
  .nav-inner button.nav-cta {
    padding: 15px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    border-radius: 0 !important;
  }
  .nav-toggle { display: block; }

  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .coberturas-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .calcular-card-body { padding: 24px 20px; }
  .page-hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .top-bar { font-size: 11px; }
  .phone-cta { padding: 6px 8px; }
  .phone-cta .label { font-size: 8.5px; }
  .phone-cta .number { font-size: 12.5px; }
  .phone-secondary .label { font-size: 8.5px; }
  .phone-secondary .number { font-size: 12.5px; }
  .hero-badge { font-size: 1rem; }
  .hero-text h1 { font-size: 1.6rem; }
}

/* ============================================================
   TARJETAS DE PLANES - Diseño imagen de referencia
   ============================================================ */

/* Sección de planes rediseñada */
.planes-section {
  padding: 70px 0 80px;
  background: var(--color-off-white);
}

.planes-section .section-title {
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
}

.planes-section .section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-medium);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

/* Grids de planes */
.planes-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}
.planes-grid-1 { grid-template-columns: minmax(0,400px); justify-content: center; }
.planes-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.planes-grid-3 { grid-template-columns: repeat(3, 1fr); }
.planes-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Forzar mismo alto en todas las tarjetas del grid */
.planes-grid .pc { height: 100%; }

/* =============================================
   TARJETAS DE PLANES — nuevo diseño (Adeslas-style)
   ============================================= */

/* Base */
.pc {
  background: var(--color-white);
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pc:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.16);
  transform: translateY(-5px);
}
.pc.pc-featured {
  box-shadow: 0 6px 28px rgba(0,115,99,0.20);
  border: 2px solid var(--color-primary);
}

/* Badge 30% */
.pc-badge {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 72px 72px 0;
  border-color: transparent var(--color-cta) transparent transparent;
  border-radius: 0 14px 0 0;
  z-index: 2;
}
.pc-badge span {
  position: absolute;
  top: 9px; right: -64px;
  color: #fff; font-size: 12px; font-weight: 900;
  transform: rotate(45deg); white-space: nowrap;
}

/* Parte superior */
.pc-top {
  padding: 30px 22px 20px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

/* Icono */
.pc-icon-box {
  width: 56px; height: 56px;
  background: var(--color-primary-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.pc-icon-box svg { width: 28px; height: 28px; }

/* Nombre */
.pc-name {
  font-size: 1.25rem; font-weight: 900;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--color-text); margin-bottom: 14px;
}

/* Precio */
.pc-price {
  display: flex; align-items: baseline;
  justify-content: center; gap: 2px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.pc-price-from {
  font-size: 14px; color: var(--color-text-medium);
  font-weight: 400; margin-right: 3px;
}
.pc-price-num {
  font-size: 3.6rem; font-weight: 900;
  color: var(--color-text); line-height: 1;
}
.pc-price-currency {
  font-size: 1.6rem; font-weight: 700;
  color: var(--color-text);
  align-self: flex-start; padding-top: 4px;
}
.pc-price-period {
  font-size: 14px; font-weight: 700;
  color: var(--color-text-medium);
  align-self: flex-end; padding-bottom: 4px;
}
.pc-price-consult {
  font-size: 1.4rem; font-weight: 900;
  color: var(--color-primary);
  display: block; text-align: center; margin-bottom: 4px;
}
.pc-price-sub {
  font-size: 13px; color: var(--color-text-medium);
  display: block; text-align: center;
}

/* Tags */
.pc-tags {
  display: flex; flex-wrap: wrap;
  gap: 6px; justify-content: center; margin-top: 2px;
}
.pc-tag {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px; font-size: 12px;
  font-weight: 700; padding: 4px 12px;
  display: inline-block;
}

/* Features */
.pc-features {
  padding: 16px 20px;
  flex: 1; list-style: none;
}
.pc-features li {
  display: flex; align-items: center;
  gap: 9px; padding: 7px 0;
  border-bottom: 1px solid #f2f2f2;
  font-size: 13.5px; color: var(--color-text); line-height: 1.4;
}
.pc-features li:last-child { border-bottom: none; }
.pc-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Footer */
.pc-footer { padding: 16px 20px 22px; text-align: center; }
.pc-btn {
  display: block; width: 100%;
  background: var(--color-cta); color: var(--color-white);
  padding: 14px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-align: center;
  margin-bottom: 10px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer; border: none;
  font-family: var(--font-main);
}
.pc-btn:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px); color: var(--color-white);
}
.pc-discount-note {
  font-size: 12px; color: var(--color-primary);
  font-weight: 700; line-height: 1.4;
}

/* Responsive */
@media (max-width: 1100px) {
  .planes-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .planes-grid-2,
  .planes-grid-3,
  .planes-grid-4 { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .planes-grid-1 { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
@media (max-width: 480px) { .pc-price-num { font-size: 3rem; } }

/* =============================================
   MODAL DE LLAMADA
   ============================================= */
.call-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000; align-items: center;
  justify-content: center; padding: 20px;
}
.call-modal-overlay.active { display: flex; }
.call-modal {
  background: var(--color-white);
  border-radius: 18px; padding: 36px 32px 28px;
  max-width: 400px; width: 100%;
  position: relative; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.28s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.call-modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; font-size: 22px;
  color: var(--color-text-medium); cursor: pointer;
  line-height: 1; padding: 4px;
}
.call-modal-close:hover { color: var(--color-text); }
.call-modal-icon {
  width: 64px; height: 64px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.call-modal-icon svg { width: 30px; height: 30px; }
.call-modal h3 {
  font-size: 1.4rem; font-weight: 900;
  color: var(--color-text); margin-bottom: 6px;
}
.call-modal-sub {
  font-size: 14px; color: var(--color-text-medium); margin-bottom: 8px;
}
.call-modal-plan-name {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 20px; font-size: 13px;
  font-weight: 700; padding: 4px 14px; margin-bottom: 20px;
}
.call-modal-phone {
  display: flex; align-items: center;
  border: 1.5px solid #ddd; border-radius: 8px;
  overflow: hidden; margin-bottom: 14px;
}
.call-modal-phone .phone-prefix {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; background: #f7f7f7;
  border-right: 1.5px solid #ddd; height: 48px;
  font-size: 14px; font-weight: 700;
  color: var(--color-text); white-space: nowrap;
}
.call-modal-phone input {
  flex: 1; border: none; outline: none;
  padding: 12px 14px; font-size: 15px;
  font-family: var(--font-main); background: transparent;
}
.call-modal-check {
  display: flex; align-items: flex-start;
  gap: 8px; text-align: left; margin-bottom: 18px;
}
.call-modal-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--color-primary); }
.call-modal-check label { font-size: 12px; color: var(--color-text-medium); line-height: 1.5; }
.call-modal-check a { color: var(--color-primary); text-decoration: underline; }
.call-modal-submit {
  display: block; width: 100%;
  background: var(--color-cta); color: var(--color-white);
  padding: 14px 20px; border-radius: 8px;
  font-size: 16px; font-weight: 700;
  border: none; cursor: pointer;
  font-family: var(--font-main);
  transition: background 0.2s; margin-bottom: 12px;
}
.call-modal-submit:hover { background: var(--color-cta-hover); }
.call-modal-footer-note { font-size: 12px; color: var(--color-text-light); }


/* ── BARRA FLOTANTE MOBILE ─────────────────────────────────────────────────── */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--color-white);
    border-top: 1px solid #dde8e6;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.13);
  }

  /* Espacio para que el footer no tape contenido */
  body { padding-bottom: 76px; }

  .mcta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: opacity 0.18s;
    border: none;
  }
  .mcta-btn:hover { opacity: 0.88; }
  .mcta-btn svg { flex-shrink: 0; }

  /* Botón izquierdo: borde verde, texto verde */
  .mcta-modal {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
  }

  /* Botón derecho: fondo naranja CTA, texto blanco */
  .mcta-tel {
    background: var(--color-cta);
    color: var(--color-white);
    border: 2px solid var(--color-cta);
  }
}

/* ============================================================
   MODAL AVISO LEGAL / POLÍTICA DE PRIVACIDAD
   ============================================================ */
.legal-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9100; align-items: flex-start;
  justify-content: center;
  padding: 30px 16px;
  overflow-y: auto;
}
.legal-modal-overlay.active { display: flex; }

.legal-modal {
  background: var(--color-white);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  padding: 44px 40px 36px;
  position: relative;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.legal-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  font-size: 26px; line-height: 1;
  color: var(--color-text-medium); cursor: pointer;
  transition: color 0.15s;
}
.legal-modal-close:hover { color: var(--color-text); }

.legal-modal h2 {
  font-size: 1.35rem; font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-right: 30px;
  line-height: 1.3;
}

.legal-modal h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--color-text);
  margin: 22px 0 6px;
}

.legal-modal p, .legal-modal li {
  font-size: 13.5px;
  color: var(--color-text-medium);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-modal ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.legal-modal .legal-block {
  background: var(--color-off-white);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.legal-modal .legal-block p {
  margin-bottom: 4px;
}

.legal-modal-divider {
  border: none; border-top: 1px solid #e8eeec;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .legal-modal { padding: 36px 20px 28px; }
  .legal-modal h2 { font-size: 1.15rem; }
}
