/* educare-aventuras.com — estilos públicos. Paleta tomada del logo: rojo, verde, azul agua, amarillo sol, azul marino */
:root {
  --rojo: #e53935; --rojo-osc: #b71c1c;
  --verde: #2e9e3f; --verde-osc: #1b6b2a;
  --agua: #19a7c5; --agua-claro: #e6f7fb;
  --sol: #f9c22e;
  --marino: #0d2b45;
  --gris: #5b6b7a; --gris-claro: #f3f6f8; --borde: #dde5ea;
  --radius: 14px;
  --sombra: 0 6px 24px rgba(13,43,69,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--marino); background: #fff; line-height: 1.55; }
a { color: var(--agua); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--gris); }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; color: var(--rojo); }
.brand b { color: var(--verde); }
.brand img { height: 52px; width: 52px; object-fit: contain; }
.nav nav { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.nav nav a { color: var(--marino); font-weight: 700; }
@media (max-width: 640px) { .brand span { display: none; } .nav nav { gap: 10px; font-size: .95rem; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 800; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--sombra); }
.btn-primary { background: var(--rojo); color: #fff !important; }
.btn-primary:hover { background: var(--rojo-osc); }
.btn-green { background: var(--verde); color: #fff !important; }
.btn-green:hover { background: var(--verde-osc); }
.btn-outline { border-color: var(--marino); color: var(--marino); background: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Hero */
.hero { background: linear-gradient(160deg, #fff7d6 0%, #e6f7fb 55%, #e7f6ea 100%); padding: 60px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--rojo); }
.hero h1 em { color: var(--verde); font-style: normal; }
.hero p.lead { font-size: 1.2rem; color: var(--gris); max-width: 520px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-logo { text-align: center; }
.hero-logo img { max-height: 420px; filter: drop-shadow(0 20px 40px rgba(13,43,69,.15)); }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo img { max-height: 280px; } }
.tagline { font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--marino); }
.tagline .r { color: var(--rojo); } .tagline .g { color: var(--verde); }

/* Secciones */
section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--gris); font-size: 1.05rem; }

/* Tarjetas de actividad */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--sombra); border: 1px solid var(--borde); overflow: hidden; display: flex; flex-direction: column; }
.card .card-img { aspect-ratio: 16/10; width: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: var(--agua-claro); overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.3rem; }
.card .price { font-size: 1.5rem; font-weight: 900; color: var(--rojo); }
.card .price small { font-size: .85rem; color: var(--gris); font-weight: 600; }
.card .meta { color: var(--gris); font-size: .92rem; }
.card .actions { margin-top: auto; display: flex; gap: 10px; padding-top: 10px; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step { text-align: center; padding: 24px; background: var(--gris-claro); border-radius: var(--radius); }
.step .n { width: 46px; height: 46px; border-radius: 50%; background: var(--verde); color: #fff; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 10px; }

/* Formularios */
.form-card { background: #fff; border: 1px solid var(--borde); border-radius: var(--radius); box-shadow: var(--sombra); padding: 28px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--borde); border-radius: 10px; font: inherit; color: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--agua); box-shadow: 0 0 0 3px rgba(25,167,197,.15); }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.help { font-size: .85rem; color: var(--gris); margin-top: 4px; }

/* Selector de actividad */
.act-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.act-picker label { cursor: pointer; border: 2px solid var(--borde); border-radius: 12px; padding: 14px; text-align: center; margin: 0; transition: .15s; }
.act-picker label .ic { font-size: 2rem; }
.act-picker label .p { color: var(--rojo); font-weight: 900; }
.act-picker input { display: none; }
.act-picker input:checked + label { border-color: var(--verde); background: #eef9f0; }

/* Calendario */
.cal { border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; }
.cal-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--gris-claro); font-weight: 800; }
.cal-head button { background: none; border: 0; font-size: 1.3rem; cursor: pointer; padding: 4px 10px; color: var(--marino); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-grid .dow { text-align: center; font-size: .75rem; color: var(--gris); padding: 6px 0; font-weight: 700; text-transform: uppercase; }
.cal-grid .day { text-align: center; padding: 10px 0; border-top: 1px solid var(--borde); cursor: pointer; font-weight: 700; }
.cal-grid .day.off { color: #c2ccd3; cursor: default; font-weight: 400; }
.cal-grid .day.ok:hover { background: var(--agua-claro); }
.cal-grid .day.sel { background: var(--verde); color: #fff; border-radius: 8px; }
.cal-grid .day.empty { border: 0; cursor: default; }

/* Turnos */
.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slot { border: 2px solid var(--borde); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 800; background: #fff; font-family: inherit; }
.slot small { display: block; font-weight: 600; color: var(--gris); font-size: .75rem; }
.slot.sel { border-color: var(--verde); background: #eef9f0; }
.slot[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* Resumen */
.summary { background: var(--agua-claro); border-radius: 12px; padding: 18px 20px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.summary dt { color: var(--gris); font-weight: 600; }
.summary dd { margin: 0; font-weight: 800; text-align: right; }
.summary .total { font-size: 1.3rem; color: var(--rojo); }

/* Alertas y badges */
.alert { padding: 14px 18px; border-radius: 10px; margin: 16px 0; font-weight: 600; border: 1px solid transparent; }
.alert.ok, .alert.success { background: #e7f6ea; color: var(--verde-osc); border-color: #bfe6c7; }
.alert.error, .alert.bad { background: #fdecea; color: var(--rojo-osc); border-color: #f5c2bd; }
.alert.warn { background: #fff7d6; color: #7a5a00; border-color: #f2df9a; }
.alert.info { background: var(--agua-claro); color: #0a5e70; border-color: #bce7f0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge.ok { background: #e7f6ea; color: var(--verde-osc); }
.badge.warn { background: #fff7d6; color: #7a5a00; }
.badge.bad { background: #fdecea; color: var(--rojo-osc); }
.badge.info { background: var(--agua-claro); color: #0a5e70; }
.badge.muted { background: var(--gris-claro); color: var(--gris); }

/* Página estrecha */
.narrow { max-width: 720px; margin: 40px auto; }
.booking-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; margin: 40px auto; }
@media (max-width: 860px) { .booking-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 90px; }
.code-box { font-size: 2rem; font-weight: 900; letter-spacing: .08em; color: var(--verde); background: #eef9f0; border: 2px dashed var(--verde); border-radius: 12px; padding: 14px; text-align: center; }

/* Footer */
.site-footer { background: var(--marino); color: #cfe0ec; padding: 50px 0 20px; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.footer-logo { height: 110px; }
.site-footer .tagline { color: var(--sol); }
.copy { margin-top: 30px; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 40; }

/* v2: sello "by", teléfono en cabecera, contacto, legal, cookies */
.brand-text { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand-text small { font-size: .68rem; font-weight: 700; color: var(--agua); letter-spacing: .04em; }
.nav-tel { color: var(--verde) !important; white-space: nowrap; }
@media (max-width: 900px) { .nav-tel { display: none; } }
.by-badge { font-weight: 800; color: #fff; }
.by-badge a { color: var(--sol); }
.hero-by { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--marino); background: #fff; border-radius: 999px; padding: 6px 14px; box-shadow: var(--sombra); font-size: .9rem; }
.hero-by a { color: var(--agua); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-item { background: #fff; border: 1px solid var(--borde); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--sombra); }
.contact-item .ic { font-size: 2rem; }
.contact-item h4 { margin: 8px 0 4px; }
.contact-item a { font-weight: 800; font-size: 1.05rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0; }
.legal th, .legal td { border: 1px solid var(--borde); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--gris-claro); }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--marino); color: #fff; padding: 12px 20px; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .9rem; }
.cookie-bar a { color: var(--sol); }

/* v3: portada con foto de fondo, galería de actividades, lightbox, sobre nosotros */
.hero-foto { position: relative; background: #0d2b45 var(--hero-img) center/cover no-repeat; color: #fff; padding: 90px 0 70px; }
.hero-foto::before { content: ""; position: absolute; inset: 0; background: rgba(13,43,69,var(--hero-overlay, .45)); }
.hero-foto .container { position: relative; }
.hero-foto h1, .hero-foto .tagline, .hero-foto p.lead { color: #fff; }
.hero-foto h1 span { color: #ff6b6b; } .hero-foto h1 em { color: #7be495; }
.hero-foto .tagline .r { color: #ff6b6b; } .hero-foto .tagline .g { color: #7be495; }
.hero-foto .btn-outline { background: rgba(255,255,255,.92); }
.hero-foto .hero-logo img { background: rgba(255,255,255,.9); border-radius: 24px; padding: 10px; }
.hero-solo { grid-template-columns: 1fr; text-align: center; }
.hero-solo .hero-texto { max-width: 760px; margin: 0 auto; }
.hero-solo p.lead { margin-left: auto; margin-right: auto; max-width: 640px; }
.hero-solo .cta { justify-content: center; }
.card-img { display: flex; text-decoration: none; }
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.galeria-item { display: block; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--gris-claro); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.galeria-item:hover img { transform: scale(1.04); }
.galeria-item.principal { grid-column: span 4; aspect-ratio: 16/9; }
.galeria.una .principal { aspect-ratio: 16/9; }
@media (max-width: 600px) { .galeria { grid-template-columns: repeat(2, 1fr); } .galeria-item.principal { grid-column: span 2; } }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; font-size: 1.4rem; } .lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }
.sobre-grid.sobre-solo { grid-template-columns: 1fr; max-width: 800px; }
.sobre-img img { border-radius: var(--radius); box-shadow: var(--sombra); width: 100%; }
@media (max-width: 800px) { .sobre-grid { grid-template-columns: 1fr; } }
.brand { flex-shrink: 0; }
.brand-text, .brand-text small { white-space: nowrap; }

/* v6: encuadre de fotos, menú móvil, responsive */
.galeria-item img, .sobre-img img, .card .card-img img { object-fit: cover; object-position: center; }
.galeria-item.principal img { object-fit: cover; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--marino); padding: 4px 8px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 4px; border-bottom: 1px solid var(--borde); box-shadow: var(--sombra); }
  .nav nav.abierto { display: flex; }
  .nav nav a { padding: 12px 6px; border-bottom: 1px solid var(--gris-claro); }
  .nav nav a.btn { margin-top: 8px; }
  .nav-tel { display: block !important; }
  .brand-text { display: flex !important; }
  .site-header { position: sticky; }
  .nav { position: relative; }
  .hero { padding: 40px 0 34px; }
  .hero-foto { padding: 60px 0 46px; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .booking-layout { margin: 20px auto; }
  .sticky { position: static; }
  .form-card { padding: 18px; }
  .code-box { font-size: 1.4rem; }
  .cookie-bar { font-size: .8rem; padding: 10px 14px; }
  .wa-float { width: 50px; height: 50px; bottom: 70px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .contact-grid, .steps { grid-template-columns: 1fr; }
  .brand img { height: 42px; width: 42px; }
  .brand-text { font-size: .95rem; }
  .btn-lg { padding: 13px 22px; font-size: 1rem; width: 100%; }
  .hero .cta { flex-direction: column; }
  .slots { gap: 6px; } .slot { padding: 8px 10px; font-size: .9rem; }
}
.lightbox[hidden] { display: none; }

/* v7: selector de idioma */
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-btn { background: #fff; border: 1.5px solid var(--borde); border-radius: 999px; padding: 6px 12px; font-weight: 800; cursor: pointer; font-family: inherit; color: var(--marino); font-size: .9rem; }
.lang-menu { display: none; position: absolute; right: 0; top: 40px; background: #fff; border: 1px solid var(--borde); border-radius: 10px; box-shadow: var(--sombra); min-width: 160px; z-index: 60; overflow: hidden; }
.lang-switch.abierto .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 14px; color: var(--marino); font-weight: 700; }
.lang-menu a:hover, .lang-menu a.activo { background: var(--agua-claro); text-decoration: none; }
@media (min-width: 901px) { .nav-right { order: 3; } .nav nav { order: 2; } .nav { gap: 12px; } }
@media (max-width: 900px) { .nav-right { margin-left: auto; } }

/* v8: actividad completa, selector de país */
.card-img { position: relative; }
.badge-completo { position: absolute; top: 12px; left: 12px; background: var(--rojo); color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.card.completa .card-img img { filter: grayscale(.6) brightness(.85); }
.btn-disabled { background: var(--gris-claro); color: var(--gris); border-color: var(--borde); cursor: not-allowed; pointer-events: none; }
.act-picker label.completa { opacity: .55; cursor: not-allowed; background: repeating-linear-gradient(-45deg, #fff, #fff 8px, #f3f3f3 8px, #f3f3f3 16px); }
.act-picker label.completa .p { color: var(--gris); }
.tel-group { display: flex; gap: 6px; align-items: stretch; }
.tel-group select { flex: 0 0 46%; min-width: 0; max-width: 220px; }
.tel-group .tel-prefijo { display: flex; align-items: center; padding: 0 10px; background: var(--gris-claro); border: 1px solid var(--borde); border-radius: 10px; font-weight: 800; color: var(--marino); white-space: nowrap; }
.tel-group input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .tel-group select { flex-basis: 40%; } }
