/* ================= VARIABLES ================= */
:root {
  --sanitas-blue: #0079c2;
  --sanitas-blue-dark: #005a92;
  --sanitas-gray: #f7f9fa;
  --text-dark: #1f2933;
  --radius: 16px;
}

/* ================= GLOBAL ================= */
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sanitas-blue);
}

/* ================= HERO ================= */
.hero {
  background: var(--sanitas-gray);
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-top: 1rem;
  color: #555;
}

/* ================= BUTTONS ================= */
.btn-sanitas {
  background: var(--sanitas-blue);
  color: #fff;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  border: none;
}

.btn-sanitas:hover {
  background: var(--sanitas-blue-dark);
  color: #fff;
}

.btn-outline-sanitas {
  border: 2px solid var(--sanitas-blue);
  color: var(--sanitas-blue);
  border-radius: 50px;
}

.btn-outline-sanitas:hover {
  background: var(--sanitas-blue);
  color: #fff;
}

/* ================= VIDEO ================= */
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

.video-card video {
  width: 100%;
  display: block;
}

/* ================= TRUST ================= */
.trust i {
  font-size: 2rem;
  color: var(--sanitas-blue);
}

.trust p {
  margin-top: .5rem;
  font-weight: 500;
}

/* ================= FEATURES ================= */
.features {
  background: #fff;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform .2s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  font-size: 2rem;
  color: var(--sanitas-blue);
}

.feature-card h5 {
  margin-top: 1rem;
  font-weight: 600;
}

/* ================= CHAT ================= */
.chat-section {
  background: var(--sanitas-gray);
}

.chat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
  overflow: hidden;
}

.chat-header {
  background: var(--sanitas-blue);
  color: #fff;
  padding: 1rem;
  font-weight: 600;
}

.chat-body {
  padding: 1.5rem;
  min-height: 150px;
}

.chat-bubble {
  padding: .75rem 1rem;
  border-radius: 12px;
  max-width: 80%;
}

.chat-bubble.bot {
  background: var(--sanitas-gray);
}

.chat-input {
  display: flex;
  gap: .5rem;
  padding: 1rem;
  border-top: 1px solid #eee;
}

/* ================= FOOTER ================= */
.footer {
  background: #fff;
  border-top: 1px solid #eee;
}
/* ================= CHAT LATERAL ================= */

.chat-panel {
  position: fixed;
  right: -420px;
  bottom: 20px;
  width: 400px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  transition: right .3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.chat-panel.open {
  right: 20px;
}

.chat-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0079c2;
  color: #ffffff;
  border-radius: 50px;
  padding: 14px 20px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  z-index: 9998;
}

.chat-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  float: right;
  cursor: pointer;
}

/* Ajuste contenedor interno */
.chat-panel .chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
:root{
  --azul:#003057;
  --azul-claro:#00b2d4;
  --fondo:#e8f6f9;
  --chat-bg:#ffffff;
  
}

/* ===== BASE ===== */
body{
  background:#f0f9fb;
  font-family:'Segoe UI',sans-serif;
  color:var(--azul);
}

.main-section{
  background:var(--fondo);
  padding:40px 20px;
}

/* ===== TÍTULO ===== */
.product-title{
  color:#999393;
  font-weight:700;
  margin-bottom:6px;
}
.product-description{
  font-size:1rem;
  color:#333;
  margin-bottom:18px;
  line-height:1.5;
}

/* ===== VIDEO ===== */
.video-box video{
  width:100%;
  border-radius:12px;
  border:1px solid #06992d;
}

