:root{
    --azul:#2a78ff;
    --azul-osc:#0b2a55;
    --verde:#0f6b4f;
    --gris:#f6f8fb;
    --txt:#0b1220;
    --card:#ffffff;
  }

  body{
    font-family:'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:var(--txt);
    background: #fff;
  }

  /* NAV */
  .navbar{
    background: rgba(11,42,85,0.9);
    backdrop-filter: blur(10px);
  }
  .navbar-brand{
    font-weight:800;
    letter-spacing:.2px;
  }
  .nav-link{
    color:#fff !important;
    opacity:.9;
    font-weight:600;
  }
  .nav-link:hover{ opacity:1; }

  /* HERO */
  .hero{
    position: relative;
    min-height: 85vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 90px 16px 60px;
    overflow:hidden;
    color:#fff;
    background:
      radial-gradient(1200px 600px at 20% 10%, rgba(42,120,255,0.35), transparent 60%),
      radial-gradient(900px 500px at 90% 20%, rgba(15,107,79,0.25), transparent 55%),
      linear-gradient(135deg, rgba(11,42,85,1), rgba(8,18,38,1));
  }

  .hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:url('assets/images/hero_bg.jpg') center/cover no-repeat;
    opacity:.12; /* cambia si quieres más imagen */
    pointer-events:none;
    filter: contrast(110%) saturate(110%);
  }

  .hero .hero-card{
    position: relative;
    max-width: 980px;
    width:100%;
    padding: 36px;
    border-radius: 26px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
  }

  .hero h1{
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.06;
    margin-bottom: 12px;
  }

  .hero p{
    opacity: .92;
    font-size: 1.1rem;
    margin-bottom: 22px;
  }

  .badge-soft{
    display:inline-flex;
    gap:8px;
    align-items:center;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight:700;
    background: rgba(42,120,255,0.18);
    border: 1px solid rgba(42,120,255,0.25);
    margin-bottom: 16px;
  }

  .btn-cta{
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
  }
  .btn-outline-light{
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
  }

  /* HERO LINES */
  .hero-lines-container{
    position:absolute;
    inset:0;
    pointer-events:none;
    opacity: .85;
  }
  .hero-line{
    position:absolute;
    width: 140%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: rotate(-12deg);
    animation: slide 3.6s ease-in-out infinite;
    filter: blur(.2px);
  }
  @keyframes slide{
    0%{ left:-80%; opacity:0; }
    30%{ opacity:1; }
    100%{ left:80%; opacity:0; }
  }

  /* SECTIONS */
  .section{
    padding: 70px 0;
  }
  .section-title{
    font-weight: 800;
    letter-spacing: .2px;
  }
  .subtext{
    opacity:.75;
    max-width: 760px;
    margin: 0 auto;
  }

  /* STATS */
  .stats-wrap{
    margin-top: -45px;
    position: relative;
    z-index: 2;
  }
  .stats-card{
    border: 0;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  }
  .stat{
    padding: 18px 10px;
    border-radius: 18px;
    transition: transform .2s ease;
  }
  .stat:hover{ transform: translateY(-4px); }
  .stat .num{
    font-size: 2rem;
    font-weight: 800;
    color: var(--azul);
    line-height: 1;
  }
  .stat .lbl{
    font-weight: 700;
    opacity:.8;
  }

  /* CARDS (SERVICIOS) */
  .card-animada{
    border-radius: 22px;
    overflow:hidden;
    border: 0;
    transition: transform .25s ease, box-shadow .25s ease;
    opacity: 0;
    transform: translateY(18px);
  }
  .card-animada.visible{
    opacity:1;
    transform: translateY(0);
  }
  .card-animada:hover{
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  }
  .descripcion-oculta{
    max-height: 0;
    overflow: hidden;
    background: #fff;
    padding: 0 16px;
    transition: max-height .35s ease;
  }
  .servicio-card.expandida .descripcion-oculta{
    max-height: 220px;
    padding-bottom: 16px;
  }

  /* LESIONES (cards dinámicas) */
  .lesion-card{
    cursor:pointer;
    transition: all .28s ease;
    border-radius: 22px;
    overflow:hidden;
    border: 1px solid rgba(11,42,85,0.08);
    background: #fff;
  }
  .lesion-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  }
  .lesion-card .card-title{
    font-weight: 800;
    color: var(--azul-osc);
    margin-bottom: 6px;
  }
  .lesion-info{
    max-height: 0;
    overflow:hidden;
    transition: max-height .4s ease, opacity .3s ease;
    opacity:0;
  }
  .lesion-card.activa{
    border-color: rgba(42,120,255,0.28);
    box-shadow: 0 18px 55px rgba(42,120,255,0.12);
  }
  .lesion-card.activa .lesion-info{
    max-height: 320px;
    opacity:1;
    margin-top: 12px;
  }

  /* DONDE TE DUELE */
  .pain-wrap{
    border-radius: 26px;
    background: linear-gradient(180deg, #fff, var(--gris));
    border: 1px solid rgba(11,42,85,0.08);
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    padding: 28px;
  }
  .pain-btn{
    border-radius: 999px;
    font-weight: 800;
    padding: 10px 14px;
    border: 1px solid rgba(11,42,85,0.12);
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
  }
  .pain-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
    border-color: rgba(42,120,255,0.25);
  }

  /* ENFOQUE */
  .pill{
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    background: rgba(15,107,79,0.10);
    border: 1px solid rgba(15,107,79,0.18);
    color: var(--verde);
    display:inline-block;
  }
  .enfoque-card{
    border-radius: 22px;
    border: 1px solid rgba(11,42,85,0.08);
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
  }
  .enfoque-card h5{ font-weight: 800; }

  /* EVC */
  .evc{
    border-radius: 26px;
    overflow:hidden;
    background:
      radial-gradient(900px 500px at 20% 20%, rgba(42,120,255,0.20), transparent 60%),
      radial-gradient(800px 450px at 90% 30%, rgba(15,107,79,0.15), transparent 55%),
      linear-gradient(135deg, rgba(11,42,85,1), rgba(8,18,38,1));
    color:#fff;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    padding: 34px;
  }
  .evc h3{ font-weight: 800; }
  .evc p{ opacity:.92; }

  /* OPINIONES */
  .quote{
    border-radius: 22px;
    border: 1px solid rgba(11,42,85,0.08);
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
  }

  /* CTA FINAL */
  .cta-final{
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(42,120,255,0.15), rgba(15,107,79,0.10));
    border: 1px solid rgba(11,42,85,0.08);
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
    padding: 34px;
  }

  /* MAP */
  .mapa-container iframe{
    width:100%;
    border-radius: 22px;
    min-height: 420px;
  }

  /* WHATSAPP FLOAT */
  .wa-float{
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
  }
  .wa-bubble{
    background:#25D366;
    color:#fff;
    width:56px;
    height:56px;
    border-radius: 999px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 26px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: pulse 1.8s ease-in-out infinite;
  }
  @keyframes pulse{
    0%{ transform: scale(1); }
    50%{ transform: scale(1.06); }
    100%{ transform: scale(1); }
  }
  .wa-text{
    background: rgba(11,42,85,0.92);
    color:#fff;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  }

  footer{
    background: #081226;
    color:#fff;
    padding: 18px 0;
    opacity:.95;
  }

  /* UTIL */
  .bg-soft{ background: var(--gris); }
  .text-primary{ color: var(--azul) !important; }
  .muted{ opacity:.8; }

  /* Responsive tweaks */
  @media (max-width: 576px){
    .hero .hero-card{ padding: 24px; }
    .stats-wrap{ margin-top: -30px; }
    .wa-text{ display:none; }
  }

  .testimonial-card {
max-width: 750px;
border-radius: 25px;
border: 1px solid rgba(0,0,0,0.05);
box-shadow: 0 20px 50px rgba(0,0,0,0.08);
transition: transform 0.3s ease;
}

.testimonial-card:hover {
transform: translateY(-6px);
}

.testimonial-img {
width: 90px;
height: 90px;
border-radius: 50%;
object-fit: cover;
border: 4px solid #2a78ff;
}

.stars {
color: #ffc107;
font-size: 1.2rem;
letter-spacing: 3px;
}

.carousel-indicators button {
width: 12px;
height: 12px;
border-radius: 50%;
background-color: #2a78ff;
opacity: 0.3;
}

.carousel-indicators .active {
opacity: 1;
}

.custom-arrow {
filter: invert(1);
}
.chat-floating-btn {
position: fixed;
right: 20px;
bottom: 20px;
width: 55px;
height: 55px;
border-radius: 50%;
border: none;
background: #0b2a55;
color: white;
font-size: 22px;
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
cursor: pointer;
z-index: 9999;
}

.chat-widget {
position: fixed;
right: 20px;
bottom: 90px;
width: 340px;
max-height: 500px;
background: white;
border-radius: 18px;
box-shadow: 0 30px 60px rgba(0,0,0,0.2);
overflow: hidden;
display: none;
flex-direction: column;
z-index: 9999;
border: 1px solid rgba(0,0,0,0.05);
}

.chat-header {
background: #0b2a55;
color: white;
padding: 12px 15px;
font-weight: 600;
display: flex;
justify-content: space-between;
cursor: pointer;
font-size: 14px;
}

.chat-content {
padding: 15px;
overflow-y: auto;
max-height: 400px;
}

.chat-btn {
width: 100%;
margin-bottom: 8px;
padding: 8px;
border-radius: 10px;
border: 1px solid #e0e0e0;
background: #f9fafc;
cursor: pointer;
font-size: 13px;
transition: 0.2s ease;
}

.chat-btn:hover {
background: #e8f0ff;
border-color: #2a78ff;
}

.chat-final-btn {
background: #2a78ff;
color: white;
border: none;
}

.chat-box{
    position:fixed;
    bottom:90px;
    right:20px;
    width:320px;
    height:420px;
    background:white;
    border-radius:12px;
    box-shadow:0 8px 25px rgba(0,0,0,0.2);
    display:none;
    flex-direction:column;
    overflow:hidden;
    }
    
    .chat-messages{
    flex:1;
    padding:15px;
    overflow-y:auto;
    background:#f5f7fa;
    }
    
    .msg-bot{
    background:#e9f3ff;
    padding:8px 12px;
    border-radius:10px;
    margin-bottom:8px;
    max-width:80%;
    }
    
    .msg-user{
    background:#cfe9ff;
    padding:8px 12px;
    border-radius:10px;
    margin-bottom:8px;
    margin-left:auto;
    max-width:80%;
    }
    
    .chat-input-area{
    display:flex;
    border-top:1px solid #ddd;
    }
    
    .chat-input-area input{
    flex:1;
    border:none;
    padding:10px;
    }
    
    .chat-input-area button{
    background:#0d6efd;
    color:white;
    border:none;
    padding:10px 15px;
    }

