/* Las Toninas — escuela de surf */
:root {
  --ink: #141414;
  --ink-2: #2b2b2b;
  --sky: #9DC2EE;
  --sky-soft: #E6F0FB;
  --sea: #1E5F8C;
  --sand: #F4EBDD;
  --sand-2: #EADFCB;
  --paper: #FFFDF9;
  --muted: #5d5a55;
  --line: #E6DED0;
  --radius: 18px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; margin-top: 2.4rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 600 1rem/1 var(--font); padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .lang button:focus-visible, .wa-btn:focus-visible, summary:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--sea); }
.btn-sky { background: var(--sky); color: var(--ink); }
.btn-sky:hover { background: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; width: 100%; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .65rem 1.1rem; font-size: .92rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,249,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand img { height: 38px; width: auto; }
.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--sky); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.lang { display: flex; background: var(--sand); border-radius: 999px; padding: 3px; }
.lang button { font: 600 .78rem/1 var(--font); border: 0; background: transparent; color: var(--muted); padding: .45rem .6rem; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* Hero */
.hero { background: var(--sky-soft); padding: 64px 0 72px; overflow: hidden; }
.eyebrow { font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; color: var(--sea); }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.4rem 3rem; margin-top: 1.4rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40ch; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-outline-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.carousel { position: relative; margin-top: 44px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--sky); touch-action: pan-y; }
.car-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.car-slide { flex: 0 0 100%; height: 100%; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.15); transition: background .15s ease; }
.car-arrow:hover { background: #fff; }
.car-prev { left: 16px; } .car-next { right: 16px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.car-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: rgba(20,20,20,.25); cursor: pointer; transition: width .2s ease, background .2s ease; }
.car-dots button[aria-current="true"] { width: 26px; background: var(--ink); }

/* Secciones */
.section { padding: 100px 0; }
.section-sky { background: var(--sky-soft); }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: #fff; }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2, .about-grid h2, .where-grid h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.1rem; margin: .8rem 0 0; }
.section-head.on-dark p:not(.kicker) { color: #cfcac2; }
.kicker { font-family: var(--hand); font-size: 1.7rem; color: var(--sea); margin: 0 0 .3rem; line-height: 1; }
.section-ink .kicker { color: var(--sky); }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; height: auto; }
.hand-note { position: absolute; right: -10px; bottom: -22px; background: var(--sky); font-family: var(--hand); font-size: 2rem; padding: .2rem 1.1rem; border-radius: 999px; transform: rotate(-6deg); }
.about-grid p:not(.kicker) { color: var(--muted); margin: 1rem 0 0; }
.stats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.stats strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.stats span { color: var(--muted); font-size: .92rem; }

/* Clases */
.class-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.class-card { background: #fff; border-radius: var(--radius); padding: 2rem 1.8rem; }
.class-card .num { font-family: var(--hand); font-size: 2.2rem; color: var(--sea); line-height: 1; }
.class-card h3 { font-size: 1.45rem; margin: .6rem 0 .5rem; }
.class-card p { color: var(--muted); margin: 0; }
.gift { text-align: center; margin: 1.4rem 0 0; font-family: var(--hand); font-size: 1.6rem; }

/* Instructores */
.inst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.inst-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.inst-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.inst-grid .inst-big { grid-column: 1 / -1; }
.inst-grid .inst-big img { aspect-ratio: 21 / 9; object-position: 45% 55%; }
@media (max-width: 860px) { .inst-grid { grid-template-columns: 1fr; } .inst-grid .inst-big img { aspect-ratio: 4 / 3; } }

/* Tablas */
.board-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.board-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; }
.board-img { height: 300px; overflow: hidden; width: 100%; background: var(--sky-soft); border-radius: 12px; display: grid; place-items: center; padding: 18px; margin-bottom: 1.3rem; }
.board-img img { height: 100%; max-width: 100%; width: auto; min-height: 0; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.12)); }
.board-card h3 { font-size: 1.5rem; }
.board-card .size { font-family: var(--hand); font-size: 1.5rem; color: var(--sea); margin: .1rem 0 .4rem; line-height: 1.1; }
.board-card p:not(.size) { color: var(--muted); margin: 0 0 1.4rem; flex: 1; }
.board-card .size { margin-bottom: 1.2rem; }
.board-card .btn { margin-top: auto; padding: .85rem .7rem; font-size: .88rem; white-space: nowrap; }
.board-card h3 { font-size: 1.4rem; }
.note { text-align: center; color: var(--muted); font-size: .95rem; margin: 1.8rem 0 0; }

