/* =========================================================
   RESET
========================================================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',sans-serif;
  background:#fff;
  color:#1E293B;
  line-height:1.7;
}

:root{
  --primary:#243C96;
  --secondary:#00A99D;
  --accent:#E91E63;
  --light:#F5F8FC;
  --dark:#1E293B;

  --radius-card:24px;
  --radius-img:22px;

  --shadow-soft:0 15px 40px rgba(0,0,0,.06);
  --shadow-medium:0 20px 50px rgba(0,0,0,.08);
}

/* =========================================================
   TOP ALERT
========================================================= */
.top-alert{
  background:var(--accent);
  color:#fff;
  padding:12px 5%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
}

.btn-alert{
  background:#fff;
  color:var(--accent);
  padding:10px 18px;
  border-radius:50px;
  text-decoration:none;
  font-weight:700;
}

/* =========================================================
   HEADER
========================================================= */
.header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 5%;
  box-shadow:0 2px 20px rgba(0,0,0,.05);
}

.logo-container img{
  height:70px;
}

.nav{
  display:flex;
  gap:25px;
}

.nav a{
  text-decoration:none;
  color:var(--dark);
  font-weight:600;
  font-size:0.95rem;
}

.nav a.active{
  color:var(--primary);
  font-weight:700;
}

.desktop-btn{
  display:inline-block;
}

/* =========================================================
   BOTONES
========================================================= */
.btn-primary,
.btn-secondary{
  padding:14px 26px;
  border-radius:50px;
  text-decoration:none;
  font-weight:700;
  transition:.3s;
  font-size:0.95rem;
}

.btn-primary{
  background:var(--secondary);
  color:#fff;
}

.btn-primary:hover{
  background:#029184;
}

.btn-secondary{
  border:2px solid var(--primary);
  color:var(--primary);
}

.btn-secondary:hover{
  background:var(--primary);
  color:#fff;
}

/* =========================================================
   HERO GENERAL
========================================================= */
.hero{
  height:90vh;
  background:url('img/hero.jpg') center/cover;
  position:relative;
  display:flex;
  align-items:center;
}

.hero-diplomado{
  background:url('img/hero-diplomado.jpg') center/cover;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to right, rgba(20,30,60,.88), rgba(20,30,60,.45));
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:780px;
  padding:0 5%;
  color:#fff;
}

.hero-tag{
  background:rgba(255,255,255,.12);
  padding:10px 18px;
  border-radius:50px;
  display:inline-block;
  margin-bottom:25px;
  font-size:0.9rem;
}

.hero h1{
  font-size:64px;
  line-height:1.1;
  margin-bottom:20px;
}

.hero p{
  font-size:20px;
  margin-bottom:35px;
}

.hero-buttons{
  display:flex;
  gap:20px;
  margin-bottom:30px;
}

/* =========================================================
   HERO QUICK STATS
========================================================= */
.hero-quick-stats{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  margin-top:10px;
}

.hero-stat{
  background:rgba(15,23,42,.75);
  padding:12px 18px;
  border-radius:16px;
  min-width:130px;
}

.hero-stat span{
  display:block;
  font-size:24px;
  font-weight:700;
}

.hero-stat small{
  font-size:0.8rem;
  opacity:.85;
}

/* =========================================================
   SECCIONES
========================================================= */
.section{
  padding:90px 5%;
}

.section-light{
  background:var(--light);
}

.section-title{
  text-align:center;
  margin-bottom:50px;
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}

.section-title span{
  color:var(--secondary);
  font-weight:700;
  font-size:0.9rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.section-title h2{
  font-size:40px;
  margin:15px 0;
}

.section-title p{
  color:#64748B;
}

/* =========================================================
   ACOMPANARTE
========================================================= */
.acompanarte-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:40px;
  align-items:flex-start;
}

.acompanarte-text p{
  margin-bottom:18px;
}

.quick-access{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:10px;
}

.acompanarte-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.stat-card{
  background:#fff;
  padding:24px;
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-soft);
}

.stat-card h3{
  font-size:32px;
  color:var(--primary);
  margin-bottom:6px;
}

/* =========================================================
   AYUDA INMEDIATA
========================================================= */
.help-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.help-card{
  background:#fff;
  padding:30px;
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-soft);
  text-align:left;
}

.help-img{
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:12px;
}

.help-card i{
  font-size:32px;
  color:var(--secondary);
  margin-bottom:15px;
}

.help-card h3{
  margin-bottom:8px;
}

.help-card a{
  text-decoration:none;
  color:var(--primary);
  font-weight:700;
}

/* =========================================================
   GRID 2
========================================================= */
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

/* =========================================================
   IMÁGENES
========================================================= */
.rounded-img{
  width:100%;
  border-radius:var(--radius-img);
  object-fit:cover;
}

.logro-img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:var(--radius-img);
  margin-bottom:14px;
}

.docente-img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:var(--radius-img);
  margin-bottom:14px;
}

.video-thumb{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:var(--radius-img);
  margin-bottom:14px;
}

/* =========================================================
   CONTENT BLOCK
========================================================= */
.content-block p{
  margin-bottom:18px;
}

