/* One-page site (index.php).
   Palette, type and textures follow the previous site (old_site/css/puntasur.css). */

@font-face {
    font-family: "Geared Slab";
    src: url("/webfont/gearedslab-bold-webfont.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geared Slab";
    src: url("/webfont/gearedslab-webfont.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #005176;
    --ink-deep: #063c57;
    --sand: #f1be65;
    --mint: #ecf7f7;
    --slab: "Geared Slab", Rockwell, "Roboto Slab", Georgia, serif;
    --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 68rem;
    --gutter: 1.25rem;
    --space: clamp(4.5rem, 10vw, 8rem);
    --card-pad: clamp(2.5rem, 6vw, 4.5rem);
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
figure,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.info :focus-visible {
    outline-color: var(--sand);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: clamp(5rem, 11vw, 8rem) var(--gutter) var(--space);
    background:
        radial-gradient(circle at 8% 10%, rgba(241, 190, 101, 0.24), transparent 35%),
        radial-gradient(circle at 90% 6%, rgba(31, 172, 209, 0.22), transparent 40%),
        #fff;
}

.hero-inner {
    display: grid;
    gap: clamp(1.75rem, 4vw, 4rem);
    justify-items: center;
    max-width: var(--wrap);
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    width: min(62vw, 20rem);
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.12));
}

h1 {
    font-family: var(--slab);
    font-weight: 700;
    font-size: clamp(2.1rem, 5.4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-wrap: balance;
}

.tagline {
    max-width: 40ch;
    margin: 1.25rem auto 1.5rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    text-wrap: pretty;
}

.since {
    font-family: var(--slab);
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

@media (min-width: 60rem) {
    .hero-inner {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        align-items: center;
        justify-items: start;
        text-align: left;
    }

    .hero-logo {
        justify-self: center;
        width: 100%;
        max-width: 24rem;
    }

    .tagline {
        margin-left: 0;
    }
}

.lang-switch {
    position: absolute;
    top: 1rem;
    right: var(--gutter);
    display: flex;
    gap: 0.35rem;
}

.lang-switch a {
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(0, 81, 118, 0.25);
    border-radius: 999px;
    font-family: var(--slab);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.lang-switch [aria-current="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* ---------- Info card: hours, location, contact ---------- */

.info {
    flex: 1 0 auto;
    padding: 0 var(--gutter) var(--space);
}

.info-inner {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-areas:
        "hours"
        "where"
        "contact"
        "photo";
    gap: 2.75rem 3rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: var(--card-pad) clamp(1.5rem, 5vw, 4.5rem);
    border-radius: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(160deg, var(--ink), var(--ink-deep));
    box-shadow: 0 2rem 4rem -1.5rem rgba(0, 45, 68, 0.5);
    color: var(--mint);
}

/* The original line-art waves, faded into the card's corner. */
.info-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: url("/imagenes/texturas/textura5.png") no-repeat right bottom / min(26rem, 60%) auto;
    opacity: 0.3;
}

.hours {
    grid-area: hours;
}

.where {
    grid-area: where;
}

.contact {
    grid-area: contact;
}

.polaroid {
    grid-area: photo;
    justify-self: center;
    width: min(80%, 17rem);
    transform: rotate(4deg);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

@media (min-width: 40rem) {
    .info-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "hours   photo"
            "where   photo"
            "contact photo";
    }

    /* The photo is pinned over the card's top edge. */
    .polaroid {
        align-self: start;
        width: min(100%, 20rem);
        margin-top: calc(-1 * var(--card-pad) - 2.5rem);
    }
}

/* Hours lead the card as a headline row; location and contact sit side by side below. */
@media (min-width: 64rem) {
    .info-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr);
        grid-template-areas:
            "hours hours   photo"
            "where contact photo";
    }
}

.block h2 {
    margin-bottom: 1rem;
    font-family: var(--slab);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sand);
}

.days {
    font-family: var(--slab);
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.time {
    margin-top: 0.3rem;
    font-family: var(--slab);
    font-weight: 700;
    font-size: clamp(2.75rem, 5vw, 3rem);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.time time {
    white-space: nowrap;
}

@media (min-width: 64rem) {
    .time {
        font-size: clamp(3rem, 4.5vw, 4rem);
    }
}

address {
    margin-bottom: 1.5rem;
    font-style: normal;
    font-size: 1.05rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(241, 190, 101, 0.65);
    border-radius: 999px;
    background: linear-gradient(135deg, #f6c870, #f1be65 55%, #ddac55);
    color: #093d56;
    font-family: var(--slab);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.button svg {
    width: 0.95em;
    height: 0.95em;
    fill: currentColor;
}

.contact-list li + li {
    margin-top: 0.5rem;
}

.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--sand);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-list svg {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    fill: var(--sand);
}

.social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social a {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(236, 247, 247, 0.35);
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social a:hover {
    background: var(--sand);
    border-color: var(--sand);
    color: var(--ink);
}

.social svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* ---------- Footer: the original site's waves ---------- */

.site-footer {
    padding: 0 var(--gutter) 9rem;
    background: url("/imagenes/texturas/textura1.png") repeat-x center bottom;
    text-align: center;
}

.site-footer p {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