/* Ubicación */
.where-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.where-grid > div > p:not(.kicker) { color: var(--muted); margin: 1rem 0 0; }
.info { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.info li { background: var(--paper); border-radius: 12px; padding: .9rem 1.1rem; display: grid; }
.info span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq { display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 1.1rem 3rem 1.1rem 1.3rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.contact-card { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; background: var(--ink-2); border-radius: var(--radius); padding: 1.6rem; transition: background .15s ease, transform .15s ease; }
.contact-card:hover { background: var(--sea); transform: translateY(-3px); }
.contact-card .ico { width: 30px; height: 30px; color: var(--sky); margin-bottom: .5rem; }
.c-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #bdb8af; }
.c-value { font-weight: 600; font-size: 1.05rem; word-break: break-word; }

/* Footer */
.site-footer { background: var(--sand); padding: 56px 0 100px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 1rem 3rem; align-items: center; }
.footer-logo { height: 54px; width: auto; }
.footer-info p { margin: .15rem 0; color: var(--muted); }
.footer-info a, .legal a { color: var(--ink); font-weight: 500; }
.seo-block { grid-column: 1 / -1; border-top: 1px solid var(--sand-2); padding-top: 1.4rem; }
.seo-block h2 { font-size: 1.05rem; margin: 0 0 .5rem; letter-spacing: 0; }
.seo-block p { font-size: .9rem; color: var(--muted); margin: .35rem 0; max-width: 90ch; }
.seo-block strong { color: var(--ink); font-weight: 600; }
.legal { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); margin: .6rem 0 0; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.wa-btn { width: 62px; height: 62px; border-radius: 50%; border: 0; background: #25D366; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.wa-btn svg { width: 34px; height: 34px; }
.wa-panel { background: #fff; border-radius: 16px; padding: 1rem; box-shadow: 0 12px 34px rgba(0,0,0,.2); min-width: 230px; display: grid; gap: .5rem; }
.wa-panel[hidden] { display: none; }
.wa-panel p { margin: 0 0 .2rem; font-weight: 600; font-size: .95rem; }
.wa-panel a { text-decoration: none; font-weight: 600; background: var(--sand); padding: .7rem 1rem; border-radius: 10px; }
.wa-panel a:hover { background: var(--sky); }

/* Responsive */
@media (max-width: 1020px) {
  .board-cards { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
  .main-nav { gap: 1rem; } .main-nav a { font-size: .88rem; }
  .hide-mobile { display: none; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.05rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
  .hero { padding: 36px 0 48px; }
  .carousel { margin-top: 28px; aspect-ratio: 4 / 3.6; }
  .about-grid, .where-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .class-cards, .board-cards { grid-template-columns: 1fr; }
  .board-cards { max-width: 460px; margin-inline: auto; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .brand img { height: 30px; }
  .lang button { padding: .4rem .45rem; }
  .hero-ctas .btn { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hand-note { right: 8px; }
  .board-img { height: 240px; }
}

/* ---------- Celular: ajustes finos ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { height: 62px; }
  .main-nav { top: 62px; }
  html { scroll-padding-top: 70px; }
  .hero { padding: 26px 0 36px; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; margin-bottom: .7rem; }
  .hero h1 { font-size: 2.35rem; line-height: 1.04; }
  .hero-row { margin-top: 1rem; gap: 1.2rem; }
  .lead { font-size: 1rem; }
  .hero-ctas { width: 100%; display: grid; grid-template-columns: 1fr; gap: .6rem; }
  .hero-ctas .btn { width: 100%; padding: .9rem .6rem; font-size: .92rem; }
  .carousel { margin-top: 22px; aspect-ratio: 4 / 4.4; border-radius: 16px; }
  .car-slide img { object-position: var(--pos-m, 50% 50%); }
  .car-arrow { width: 38px; height: 38px; font-size: 1.6rem; }
  .car-prev { left: 10px; } .car-next { right: 10px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 2rem; }
  .section-head h2, .where-grid h2 { font-size: 1.9rem; }
  .kicker { font-size: 1.45rem; }
  .class-cards { gap: .8rem; }
  .class-card { padding: 1.3rem 1.3rem; display: grid; grid-template-columns: 44px 1fr; column-gap: .9rem; }
  .class-card .num { font-size: 1.8rem; grid-row: span 2; }
  .class-card h3 { font-size: 1.2rem; margin: .1rem 0 .3rem; }
  .center { margin-top: 1.6rem; }
  .board-cards { gap: .9rem; }
  .board-card { padding: 1rem; display: grid; grid-template-columns: 110px 1fr; column-gap: 1rem; text-align: left; align-items: center; }
  .board-img { height: 150px; margin: 0; grid-row: span 2; padding: 10px; }
  .board-card h3 { align-self: end; }
  .board-card .size { align-self: start; }
  .board-card h3 { font-size: 1.25rem; }
  .board-card .size { font-size: 1.3rem; margin: 0 0 .2rem; }
  .board-card p:not(.size) { font-size: .92rem; margin: 0 0 .8rem; }
  .board-card p:not(.size) { margin-bottom: 0; }
  .board-card .size { margin-bottom: 0; }
  .board-card .btn { grid-column: 1 / -1; margin-top: .9rem; padding: .75rem .8rem; font-size: .9rem; }
  .where-grid { gap: 1.6rem; }
  .info { margin: 1.2rem 0 1.4rem; }
  .inst-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .inst-grid .inst-big img, .inst-grid img { aspect-ratio: 1 / 1; }
  .inst-grid .inst-big img { aspect-ratio: 16 / 10; }
  .contact-grid { gap: .7rem; }
  .contact-card { padding: 1.1rem 1.2rem; display: grid; grid-template-columns: 34px 1fr; column-gap: .8rem; align-items: center; }
  .contact-card .ico { margin: 0; grid-row: span 2; width: 26px; height: 26px; }
  .wa-float { right: 14px; bottom: 14px; }
  .wa-btn { width: 54px; height: 54px; }
  .wa-btn svg { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) { .car-track { transition: none; } * { transition: none !important; scroll-behavior: auto !important; } }
