/* Tema chiringuito — paleta playa */
:root {
    --color-primary: #f4a261;   /* arena */
    --color-accent:  #2a9d8f;   /* mar */
    --color-bg:      #fffaf0;
    --color-text:    #264653;
    --color-cta:     #e76f51;
}

* { box-sizing: border-box; }

body.page-chiringuito {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f4a261;
    color: var(--color-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

.hero-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.hero--playa {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20vh;
    text-align: center;
    overflow: hidden;
    background: none;
}

.hero--playa h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero--playa p {
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0 0 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

#escena-playa {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__cta {
    position: absolute;
    bottom: 32%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    white-space: nowrap;
}

.hero__scroll-down {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.80);
    padding: 8px;
    z-index: 2;
    animation: scroll-bounce 2s ease-in-out infinite;
    line-height: 0;
}

.hero__scroll-down:hover {
    color: #fff;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.hero--playa h1,
.hero--playa p,
.hero--playa .cta {
    position: relative;
    z-index: 1;
}

.cta--primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 2rem;
    background: rgba(255, 250, 240, 0.95);
    color: #264653;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.cta--primary:hover,
.cta--primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    background: #fff;
}

.footer-chiringuito {
    position: relative;
    padding: 3rem 1rem 2rem;
    text-align: center;
    color: #5a3e28;
    background: linear-gradient(180deg, #e6914a 0%, #f4a261 40%, #f8c08a 100%);
    /* Granulado de arena sutil */
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(180,120,40,0.12) 0%, transparent 60%),
        linear-gradient(180deg, #e6914a 0%, #f4a261 40%, #f8c08a 100%);
}

/* La transición visual entre la sección CTA final y el footer ya es suave;
   no necesitamos la ola SVG aquí. */

.footer-chiringuito a {
    color: #264653;
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 400;
}

.footer-chiringuito a:hover {
    text-decoration: underline;
    color: #e76f51;
}

.footer-chiringuito__powered {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 600;
}

.footer-chiringuito__powered a {
    font-weight: 600;
    margin: 0;
}

.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.legal h1 {
    color: var(--color-text);
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.legal th,
.legal td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: left;
}

.form-anonima {
    max-width: 560px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.form-anonima label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-anonima input,
.form-anonima textarea {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
}

.form-anonima textarea {
    min-height: 100px;
    resize: vertical;
}

/* ─── Landing sections ─────────────────────────────────────────────────────── */

.landing-section {
    padding: 4rem 1.5rem;
    text-align: center;
}

.landing-section__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.landing-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 1rem;
    color: var(--color-text);
}

.landing-section__lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    color: #3a5a64;
}

/* ¿Qué es? — arranca en el mismo tono que el fondo de la arena del canvas (#e6914a → blanco roto) */
.section-que-es {
    background: linear-gradient(180deg, #e6914a 0%, #f4a261 15%, #f8c08a 40%, #fffaf0 100%);
}

.que-es__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.que-es__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.que-es__icon {
    width: 64px;
    height: 64px;
    color: var(--color-accent);
}

.que-es__feature h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--color-text);
}

.que-es__feature p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a6772;
    max-width: 260px;
}

/* ¿Cómo funciona? — fondo blanco roto */
.section-como-funciona {
    background: #fffaf0;
    position: relative;
}

.section-como-funciona::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,20 300,5 450,12 C600,20 750,2 900,10 C1050,20 1150,5 1200,12 L1200,0 Z' fill='%23fffaf0'/%3E%3C/svg%3E") no-repeat center top / 100% 100%;
}

.como-funciona__pasos {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.paso {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(38, 70, 83, 0.08);
    border: 1px solid rgba(244, 162, 97, 0.18);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.paso:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(38, 70, 83, 0.12);
}

.paso__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--color-cta);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 3px 10px rgba(231, 111, 81, 0.3);
}

.paso__icon {
    width: 56px;
    height: 56px;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.paso h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--color-text);
}

.paso p {
    margin: 0;
    font-size: 0.95rem;
    color: #4a6772;
}

/* CTA final — termina en el mismo tono que arranca el footer (#e6914a) */
.section-cta-final {
    background: linear-gradient(180deg, #fffaf0 0%, #f4a261 70%, #e6914a 100%);
    padding: 4rem 1.5rem 5rem;
}

.section-cta-final h2 {
    color: var(--color-text);
}

.section-cta-final__lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 560px;
    margin: 0 auto 2rem;
    color: #3a5a64;
}

@media (max-width: 600px) {
    .landing-section { padding: 3rem 1.25rem; }
    .que-es__features { gap: 1.5rem; }
    .como-funciona__pasos { gap: 1rem; }
}
