/* Escuela de surf. Concepto: la tabla de mareas.
   Azul de ola, arena y naranja de licra. Dela Gothic One y Outfit. */

:root {
  --ola: #0F4C5C;
  --ola-2: #136376;
  --espuma: #DDF1F2;
  --arena: #FFF8EE;
  --fondo: #FFF8EE;
  --superficie: #FFFFFF;
  --texto: #0D2F38;
  --texto-suave: #4F6369;
  --linea: #EADFCB;
  --acento: #FF7A1A;
  --sobre-acento: #0D2F38;
  --acento-texto: #B04A00;
  --fuente-titulos: "Dela Gothic One", system-ui, sans-serif;
  --fuente-texto: "Chivo", system-ui, sans-serif;
  --radio: 999px;
}

.boton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform var(--rapido) var(--curva), background-color var(--rapido), color var(--rapido);
}
.boton:active { transform: scale(.97); }
.boton--principal { background: var(--acento); color: var(--sobre-acento); }
.boton--linea { border-color: rgba(255, 255, 255, .5); color: #fff; }
.boton--secundario { border-color: var(--ola); color: var(--ola); background: transparent; }

.cabecera { position: sticky; top: 0; z-index: 40; background: var(--ola); color: #fff; }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 400 1rem var(--fuente-titulos); }
.marca__icono { width: 34px; fill: none; stroke: var(--acento); stroke-width: 3; stroke-linecap: round; }
.marca__logo { max-height: 40px; width: auto; }
.cabecera__menu { display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; cursor: pointer; color: #fff; }
.cabecera__menu svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu { display: flex; align-items: center; gap: 1.75rem; font-weight: 600; }
.menu a { text-decoration: none; padding: .5rem 0; color: #CDE6EA; }
.menu .menu__boton { background: var(--acento); color: var(--sobre-acento); padding: .6rem 1.15rem; border-radius: 999px; }
@media (max-width: 52rem) {
  .cabecera__menu { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ola); padding: .25rem 1.25rem 1.25rem;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity var(--medio) var(--curva), transform var(--medio) var(--curva), visibility 0s linear var(--medio);
  }
  .menu.abierto { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu a { padding: .95rem 0; border-bottom: 1px solid var(--ola-2); }
  .menu .menu__boton { margin-top: 1rem; text-align: center; padding: .95rem; }
}

.portada { position: relative; background: var(--ola); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(5rem, 9vw, 7rem); }
.portada__rejilla { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.portada h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 400; line-height: 1.02; margin-bottom: 1.25rem; }
.portada__entrada { font-size: 1.15rem; color: #CDE6EA; max-width: 44ch; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.portada__nota { font-size: .95rem; color: #9FC8CF; margin: 0; }
.portada__google { margin: .6rem 0 0; font-weight: 700; }
.portada__foto { margin: 0; }
.portada__foto img { width: 100%; aspect-ratio: 8 / 9; object-fit: cover; border-radius: 24px; }
.ola { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 80px); fill: var(--fondo); }

.mareas { margin: 0; background: var(--arena); color: var(--texto); border-radius: 24px; padding: 1.4rem 1.5rem; }
.mareas__titulo { font: 400 1.05rem var(--fuente-titulos); margin-bottom: .5rem; }
.mareas__curva { width: 100%; height: auto; }
.mareas__curva path { fill: none; stroke: var(--ola); stroke-width: 4; stroke-linecap: round; }
.mareas__lista { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; text-align: center; }
.marea { background: #fff; border-radius: 14px; padding: .6rem .3rem; font-size: .9rem; font-weight: 600; display: grid; }
.marea__hora { font: 400 1.25rem var(--fuente-titulos); color: var(--ola); font-variant-numeric: tabular-nums; }
.marea--alta { background: var(--espuma); }
.mareas__nota { font-size: .875rem; color: var(--texto-suave); margin: .9rem 0 0; }

.seccion { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.seccion h2, .reserva h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 400; line-height: 1.05; }
.nota-precios { display: inline-block; font-size: .9rem; background: #fff; padding: .2rem .7rem; border-radius: 999px; color: var(--acento-texto); font-weight: 700; }

.cursos__lista { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tabla { background: var(--superficie); border-radius: 999px 999px 40px 40px; padding: 2.75rem 1.4rem 1.6rem; text-align: center; border: 2px solid var(--linea); position: relative; }
.tabla::before { content: ""; position: absolute; left: 50%; top: 1rem; bottom: 1rem; width: 2px; margin-left: -1px; background: var(--linea); z-index: 0; }
.tabla > * { position: relative; background: var(--superficie); }
.tabla h3 { font: 400 1.15rem var(--fuente-titulos); margin-bottom: .5rem; }
.tabla p { margin: 0; color: var(--texto-suave); }
.tabla .tabla__precio { margin-top: 1rem; font: 400 1.4rem var(--fuente-titulos); color: var(--acento-texto); display: inline-block; padding: 0 .4rem; }
.tabla:nth-child(2) { border-color: var(--acento); }

.escuela { background: var(--ola); color: #fff; }
.escuela__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 3rem; align-items: center; }
.incluye { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.incluye li { background: var(--ola-2); border: 1px solid #2A7A8C; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; }

.fotos__rejilla { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.fotos__rejilla img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.fotos .resenas-hueco, .resenas .resenas-hueco { margin-top: 1.25rem; }

.resenas { background: var(--superficie); }
.resenas__nota-google { font-weight: 700; color: var(--acento-texto); }
.resenas__lista { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.resena { background: var(--arena); border-radius: 20px; padding: 1.25rem 1.4rem; }
.resena blockquote { margin: 0; }
.resena__autor { font-weight: 700; margin: 0; }

.playa__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.direccion { font-weight: 700; font-size: 1.1rem; }
.horario { margin: 1rem 0; }
.horario div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--linea); }
.horario dt { font-weight: 700; }
.horario dd { margin: 0; color: var(--texto-suave); }
.mapa { border-radius: 24px; }

.preguntas { background: var(--superficie); }
.preguntas__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 3rem; }
.faq__item { background: var(--arena); border-radius: 18px; margin-bottom: .6rem; padding: 0 1.25rem; }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; position: relative; font-weight: 700; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: .2rem; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2.5px solid var(--acento-texto); border-bottom: 2.5px solid var(--acento-texto); transform: rotate(45deg); transition: transform var(--medio) var(--curva); }
.faq__item[open] summary::after { transform: translateY(4px) rotate(225deg); }
.faq__item p { color: var(--texto-suave); }

.reserva { background: var(--acento); color: var(--sobre-acento); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.reserva__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.reserva p { max-width: 36ch; font-size: 1.1rem; }
.reserva a { color: inherit; text-underline-offset: 4px; }
.reserva__tel { font: 400 clamp(1.7rem, 4vw, 2.3rem) var(--fuente-titulos); margin-top: 1.5rem; }
.reserva__form { background: var(--superficie); border-radius: 24px; padding: clamp(1.25rem, 4vw, 2rem); }
.reserva__form .boton { width: 100%; background: var(--ola); color: #fff; }
.wa-form input, .wa-form select, .wa-form textarea { border-radius: 14px; }

.pie { background: var(--ola); color: #9FC8CF; padding: 2rem 0; font-size: .95rem; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.pie p { margin: 0; }
.pie strong { color: #fff; }
.pie-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pie-legal a { color: #E2F2F4; text-underline-offset: 3px; }

.fijo-movil a { border-radius: 999px; }
.fijo-movil__llamar { background: var(--ola); color: #fff; }
.fijo-movil__wa { background: var(--acento); color: var(--sobre-acento); }
.pagina-legal { background: var(--superficie); }

@media (max-width: 64rem) { .cursos__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 60rem) {
  .portada__rejilla, .escuela__rejilla, .playa__rejilla, .preguntas__rejilla, .reserva__rejilla { grid-template-columns: minmax(0, 1fr); }
  .mareas { max-width: 26rem; }
}
@media (max-width: 40rem) {
  .cursos__lista { grid-template-columns: minmax(0, 1fr); }
  .horario div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .portada__acciones .boton { width: 100%; }
}
@media (hover: hover) and (pointer: fine) {
  .boton--principal:hover { background: color-mix(in srgb, var(--acento) 85%, #fff); }
  .boton--linea:hover { border-color: #fff; }
  .boton--secundario:hover { background: var(--ola); color: #fff; }
  .menu a:hover { color: #fff; }
  .menu .menu__boton:hover { background: color-mix(in srgb, var(--acento) 85%, #fff); color: var(--sobre-acento); }
  .faq__item summary:hover { color: var(--acento-texto); }
  .reserva__form .boton:hover { background: var(--ola-2); }
}