/* ===== ENLACES TEMÁTICOS ===== */
.topic-links{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.topic-link{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:1.3rem;
  font-weight:600;
  color:var(--azul-claro);
  cursor:pointer;
  transition:all .2s ease;
}
.topic-link:hover{
  transform:translateX(4px);
  text-decoration:underline;
}
.check-icon{
  width:24px;
  height:24px;
  border-radius:50%;
  background:#e6f9f0;
  color:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.95rem;
  font-weight:bold;
}

/* ===== CHAT ===== */
.chat-container{
  display:flex;
  flex-direction:column;
  height:900px;
  background:var(--chat-bg);
  border-radius:14px;
  box-shadow:0 0 15px rgba(0,0,0,.1);
}
.chat-header{
  padding:12px 16px;
  font-weight:600;
  border-bottom:1px solid #e0e0e0;
}
.chat-box{
  flex:1;
  padding:16px;
  overflow-y:auto;
}

/* ===== MENSAJES ===== */
.msg{
  max-width:92%;
  padding:10px 14px;
  border-radius:16px;
  line-height:1.4;
  margin-bottom:10px;
  font-size:0.95rem;
  word-wrap:break-word;
}
.msg.user{
  max-width:75%;
  margin-left:auto;
  background:#dbeeff;
  color:#003057;
  text-align:right;
  border-bottom-right-radius:4px;
}
.msg.gpt{
  margin-right:auto;
  background:#f4f6f8;
  border:1px solid #e0e0e0;
  color:#003057;
  border-bottom-left-radius:4px;
}

/* ===== FORM CHAT ===== */
.chat-form{
  display:flex;
  padding:12px;
  border-top:1px solid #e0e0e0;
}
.chat-form input{
  flex:1;
  border-radius:25px;
  border:1px solid #ccc;
  padding:8px 14px;
}
.send-btn{
  margin-left:6px;
  border-radius:25px;
  padding:0 16px;
  background:var(--azul);
  color:white;
  border:none;
}

/* ===== CTA WHATSAPP ===== */
.whatsapp-cta{
  display:none;
  padding:14px 12px 16px;
  border-top:1px solid #e0e0e0;
  background:#f9f9f9;
}
.whatsapp-cta.active{
  display:block;
}
.btn-whatsapp{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  padding:16px 18px;
  font-size:1.05rem;
  font-weight:800;
  color:#fff;
  background:#25D366;
  border-radius:30px;
  text-decoration:none;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  transition:all .25s ease;
}
.btn-whatsapp:hover{
  background:#1ebe5d;
  transform:translateY(-2px);
}
.btn-subtext{
  font-size:.85rem;
  font-weight:500;
  opacity:.9;
}
/* ===== BENEFICIOS EN BLANCO ===== */
.benefits,
.benefits h4,
.benefits h5,
.benefits p,
.benefits a {
  color: #ffffff !important;
}

.benefits a {
  text-decoration: underline;
}
/* =====================================================
   ESTILOS GENERALES SEGURMEDI · SANITAS
   ===================================================== */

:root {
  --sanitas-azul: #003057;
  --sanitas-azul-claro: #00b2d4;
  --sanitas-verde: #25D366;
  --fondo-claro: #f0f9fb;
  --fondo-seccion: #e8f6f9;
}

/* -------------------------
   BASE
------------------------- */
body {
  background-color: var(--fondo-claro);
  font-family: 'Segoe UI', sans-serif;
  color: var(--sanitas-azul);
}

/* -------------------------
   SECCIONES
------------------------- */
.main-section {
  background: var(--fondo-seccion);
  padding: 40px 20px;
}

/* -------------------------
   TEXTOS
------------------------- */
.highlight {
  color: var(--sanitas-azul-claro);
}

/* -------------------------
   FORMULARIOS
------------------------- */
.form-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* -------------------------
   VIDEO
------------------------- */
.video-box video {
  width: 100%;
  border-radius: 12px;
  border: 4px solid #06992d;
}

/* -------------------------
   BOTONES
------------------------- */
.btn-success {
  background-color: var(--sanitas-verde);
  border-color: var(--sanitas-verde);
}

.btn-success:hover {
  background-color: #1ebe5d;
  border-color: #1ebe5d;
}

/* -------------------------
   FOOTER
------------------------- */
.bg-sanitas {
  background-color: #0b1f4b;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* -------------------------
   SHARE / VIDEO LANDING
------------------------- */
.video-wrapper {
  position: relative;
}

.brand-line {
  height: 6px;
  background: var(--sanitas-verde);
  border-radius: 4px;
  margin-top: 6px;
}

.share-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}

.share-btn:hover {
  background: #f1f1f1;
}

/* Ajuste móvil para que no tape el logo */
@media (max-width: 576px) {
  .share-btn {
    top: auto;
    bottom: -16px;
    right: 12px;
  }

  .video-wrapper {
    padding-bottom: 60px;
  }
}
main ul li a {
  color: #003057;
  text-decoration: none;
  font-weight: 500;
}

main ul li a:hover {
  text-decoration: underline;
  color: #00b2d4;
}
/* FAQ – ajuste fino */

.faq-section {
  padding: 16px 20px 24px;
}

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

@media (min-width: 992px) {
  .faq-container {
    background: #ffffff;
    padding: 20px 40px 30px;
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(0,0,0,.05);
  }
}

.faq-container h2,
.faq-container h3 {
  color: #003057;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
}
.product-seo-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin: 18px 0 8px;
}
/* ===============================
   CHAT ASISTENTE – ALTURA
================================ */

