/* Public site pages (resources/views/site/page.blade.php). Colors come from the
   palette (--background, --surface, --text, --accent; --on-accent is the
   readable text on the accent and --accent-text the accent as text on the
   background), fonts from the chosen pair (--font-title, --font-body). Each
   design adjusts the base under body.design-{slug}. */

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font: 400 1.0625rem/1.7 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }

h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }

h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem; }

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

a { color: var(--accent-text); }

.muted { opacity: 0.7; font-size: 0.9375rem; }

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 0.75rem;
}

.lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); opacity: 0.85; max-width: 36rem; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }

.button-outline { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 20%, transparent); }

.button-outline:hover { border-color: var(--accent); box-shadow: none; }

.button-small { min-height: 2.5rem; padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--background) 85%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.nav-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    margin-right: auto;
}

.nav-brand img { max-height: 2.5rem; width: auto; }

.nav-links { display: none; gap: 1.75rem; }

.nav-links a, .nav-mobile nav a { color: var(--text); text-decoration: none; font-size: 0.9375rem; opacity: 0.8; }

.nav-links a:hover { opacity: 1; color: var(--accent-text); }

.nav-mobile summary { list-style: none; cursor: pointer; display: flex; padding: 0.25rem; }

.nav-mobile summary::-webkit-details-marker { display: none; }

.nav-mobile nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--background);
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.nav-mobile nav a { padding: 0.6rem 0; }

@media (min-width: 900px) {
    .nav-links { display: flex; }
    .nav-mobile { display: none; }
}

/* Hero */
.hero {
    min-height: min(52rem, 88svh);
    display: flex;
    align-items: center;
    padding: 6rem 1.5rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-inner { position: relative; max-width: 76rem; width: 100%; margin: 0 auto; }

.hero h1 { max-width: 14ch; }

.hero.with-photo { color: #fff; }

.hero.with-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.2));
}

.hero.with-photo .eyebrow { color: #fff; opacity: 0.85; }

.hero.with-photo .button-outline { color: #fff; border-color: rgb(255 255 255 / 0.6); }

/* Blocks */
.block { max-width: 76rem; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) 1.5rem; }

.block.narrow { max-width: 46rem; text-align: center; }

.block-head { max-width: 40rem; margin-bottom: 2.5rem; }

.split { display: grid; gap: 3rem; align-items: center; }

.split-media .photo { width: 100%; border-radius: 1.25rem; object-fit: cover; max-height: 34rem; }

@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .split.side-left .split-media { order: -1; }
}

.display { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1; }

.animation-block { min-height: min(40rem, 75svh); }

.animation-block .split-media { color: var(--accent); }

/* Cards (products, places) */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }

.card {
    background: var(--surface);
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.card-body { padding: 1.5rem; }

.card .price { color: var(--accent-text); font-weight: 700; margin-bottom: 0.5rem; }

.card p:last-child { margin-bottom: 0; }

.card-link { font-weight: 600; text-decoration: none; font-size: 0.9375rem; }

/* Gallery */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }

.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.75rem; }

/* Schedule */
.schedule { margin: 1.5rem auto; max-width: 28rem; text-align: left; }

.schedule div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}

.schedule dt { font-weight: 600; }

.schedule dd { margin: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }

.contact-list a, .contact-list > li > span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border-radius: 1rem;
    color: var(--text);
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.contact-list a:hover { border-color: var(--accent); }

.contact-list .icon { color: var(--accent-text); flex: none; }

/* Social */
.social-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

.social-links a {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.social-links a:hover { color: var(--accent-text); border-color: var(--accent); }

/* Footer */
.footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
    border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
}

.footer p { margin: 0; }

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.2);
}

.whatsapp-float .icon { width: 1.75rem; height: 1.75rem; }

/* Animations (public/site/animation.js) */
.animation svg { width: 100%; height: auto; max-height: 75svh; display: block; }

.animation svg :is(path, line, polyline, polygon, circle, rect, ellipse) {
    fill: none;
    stroke: currentColor;
    vector-effect: non-scaling-stroke;
}

/* Design: Técnico - square-ish edges, a blueprint grid behind the art. */
.design-technical .button { border-radius: 0.5rem; }

.design-technical .card, .design-technical .contact-list a, .design-technical .contact-list > li > span { border-radius: 0.75rem; }

.design-technical h1, .design-technical h2 { text-transform: uppercase; letter-spacing: -0.01em; }

.design-technical .animation-block .split-media {
    background-image:
        linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
    background-size: 2rem 2rem;
    border-radius: 0.75rem;
}

/* Design: Elegante - serif titles, centered heads, softer weights. */
.design-elegant h1, .design-elegant h2, .design-elegant h3 { font-weight: 500; letter-spacing: 0; }

.design-elegant .block-head { margin-left: auto; margin-right: auto; text-align: center; }

.design-elegant .eyebrow { letter-spacing: 0.3em; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}

/* Light/dark switch (sites in lightDark mode): shows the sun in dark mode, the moon in light. */
.theme-switch {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--text) 15%, transparent);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.theme-switch .icon-sun { display: none; }

:root[data-theme="dark"] .theme-switch .icon-sun { display: block; }

:root[data-theme="dark"] .theme-switch .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-switch .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-switch .icon-moon { display: none; }
}

.theme-switch-float {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 30;
}

.theme-switch-float .theme-switch { background: var(--surface); }
