:root{
  --brown:#4a2f22;
  --orange:#f29a4a;
  --teal:#dff3f3;
  --peach:#fff3e6;
  --pink:#fdecef;
}

*,
*::before,
*::after{ box-sizing:border-box; }

body{
  background:#fff7f2;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.page-wrap{
  max-width:1200px;
  margin:20px auto;
}

.shell{
  background:#fff;
  overflow:visible;
  box-shadow:0 12px 40px rgba(0,0,0,.08);
}

.shell-body{ overflow:hidden; }

/* =========================
   HEADER
========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:3000;
  background:#fff;
}
.topbar.is-hidden{ transform:none !important; }

@media (max-width: 991.98px){
  .topbar{
    position:sticky;
    top:0;
    z-index:2000;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    display:block !important;
  }
  section{ scroll-margin-top:110px; }
}

.navbar .container-fluid{ align-items:center; }

.navbar-toggler{
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
  position:static !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
}

#floatingToggler{ display:none !important; }

@media (min-width:992px){
  .navbar-toggler{ display:none !important; }
}

@media (max-width:991.98px){
  #mainNav{ width:100%; margin-top:10px; }
  .nav-links .nav-link{ padding:10px 0; }
}

.brand-logo{
  height:140px;
  width:auto;
  object-fit:contain;
}

.nav-links .nav-link{
  font-size:1.15rem;
  font-weight:700;
}

.nav-links .nav-item{ position:relative; }

.nav-links .nav-item + .nav-item::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:1px;
  height:18px;
  background:rgba(0,0,0,.2);
}

@media (max-width:992px){
  .nav-links .nav-link{ font-size:1.25rem; }
  .nav-links .nav-item + .nav-item::before{ display:none; }
}

/* =========================
   HERO
========================= */
.hero{
  background:#fff8f2;
  scroll-margin-top:90px;
}

.hero-card{
  position:relative;
  overflow:hidden;
}

.hero-img-wrap{
  width:100%;
  height:360px;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(
    to bottom,
    rgba(255,248,242,.65),
    rgba(255,248,242,.85)
  );
  pointer-events:none;
}

.hero-card,
.hero-overlay{ z-index:1; }

.hero-content{
  pointer-events:auto;
  padding:32px 16px;
  text-align:center;
}

@media (max-width:768px){
  .hero-img-wrap{ height:240px; }
}

.carousel-indicators,
.carousel-control-prev,
.carousel-control-next{ z-index:5; }

.hero-title{
  margin:0;
  padding:0;
  font-size:3.2rem;
  font-weight:900;
  color:var(--brown);
}

.hero-sub{
  margin:12px 0 18px;
  color:rgba(0,0,0,.65);
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
  line-height:1.65;
  font-size:1.05rem;
}

.btn-cta{
  background:var(--orange);
  color:#fff;
  border-radius:999px;
  padding:12px 26px;
  font-weight:700;
  border:none;
}

.hero-real{ text-align:center; }
.hero-real .btn-cta{ display:inline-block; }

@media (max-width: 768px){
  #heroCarousel .carousel-indicators,
  #heroCarousel .carousel-control-prev,
  #heroCarousel .carousel-control-next{ display:none !important; }
}

/* =========================
   SECTIONS
========================= */
.section{ padding:36px 15px; }

.section-title{
  position:relative;
  display:inline-block;
  font-size:2.2rem;
  font-weight:800;
  margin-bottom:28px;
}

.section-title::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:-10px;
  width:110%;
  height:12px;
  background:var(--orange);
  border-radius:20px;
  opacity:.25;
  z-index:-1;
}

.section-head{
  max-width:760px;
  margin-bottom:18px;
}

.section-sub{
  margin:0;
  color:rgba(0,0,0,.62);
  line-height:1.6;
  font-size:1.05rem;
}

/* =========================
   ESPECIALIDADES
========================= */
.specialty-card{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}

.specialty-card::after{
  content:"";
  position:absolute;
  bottom:-40px;
  right:-40px;
  width:140px;
  height:110px;
  background:rgba(242,154,74,.18);
  border-radius:55% 45% 60% 40% / 55% 60% 40% 45%;
  opacity:0;
  transform:scale(.85);
  transition:opacity .25s ease, transform .25s ease;
  z-index:0;
  pointer-events:none;
}

.specialty-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.specialty-card:hover::after{
  opacity:1;
  transform:scale(1);
}