.chat-container {
  display: flex;
  flex-direction: column;
  height: 75vh;          /* ⬅️ más alto (antes ~600px) */
  max-height: 900px;     /* límite elegante en pantallas grandes */
}

.chat-box {
  flex: 1;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .chat-container {
    height: 65vh;
  }
}
/* ================= TARJETAS INFO ================= */

.topic-card{
  background:#ffffff;
  border-radius:16px;
  padding:24px;
  cursor:pointer;
  transition:all .25s ease;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  height:100%;
}

.topic-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 45px rgba(0,0,0,.1);
}

.topic-icon{
  font-size:28px;
  color:#0079c2; /* azul Sanitas */
  margin-bottom:14px;
}

.topic-title{
  font-weight:700;
  color:#003057;
  margin-bottom:6px;
}

.topic-text{
  font-size:.95rem;
  color:#555;
  line-height:1.5;
  margin:0;
}
/* ================= HERO SANITAS ================= */

.main-section {
  background:#ffffff;
}

/* Título principal */
.hero-title {
  font-size:2.9rem;
  line-height:1.15;
  font-weight:700;
  color:#1f2a33;
  margin-bottom:18px;
}

/* Descripción hero */
.hero-description {
  font-size:1.15rem;
  line-height:1.6;
  color:#5b6770;
  max-width:520px;
  margin-bottom:28px;
}

/* Acciones */
.hero-actions {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* Botón primario */
.btn-hero-primary {
  background:#0d6efd;
  color:#ffffff;
  padding:12px 22px;
  border-radius:999px;
  font-weight:600;
  text-decoration:none;
  transition:all .2s ease;
}

.btn-hero-primary:hover {
  background:#0b5ed7;
  transform:translateY(-1px);
}

/* Botón secundario */
.btn-hero-secondary {
  background:#ffffff;
  color:#0d6efd;
  border:2px solid #0d6efd;
  padding:12px 22px;
  border-radius:999px;
  font-weight:600;
  cursor:pointer;
  transition:all .2s ease;
}

.btn-hero-secondary:hover {
  background:#f0f7ff;
}

/* Vídeo */
.hero-video {
  background:#f3f5f7;
  padding:16px;
  border-radius:20px;
}

.hero-video video {
  width:100%;
  border-radius:14px;
}
.chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;          /* ← altura total de pantalla */
  background: #fff;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}
.chat-header {
  flex: 0 0 auto;         /* altura fija */
}

.chat-container {
  flex: 1 1 auto;         /* ocupa todo el resto */
  display: flex;
  flex-direction: column;
  overflow: hidden;       /* evita desbordes raros */
}

.chat-box {
  flex: 1 1 auto;         /* zona scrollable */
  overflow-y: auto;
  padding: 16px;
}

.chat-form {
  flex: 0 0 auto;         /* SIEMPRE visible */
  padding: 12px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}
.chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  z-index: 9999;

  /* 👇 oculto por defecto */
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.chat-panel.open {
  transform: translateX(0);
}
.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.75rem;
  color: var(--text-dark);
}
/* ================= FOOTER ================= */
.footer-bar{
  background:#003057; /* o el azul exacto que quieras */
  width:100%;
}

.footer-link{
  color:#ffffff;
  text-decoration:none;
}

.footer-link:hover{
  text-decoration:underline;
}
footer {
  background: #003057;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.footer-sanitas > .container {
  margin-left: auto;
  margin-right: auto;
}
body {
  overflow-x: hidden;
}
@media (max-width: 768px) {
  .footer-sanitas .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}
/* =============================
   TARJETA DESTACADA · PRECIO
   ============================= */

.topic-card-price {
  border: 2px solid #00b2d4;
  background: linear-gradient(135deg, #e6f7fb, #ffffff);
  transform: scale(1.02);
}

.topic-card-price .topic-title {
  color: #0072ce;
  font-weight: 700;
}

.topic-card-price .topic-icon {
  background: #00b2d4;
  color: #fff;
}

.topic-card-price:hover {
  box-shadow: 0 12px 30px rgba(0, 178, 212, 0.35);
  transform: scale(1.04);
}
