/* =========================
   RESETEO & BASE
========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root{
  --bg: #ffffff;
  --text: #333333;
  --muted: #f5f7f8;
  --border: #e6eaef;
  --primary: #3aafa9;        /* acento / botones */
  --primary-dark: #2b7a78;   /* hover/accesorio */
  --accent: #f6d365;         /* botón amarillo */
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius: 16px;

  --maxw: 1100px;
  --navh: 76px;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-top: var(--navh); /* espacio por navbar fija */
}

img{ display:block; max-width:100%; height:auto; }
a{ color: var(--primary-dark); text-decoration: none; }
a:hover{ text-decoration: underline; }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* =========================
   NAVBAR
========================= */
.navbar{
  position: fixed; inset: 0 0 auto 0; height: var(--navh);
  background: #fff; border-bottom: 1px solid var(--border); z-index: 1000;
}
.navbar .logo{ display:flex; align-items:center; gap:10px; height: var(--navh); padding-left: 12px; }
.navbar .logo img{ height: 80px; width: auto; }

.navbar nav{
  position: absolute; right: 12px; top: 0; height: var(--navh); display:flex; align-items:center;
}
.menu{ list-style: none; display: flex; gap: 14px; }
.menu a{
  display:inline-block; padding: 8px 12px; border-radius: 12px;
  font-weight: 600; color:#155e63; text-decoration:none; border:1px solid transparent;
}
.menu a:hover{ background: #eef6f6; border-color: #d8eeee; text-decoration:none; }

/* =========================
   BOTONES / UTILIDADES
========================= */
.btn{
  display:inline-block; padding: 12px 16px; border-radius: 12px; font-weight: 700;
  background: var(--primary); color:#fff; border:1px solid var(--primary); text-align:center;
}
.btn:hover{ background: var(--primary-dark); border-color: var(--primary-dark); text-decoration:none; color:#fff; }

.btn-outline{
  display:inline-block; padding: 12px 16px; border-radius: 12px; font-weight: 700;
  background:#fff; color: var(--primary-dark); border:1px solid var(--primary-dark);
}
.btn-outline:hover{ background:#f0fafa; }

.btn-yellow{
  display:inline-block; padding:12px 16px; border-radius: 12px; font-weight:700;
  background: var(--accent); color:#7a4a00; border:1px solid #f2c24b;
}
.btn-yellow:hover{ filter: brightness(0.95); text-decoration:none; }

/* =========================
   HERO
========================= */
.hero{
  position: relative; min-height: 62vh; display:grid; place-items:center;
  background: url('https://images.unsplash.com/photo-1517841905240-472988babdf9?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
}
.hero .overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45)); }
.hero-content{
  position: relative; z-index: 1; text-align: center; color:#fff; padding: 40px 20px;
}
.hero h1{ font-size: clamp(28px, 5vw, 48px); line-height:1.15; margin-bottom: 12px; font-weight: 800; }
.hero p{ max-width: 720px; margin: 0 auto 18px; font-size: clamp(15px, 2.5vw, 18px); }
.hero .buttons{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* =========================
   SECCIONES GENERALES
========================= */
section{ padding: 48px 0; }
section h2{
  text-align:center; font-size: clamp(22px, 3.6vw, 34px); margin-bottom: 20px; color: var(--primary-dark);
}
.intro{ text-align:center; color:#4b5563; max-width: 800px; margin: 0 auto 18px; }

/* =========================
   QUIÉNES SOMOS
========================= */
.quienes-section{ background: #fff; }
.quienes-grid{
  display:grid; gap: 22px; align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}
.quienes-texto p{ margin-bottom: 10px; }
.quienes-texto .btn-yellow{ margin-top: 6px; }
.quienes-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
@media (max-width: 900px){
  .quienes-grid{ grid-template-columns: 1fr; }
}

/* =========================
   PLANES
========================= */
.planes-section{ background: var(--muted); }
.planes-container{
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display:grid; gap:18px; grid-template-columns: repeat(4, 1fr);
}
.plan-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display:flex; flex-direction:column; gap:8px;
}
.plan-card h3{ font-size: 18px; color:#155e63; }
.plan-card .price{
  font-size: 26px; font-weight: 800; color:#111827;
}
.plan-card .price span{ font-size: 14px; font-weight: 600; color:#6b7280; }
.plan-card .afiliacion{ font-weight:700; color:#374151; }
.plan-card ul{ list-style: none; display:grid; gap: 6px; margin: 6px 0 4px 0; }
.plan-card li{ padding-left: 20px; position: relative; }
.plan-card li::before{
  content: "•"; position: absolute; left: 0; top: 0; color: var(--primary-dark); font-weight: 900;
}
.plan-card .ver-descuentos{
  margin-top: 4px; font-weight: 700; color: var(--primary-dark); text-decoration: underline;
}
.plan-card .footnote{ font-size: 12px; color:#6b7280; }

.plan-card.destacado{
  border:2px solid var(--primary);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

@media (max-width: 1100px){
  .planes-container{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .planes-container{ grid-template-columns: 1fr; }
}

/* =========================
   SERVICIOS (tabla + filtros)
========================= */
.servicios-toolbar{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin: 0 0 10px 0;
}
.servicios-toolbar input[type="search"],
.servicios-toolbar select{
  padding:10px 12px; border:1px solid var(--border);
  border-radius: 12px; outline:none; background:#fff; min-width:220px;
}
.tabla-wrap{
  background:#fff; border:1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow:hidden;
}
.table{ width:100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td{ padding: 12px; border-bottom:1px solid var(--border); text-align: left; }
.table thead th{ background:#f9fbfc; color:#0f3d3c; }
#tablaServicios td .tag-mini{
  display:inline-block; padding: 3px 10px; border-radius: 999px;
  background:#eef6f6; color:#155e63; font-size: 12px; font-weight: 800;
}
.btn-wsp{
  display:inline-block; padding: 8px 12px; border-radius: 12px; font-weight: 800;
  border:1px solid var(--primary-dark); color: var(--primary-dark); background:#fff;
}
.btn-wsp:hover{ background:#f2fbfb; }

/* =========================
   PAGO
========================= */
.pago-section{ background:#fff; }
.pago-title{ text-align:center; max-width:900px; margin: 0 auto 10px; }
.pago-form{
  max-width: 640px; margin: 0 auto; display:flex; gap:12px; flex-wrap:wrap; justify-content:center;
}
.pago-form select{
  padding:12px; border-radius: 12px; border:1px solid var(--border); min-width: 280px; outline:none;
}
.btn-pagar{
  padding:12px 16px; border-radius: 12px; border:1px solid var(--primary-dark);
  background: var(--primary); color:#fff; font-weight:800; cursor:pointer;
}
.btn-pagar[disabled]{ opacity: .5; cursor:not-allowed; }

/* =========================
   POR QUÉ ELEGIR
========================= */
.porque-section{ background: var(--muted); }
.porque-container{
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display:grid; gap:16px; grid-template-columns: repeat(3, 1fr);
}
.porque-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; text-align:center;
}
.porque-card .icon{ font-size: 32px; line-height:1; margin-bottom: 8px; }
@media (max-width: 900px){
  .porque-container{ grid-template-columns: 1fr; }
}

/* =========================
   TESTIMONIOS
========================= */
.testimonios-section{ background:#fff; }
.testimonios-container{
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display:grid; gap:18px; grid-template-columns: 1.2fr .8fr;
}
.video-testimonio iframe{
  border: none; border-radius: var(--radius); box-shadow: var(--shadow);
  border:1px solid var(--border);
}
.card-testimonio{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.card-testimonio .icono{ font-size: 28px; }
.card-testimonio blockquote{ margin: 10px 0; color:#374151; font-style: italic; }
.card-testimonio .autor{ color:#111827; }
.dots{ display:flex; gap:8px; justify-content:center; margin-top: 8px; }
.dot{
  width:8px; height:8px; border-radius: 999px; background:#d1d5db;
}
.dot.active{ background: var(--primary-dark); }
@media (max-width: 900px){
  .testimonios-container{ grid-template-columns: 1fr; }
}
/* Carrusel Testimonios */
.testimonios-slider{ overflow: hidden; position: relative; }
.testimonios-slides{ display: flex; width: 100%; transition: transform .6s ease; }
.testimonio-slide{ min-width: 100%; padding: 0 0.5rem; box-sizing: border-box; }

/* =========================
   CONTACTO
========================= */
.contacto-section{ background: var(--muted); }
.contacto-form{
  max-width: 720px; margin: 0 auto; background:#fff; border:1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  display:grid; gap: 12px; grid-template-columns: 1fr 1fr;
}
.contacto-form .campo{ display:flex; flex-direction:column; gap:6px; }
.contacto-form label{ font-weight:700; color:#0f3d3c; }
.contacto-form input, .contacto-form select, .contacto-form textarea{
  padding: 12px; border:1px solid var(--border); border-radius: 12px; outline:none; resize: vertical;
}
.contacto-form textarea{ grid-column: 1 / -1; }
.contacto-form .btn{ grid-column: 1 / -1; justify-self: start; }
@media (max-width: 720px){
  .contacto-form{ grid-template-columns: 1fr; }
}

/* =========================
   MODALES (base + afinado)
========================= */
.modal-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display:none; align-items: center; justify-content: center; z-index: 2000;
  backdrop-filter: blur(2px);
}
.modal-backdrop.active{ display:flex; }

.modal{
  background:#fff; border-radius: var(--radius);
  max-width:720px; width:92%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow:hidden; border:1px solid var(--border);
}
.modal header{
  padding:16px 18px; background:#f7fafb; display:flex; justify-content:space-between; align-items:center;
  border-bottom: 1px solid var(--border);
}
.modal header h3{ margin:0; color:#2b7a78; }
.modal .content{ padding:16px 18px; max-height:65vh; overflow:auto; }
.modal .close{ border:0; background:transparent; font-size:22px; cursor:pointer; line-height:1; }

.tag{
  display:inline-block; padding: 4px 10px; border-radius: 999px;
  background:#eef6f6; color:#155e63; font-weight: 700; font-size: 12px; margin: 8px 0;
}
.footnote{ font-size:12px; color:#6b7280; margin-top:8px; }

/* =========================
   BLOQUE DE VIDEOS (Block)
========================= */
#block .planes-container{ grid-template-columns: repeat(3, 1fr); }
#block .plan-card video{ width:100%; border-radius: 12px; border:1px solid var(--border); }
@media (max-width: 1100px){
  #block .planes-container{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  #block .planes-container{ grid-template-columns: 1fr; }
}

/* =========================
   ACCESIBILIDAD y DETALLES
========================= */
:focus-visible{ outline: 3px solid #8cd8d4; outline-offset: 2px; }
.table tbody tr:hover{ background:#fbfefe; }

/* =========================
   REDES SOCIALES
========================= */
.social-block{ margin: 22px auto 0; }
.social-block h3{ text-align:center; margin-bottom: 10px; color:#155e63; font-size: 20px; }
.social-grid{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.social-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:12px; font-weight:800;
  border:1px solid var(--border); background:#fff; color:#111827;
  box-shadow: var(--shadow); transition: transform .15s ease;
  text-decoration: none;
}
.social-btn:hover{ transform: translateY(-1px); text-decoration: none; }
.social-btn svg{ width:18px; height:18px; fill: currentColor; }
.social-btn.ig{ color:#d62976; border-color:#f7d3e4; }
.social-btn.ig:hover{ background:#fff6fb; }
.social-btn.fb{ color:#1877F2; border-color:#d5e4ff; }
.social-btn.fb:hover{ background:#f3f7ff; }
.social-btn.tk{ color:#111827; border-color:#e5e7eb; }
.social-btn.tk:hover{ background:#f9fafb; }

/* =========================
   FOOTER
========================= */
footer.footer{
  margin-top: 24px; padding: 16px; text-align:center;
  color:#6b7280; border-top:1px solid var(--border); background:#fff;
}
footer.footer .links{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:6px;
}
footer.footer .links a{ color:#155e63; text-decoration: underline; }


/* Bloquea interacción */
.pago-bloqueado {
  position: relative;
  pointer-events: none;
  opacity: 0.4;
}

/* Cartel "Próximamente" */
.pago-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: #444;
  z-index: 10;
  pointer-events: none;
}
/* =========================
   RESPONSIVE GLOBAL
========================= */
@media (max-width: 768px) {

  /* NAVBAR */
  .navbar .logo img {
    height: 60px;
  }
  .menu a {
    padding: 6px 10px;
    font-size: 14px;
  }

  /* HERO */
  .hero {
    min-height: 50vh;
  }
  .hero h1 {
    font-size: 24px;
  }

  /* QUIÉNES SOMOS */
  .quienes-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .quienes-texto {
    padding: 0 12px;
  }

  /* PLANES */
  .planes-container {
    grid-template-columns: 1fr !important;
  }
  .plan-card {
    padding: 14px;
  }

  /* SERVICIOS (TABLA) */
  .tabla-wrap {
    overflow-x: auto;
  }
  .table td, .table th {
    padding: 10px;
    font-size: 13px;
    white-space: nowrap;  /* evita que la tabla se rompa */
  }

  /* FORMULARIOS (PAGO & CONTACTO) */
  .pago-form select {
    min-width: 100% !important;
  }
  .contacto-form {
    grid-template-columns: 1fr !important;
    padding: 14px;
  }

  /* POR QUÉ ELEGIRNOS */
  .porque-container {
    grid-template-columns: 1fr !important;
  }

  /* TESTIMONIOS */
  .testimonios-container {
    grid-template-columns: 1fr !important;
    padding: 0 12px;
  }

  /* VIDEOS (BLOCK) */
  #block .planes-container {
    grid-template-columns: 1fr !important;
  }

  /* FOOTER */
  footer.footer {
    font-size: 14px;
    padding: 14px;
  }
}

/* Ajuste extremo para pantallas pequeñas (iPhone SE, Android compactos) */
@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 14px; }

  .menu a {
    font-size: 12px;
    padding: 4px 8px;
  }

  .plan-card .price {
    font-size: 22px;
  }
}