.specialty-card > *{ position:relative; z-index:1; }

.specialty-badge{
  font-size:1.05rem;
  font-weight:800;
  letter-spacing:.2px;
  padding:12px 16px;
}

.specialty-media{
  height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff7f2;
}

.specialty-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.specialty-body{ padding:14px 16px 16px; }

.specialty-text{
  font-size:1rem;
  line-height:1.6;
  color:rgba(0,0,0,.65);
  margin:0;
}

@media (max-width:992px){
  .specialty-media{ height:190px; }
}

/* =========================
   PLANES
========================= */
.plan-card{
  border-radius:20px;
  padding:26px 22px;
  box-shadow:0 10px 25px rgba(0, 0, 0, 0.06);
  text-align:center;
  display:flex;
  flex-direction:column;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  height:100%;
}

.plan-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 35px rgba(0, 0, 0, 0.1);
}

.plan-head{
  padding:14px 10px 18px;
  border-radius:16px;
  background:rgba(255, 255, 255, 0.55);
  margin-bottom:16px;
}

.plan-title{
  font-size:1.1rem;
  font-weight:700;
  margin:0 0 10px 0;
  line-height:1.2;
}

.plan-price{
  font-size:2.2rem;
  font-weight:900;
  letter-spacing:-0.5px;
}

.plan-list{
  list-style:none;
  padding:0;
  margin:0 auto;
  text-align:left;
  max-width:290px;
  flex:1;
}

.plan-list li{
  padding:8px 0;
  border-bottom:1px solid rgba(0, 0, 0, 0.06);
  font-size:0.95rem;
  line-height:1.45;
}

