/* ===== SECCIONES (una por bloque, en el orden de la página) ===== */

/* --- Header --- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(42,39,84,.92); backdrop-filter: blur(10px); transition: padding .3s; border-bottom: 1px solid rgba(255,255,255,.08); }
.header__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.header.is-scrolled .header__bar { padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--font-head); font-weight: 700; }
.brand img { width: 46px; height: 46px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--primary); }
.nav .btn { padding: 9px 20px; color: #fff; }
.nav-toggle { display: none; background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 1.5rem; padding: 6px 12px; border-radius: 8px; cursor: pointer; }

/* --- Hero --- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; color: #fff; padding: 120px 0 70px;
  background: linear-gradient(100deg, rgba(42,39,84,.96) 35%, rgba(42,39,84,.65)), url("../assets/img/img-inicio.jpg") center/cover no-repeat; }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.08; letter-spacing: -1px; margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--primary); }
.hero__text { max-width: 52ch; opacity: .95; font-size: 1.15rem; margin-bottom: 32px; line-height: 1.6; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__photo { border-radius: 20px; border: 4px solid rgba(255,255,255,.15); box-shadow: 0 24px 50px rgba(0,0,0,.45); transform: rotate(1.5deg); transition: transform .3s ease; }
.hero__photo:hover { transform: rotate(0deg) scale(1.02); }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 16px; border-radius: 50px; background: rgba(255,102,0,.2); border: 1px solid rgba(255,102,0,.4); color: #ffb27a; font-weight: 600; font-size: .92rem; }

/* --- Presentación / Nosotros --- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: 0 16px 36px rgba(42,39,84,.12); }
.about__facts { display: flex; gap: 32px; margin-top: 28px; }
.about__facts strong { display: block; font-family: var(--font-head); font-size: 2.5rem; color: var(--primary); line-height: 1; }
.about__facts span { color: var(--muted); font-size: .95rem; font-weight: 500; }

/* --- Actividades --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(42,39,84,.07); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; border: 1px solid rgba(0,0,0,.04); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42,39,84,.12); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-family: var(--font-head); font-size: 1.35rem; color: var(--dark); font-weight: 700; }
.card p { color: var(--muted); line-height: 1.55; }
.card__link { margin-top: auto; padding-top: 12px; color: var(--secondary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card__link:hover { text-decoration: underline; }
.card__date { color: var(--secondary); font-size: .85rem; font-weight: 600; }

/* --- Horarios --- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tab { background: transparent; border: 2px solid rgba(255,255,255,.35); color: #fff; border-radius: 50px; padding: 10px 24px; font: inherit; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 15px rgba(255,102,0,.4); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.07); border-radius: var(--radius); }
.table th, .table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.table th { color: #ffb27a; font-weight: 600; font-size: 1rem; }
.empty { padding: 24px; border: 2px dashed rgba(255,255,255,.3); border-radius: var(--radius); }
.empty a { color: #ffb27a; font-weight: 600; }

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-tab {
  animation: fadeInTab 0.3s ease-out forwards;
}

/* --- Contacto --- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.contact__list { list-style: none; display: grid; gap: 14px; margin: 24px 0 30px; }
.contact__list li { display: flex; align-items: flex-start; font-size: 1.05rem; }
.contact__list i { color: var(--primary); margin-right: 12px; font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map { border: 0; width: 100%; height: 400px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(42,39,84,.08); }

/* --- Botones secundarios / outline --- */
.btn--outline { background: transparent; border: 2px solid var(--secondary); color: var(--secondary); }
.btn--outline:hover { background: var(--secondary); color: #fff; }
.btn--light-outline { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn--light-outline:hover { background: #fff; color: var(--dark); }

/* --- Footer --- */
.footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 48px 0; text-align: center; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer a { color: #fff; margin: 0 12px; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--primary); }

/* --- CRO: WhatsApp Flotante con pulso y llamada a la acción --- */
.wa-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-float {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  animation: waPulse 2.8s infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}
.wa-float__tooltip {
  background: #ffffff;
  color: #2a2754;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wa-float__tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  60% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Comentarios / Reseñas --- */
.comments-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.comment-form-container { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: 0 8px 26px rgba(42,39,84,.08); }
.comment-form-container h3 { margin-top: 0; margin-bottom: 20px; font-family: var(--font-head); color: var(--dark); font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.comment-form input[type="text"], .comment-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-family: inherit; font-size: 1rem; }
.comment-form textarea { resize: vertical; }
.rating-group { display: flex; align-items: center; gap: 15px; }
.rating-input { color: #ccc; font-size: 1.5rem; cursor: pointer; display: flex; gap: 5px; }
.rating-input i.active { color: #ffb27a; }
.feedback-msg { margin-top: 15px; font-weight: 600; font-size: 0.95rem; }

.comments-list { display: flex; flex-direction: column; gap: 20px; max-height: 500px; overflow-y: auto; padding-right: 10px; }
.comment-card { background: #fff; padding: 22px; border-radius: var(--radius); box-shadow: 0 4px 18px rgba(0,0,0,.06); border-left: 4px solid var(--primary); }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.comment-author { font-weight: 700; color: var(--dark); font-size: 1.05rem; }
.comment-stars { color: #ffb27a; font-size: 1.15rem; }
.comment-text { color: var(--muted); line-height: 1.55; margin: 0; }
.comment-date { font-size: 0.82rem; color: #999; margin-top: 10px; text-align: right; }

.nav .nav-login { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255,102,0,.2); color: #ffb27a !important; padding: 8px 16px; border-radius: 50px; border: 1px solid rgba(255,102,0,.4); transition: background 0.3s; margin-left: auto; }
.nav .nav-login:hover { background: rgba(255,102,0,.4); }

/* --- Responsive --- */
@media (max-width: 860px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .hero__photo { display: none; }
  .section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--dark); padding: 10px 20px 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .comments-wrapper { grid-template-columns: 1fr; }
  .nav .nav-login { margin: 15px 0 5px 0; padding: 12px; }
  .nav .btn { justify-content: center; margin-bottom: 10px; }
}

@media (max-width: 600px) {
  .wa-float__tooltip { display: none; }
}