/* =========================================================
   CTA BOX
========================================================= */
.cta-box{
  background:var(--light);
  padding:24px;
  border-radius:var(--radius-card);
  margin-top:20px;
}

.cta-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

/* =========================================================
   VIDEO GRID
========================================================= */
.video-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.video-card{
  background:#fff;
  padding:20px;
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-soft);
}

/* =========================================================
   CARRUSEL MEDIANO CENTRADO
========================================================= */
.carousel-container.medium{
  max-width:680px;
  margin:0 auto;
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-medium);
}

.carousel-track{
  display:flex;
  transition:transform .5s ease;
}

.carousel-img{
  width:100%;
  height:420px;
  object-fit:cover;
}

.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:var(--primary);
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:50%;
  cursor:pointer;
  font-size:1.4rem;
  transition:.3s;
}

.carousel-btn:hover{
  background:#1b2f7a;
}

.prev{ left:10px; }
.next{ right:10px; }

.carousel-indicators{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:12px;
}

.carousel-indicators div{
  width:10px;
  height:10px;
  background:#cbd5e1;
  border-radius:50%;
  transition:.3s;
}

.carousel-indicators .active{
  background:var(--primary);
  transform:scale(1.2);
}

/* =========================================================
   CARDS GENERALES
========================================================= */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.modern-card{
  background:#fff;
  padding:30px;
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-soft);
}

.modern-card i{
  font-size:32px;
  color:var(--secondary);
  margin-bottom:15px;
}

/* =========================================================
   ALIANZAS
========================================================= */
.alliances-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.alliance-card{
  background:#fff;
  padding:24px;
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-soft);
  text-align:center;
}

.alliance-logo{
  width:120px;
  height:60px;
  object-fit:contain;
  margin-bottom:12px;
}

/* =========================================================
   CONTACTO
========================================================= */
.contact-box{
  background:var(--light);
  padding:40px;
  border-radius:var(--radius-card);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
}

.socials{
  display:flex;
  gap:20px;
}

.socials a{
  text-decoration:none;
  color:var(--primary);
  font-size:22px;
}

/* =========================================================
   FOOTER
========================================================= */
.footer{
  background:var(--primary);
  color:#fff;
  text-align:center;
  padding:30px;
  font-size:0.9rem;
}

/* =========================================================
   TEST HERO
========================================================= */
.test-hero{
  height:60vh;
  background:url('../img/test-hero.jpg') center/cover;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 5%;
}

.test-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(20,30,60,.75), rgba(20,30,60,.45));
}

.test-hero-content{
  position:relative;
  z-index:2;
  max-width:700px;
  text-align:center;
  color:#fff;
}

.test-hero h1{
  font-size:48px;
  margin-bottom:12px;
}

.test-hero-subtitle{
  font-size:20px;
  margin-bottom:18px;
  opacity:.9;
}

.test-hero-note{
  font-size:15px;
  margin-bottom:28px;
  opacity:.85;
}

.test-hero-btn{
  padding:14px 28px;
  border-radius:50px;
  font-weight:700;
}

/* =========================================================
   TEST FORM
========================================================= */
.test-main{
  padding:60px 5%;
}

.test-card{
  background:#fff;
  padding:30px;
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-soft);
  max-width:800px;
  margin:0 auto;
}

.test-questions li{
  margin-bottom:22px;
}

.test-options{
  display:flex;
  gap:20px;
  margin-top:8px;
}

.test-submit{
  margin-top:20px;
  width:100%;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width:992px){

  .hero{
    height:auto;
    padding:80px 0;
  }

  .hero h1{
    font-size:48px;
  }

  .nav{
    display:none;
  }

  .desktop-btn{
    display:none;
  }

  .grid-2,
  .cards-grid,
  .help-grid,
  .video-grid,
  .acompanarte-grid,
  .alliances-grid{
    grid-template-columns:1fr;
  }

  .carousel-container.medium{
    max-width:100%;
  }

  .contact-box{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(max-width:600px){

  .section{
    padding:70px 6%;
  }

  .hero-content{
    padding:0 6%;
  }

  .hero h1{
    font-size:40px;
  }

  .hero-buttons{
    flex-direction:column;
    align-items:flex-start;
  }

  .help-card,
  .modern-card,
  .stat-card,
  .video-card,
  .alliance-card{
    padding:22px;
  }

  iframe{
    height:220px;
  }
}
.help-card {
  text-align: center;
}
.clinic-videos {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* ===========================
   CONTACTO
=========================== */

.contact-section {
  padding: 80px 5%;
  background: #f8fafc;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: #475569;
  line-height: 1.6;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,.06);
  text-align: left;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  font-weight: 600;
  color: #1e293b;
  display: block;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 16px;
}
/* ===========================
   FOOTER
=========================== */

.footer {
  background: #1e293b;
  color: #e2e8f0;
  padding: 60px 5% 30px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-info h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-info p {
  margin-bottom: 8px;
  font-size: 16px;
}

.footer-social h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-social a {
  display: block;
  color: #e2e8f0;
  margin-bottom: 10px;
  font-size: 16px;
  text-decoration: none;
  transition: .2s;
}

.footer-social a i {
  margin-right: 8px;
}

.footer-social a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 14px;
  opacity: .8;
}

/* Responsive */
@media(max-width: 768px){
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