.plan-blue{ background:#e9f8fb; }
.plan-peach{ background:#fff2e6; }
.plan-pink{ background:#fdecef; }

/* =========================
   HISTORIA
========================= */
.historia-text{
  color:rgba(0,0,0,.65);
  line-height:1.65;
  font-size:1.05rem;
}

.historia-img{
  border-radius:18px;
  box-shadow:0 14px 30px rgba(0,0,0,.12);
  width:80%;
  height:auto;
  position:relative;
  z-index:1;
}

.historia-media{
  position:relative;
  display:inline-block;
}

.historia-media::before{
  content:"";
  position:absolute;
  bottom:-32px;
  right:-22px;
  width:240px;
  height:165px;
  background:rgba(242,154,74,.15);
  border-radius:55% 45% 60% 40% / 55% 60% 40% 45%;
  z-index:0;
  pointer-events:none;
}

.historia-media::after{
  content:"";
  position:absolute;
  bottom:-40px;
  right:-30px;
  width:280px;
  height:200px;
  border:4px solid var(--orange);
  border-radius:55% 45% 60% 40% / 55% 60% 40% 45%;
  opacity:.35;
  z-index:0;
  pointer-events:none;
}

/* =========================
   FOOTER
========================= */
.footer{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:1.5rem;
  padding:20px 24px;
}

.footer::before{ content:none; }

.footer a{ color:var(--brown); }

.footer-main{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:1rem;
  padding:10px;
}

.footer-map{
  width:100%;
  border-radius:14px;
  overflow:hidden;
}

.footer-map iframe{
  width:100%;
  height:240px;
  border:0;
}

#footerPhone{
  margin-left:0;
  font-size:1.05rem;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

#footerPhone i{
  font-size:1.15rem;
  line-height:1;
}

.footer-right a{
  margin-left:10px;
  font-size:1.4rem;
  text-decoration:none;
}

#footerAddress div{ line-height:1.6; }

/* =========================
   LOADER / JSON FADE
========================= */
[data-content]{ transition:opacity .15s ease; }
[data-content].ready{ opacity:1; }

.hero-real{ display:none; }

.hero-loader{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.35rem;
  padding:2.5rem 1rem;
}

.hero-loader-title{
  font-size:clamp(1.8rem, 5vw, 3rem);
  font-weight:800;
  letter-spacing:.5px;
}

.hero-loader-sub{ font-size:1rem; opacity:.75; }

.hero-content.is-loaded .hero-loader{ display:none; }
.hero-content.is-loaded .hero-real{ display:block; }

.dots::after{
  content:"";
  display:inline-block;
  width:1.2em;
  text-align:left;
  animation:dots 1.4s steps(4, end) infinite;
}

@keyframes dots{
  0%{ content:""; }
  25%{ content:"."; }
  50%{ content:".."; }
  75%{ content:"..."; }
  100%{ content:""; }
}

@media (max-width:992px){
  .brand-logo{ height:80px; }
  .hero-title{ font-size:2.2rem; }
  .footer{ gap:12px; }
}

/* =========================
   TESTIMONIOS (SLIDER)
========================= */
.testimonios-section{ padding:36px 15px; }

.testimonios-section #testimoniosSubtitle{ text-align:left; }

.testimonios-section .t-carousel{
  display:flex;
  align-items:center;
  gap:18px;
  width:100%;
  max-width:1100px;
  margin:0 auto;
}

.testimonios-section .t-btn{
  flex:0 0 auto;
  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:var(--brown);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 12px 22px rgba(0,0,0,.20);
}
.testimonios-section .t-btn:hover{ filter:brightness(1.05); }

.testimonios-section .t-viewport{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  position:relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.testimonios-section .t-track{
  display:flex;
  gap:0;
  transition:transform .45s ease;
  will-change:transform;
}

.testimonios-section .t-col{
  flex:0 0 100%;
  width:100%;
  max-width:100%;
  justify-content:center;
  padding:0 18px;
}

.testimonios-section .t-card{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  padding:24px 24px;
}

.testimonios-section .t-head{
  text-align:center;
  margin-bottom:14px;
}

.testimonios-section .t-name{
  font-weight:900;
  color:var(--brown);
  font-size:1.15rem;
  line-height:1.2;
}

.testimonios-section .t-role{
  margin-top:4px;
  font-size:.95rem;
  color:rgba(0,0,0,.55);
}

.testimonios-section .t-text{
  margin:0 auto;
  max-width:720px;
  line-height:1.7;
  font-size:1rem;
  color:rgba(0,0,0,.72);
}

.testimonios-section .t-text p{
  margin:0 0 10px 0;
}
.testimonios-section .t-text p:last-child{ margin-bottom:0; }

.testimonios-section .t-card--pink{ background:#fdecef; }
.testimonios-section .t-card--peach{ background:#fff3e6; }
.testimonios-section .t-card--teal{ background:#dff3f3; }
.testimonios-section .t-card--yellow{ background:#fff7cc; }
.testimonios-section .t-card--blue{ background:#e6f1ff; }
.testimonios-section .t-card--green{ background:#e8f7ee; }

@media (max-width: 767.98px){
  .testimonios-section .t-col{ padding:0 10px; }
  .testimonios-section .t-card{ padding:20px 18px; }
  .testimonios-section .t-text{ font-size:.98rem; }
  .testimonios-section .t-viewport{
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  }
}

/* =========================
   BLOBS (DECORACIÓN)
========================= */
.t-blob{
  position:absolute;
  width:140px;
  height:110px;
  background:rgba(242,154,74,.14);
  border-radius:55% 45% 60% 40% / 55% 60% 40% 45%;
  pointer-events:none;
  z-index:0;
}

.t-blob.tl{ top:-48px; left:-48px; }
.t-blob.tr{ top:-48px; right:-48px; }
.t-blob.bl{ bottom:-48px; left:-48px; }
.t-blob.br{ bottom:-48px; right:-48px; }

.t-blob.tc{ top:-52px; left:50%; transform:translateX(-50%); }
.t-blob.bc{ bottom:-52px; left:50%; transform:translateX(-50%); }
.t-blob.lc{ left:-52px; top:50%; transform:translateY(-50%); }
.t-blob.rc{ right:-52px; top:50%; transform:translateY(-50%); }

.t-blob.s1{ transform:scale(.85); opacity:.12; }
.t-blob.s2{ transform:scale(1); opacity:.14; }
.t-blob.s3{ transform:scale(1.15); opacity:.18; }

.t-blob.tc.s1, .t-blob.bc.s1{ transform:translateX(-50%) scale(.85); }
.t-blob.tc.s2, .t-blob.bc.s2{ transform:translateX(-50%) scale(1); }
.t-blob.tc.s3, .t-blob.bc.s3{ transform:translateX(-50%) scale(1.15); }

.t-blob.lc.s1, .t-blob.rc.s1{ transform:translateY(-50%) scale(.85); }
.t-blob.lc.s2, .t-blob.rc.s2{ transform:translateY(-50%) scale(1); }
.t-blob.lc.s3, .t-blob.rc.s3{ transform:translateY(-50%) scale(1.15); }

.testimonios-section .t-card > *{ position:relative; z-index:1; }

/* =========================
   VER MÁS (SOLO MOBILE, COMO LINK)
========================= */
.t-more{ display:none; }

@media (max-width: 767.98px){
  .testimonios-section .t-card{
    display:flex;
    flex-direction:column;
  }

  .testimonios-section .t-card.is-collapsed .t-text{
    display:-webkit-box;
    -webkit-line-clamp:5;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .testimonios-section .t-card.is-expanded .t-text{
    display:block;
    overflow:visible;
  }

  .testimonios-section .t-card.is-collapsed .t-more,
  .testimonios-section .t-card.is-expanded .t-more{
    display:inline;
  }

  .testimonios-section .t-more{
    margin-top:10px;
    align-self:flex-end;

    background:transparent !important;
    border:0 !important;
    padding:0 !important;
    width:auto !important;
    box-shadow:none !important;

    font-size:.92rem;
    font-weight:700;
    color:var(--brown);
    text-decoration:underline;
    cursor:pointer;
  }

  .testimonios-section .t-more:hover{ opacity:.75; }
}

.testimonios-section .t-carousel{
  width:100%;
  max-width:1100px;
  margin:0 auto;
}

.testimonios-section .t-viewport{
  position:relative;
  overflow:hidden;
  width:100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.testimonios-section .t-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;

  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:var(--brown);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 12px 22px rgba(0,0,0,.20);
}

.testimonios-section .t-btn.prev{ left:10px; }
.testimonios-section .t-btn.next{ right:10px; }

@media (max-width: 767.98px){
  .testimonios-section .t-viewport{
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  }

  .testimonios-section .t-btn.prev{ left:6px; }
  .testimonios-section .t-btn.next{ right:6px; }
}

.testimonios-section .t-card{
  position: relative;
  overflow: hidden;
}

.testimonios-section .t-card > .t-blob{
  position: absolute !important;
  display: block !important;
  width: 140px;
  height: 110px;
  pointer-events: none;
  z-index: 0;
  line-height: 0;
  font-size: 0;
}
.testimonios-section .t-card > *{
  position: relative;
  z-index: 1;
}

.testimonios-section .t-blob.tl{ top:-48px; left:-48px; }
.testimonios-section .t-blob.tr{ top:-48px; right:-48px; }
.testimonios-section .t-blob.bl{ bottom:-48px; left:-48px; }
.testimonios-section .t-blob.br{ bottom:-48px; right:-48px; }

/* ============================= */
/* MEJORAS GENERALES DE DISEÑO  */
/* ============================= */

/* Más aire entre secciones */
.section{
  padding: 60px 15px;
}

/* Títulos más fuertes */
.section-title{
  font-weight: 900;
}

/* ============================= */
/* HERO                          */
/* ============================= */

.btn-cta{
  box-shadow: 0 8px 20px rgba(242,154,74,.35);
}

/* ============================= */
/* HISTORIA                      */
/* ============================= */

.historia-text{
  max-width: 680px;
}

/* ============================= */
/* ESPECIALIDADES                */
/* ============================= */

.specialty-text{
  text-align: left;
}

/* ============================= */
/* PROGRAMAS                     */
/* ============================= */

#programas .row{
  margin-top: 20px;
}

.plan-price{
  font-size: 2.4rem;
  color: var(--brown);
}

/* Hover más elegante */
.plan-card:hover{
  transform: translateY(-6px);
}

/* ============================= */
/* TESTIMONIOS                   */
/* ============================= */

.testimonios-section .t-text{
  max-width: 640px;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */

.footer{
  padding: 30px 24px;
}

@media (max-width: 767.98px){
  .hero-content{
    padding: 22px 14px;
  }

  .hero-title{
    font-size: 1.9rem;
  }

  .hero-sub{
    font-size: .95rem;
  }
}

@media (max-width: 767.98px){
  .hero-content{
    padding: 22px 14px;
  }

  .hero-title{
    font-size: 1.9rem;
  }

  .hero-sub{
    font-size: .95rem;
  }
}

@media (max-width: 767.98px){
  .historia-text{
    max-width: 95%;
    margin-left:auto;
    margin-right:auto;
  }
}

.specialty-media{
  margin-bottom: 10px;
}

.specialty-media{
  margin-bottom: 10px;
}