/* ──────────────────────────────────────────
   Heladitos los hermanos — Custom Styles
   Bold editorial · burgundy + blush
   ────────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: #7B2D3B;
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-weight: 500;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 251, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.1);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav__brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #7B2D3B;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.nav__brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #7B2D3B;
    letter-spacing: -0.01em;
}

.nav__menu {
    display: none;
}

@media (min-width: 768px) {
    .nav__menu {
        display: block;
    }
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3D2B2B;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.01em;
}

.nav__link:hover {
    color: #7B2D3B;
    background: rgba(123, 45, 59, 0.06);
}

.nav__cta {
    margin-left: 8px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #7B2D3B;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}

.nav__cta:hover {
    background: #9b1630;
    transform: translateY(-1px);
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin: -8px;
}

@media (min-width: 768px) {
    .nav__toggle {
        display: none;
    }
}

.nav__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #7B2D3B;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav__menu.mobile-open {
    display: block;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    padding: 1rem 0 1.5rem;
    box-shadow: 0 20px 40px rgba(123, 45, 59, 0.1);
}

.nav__menu.mobile-open .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.nav__menu.mobile-open .nav__link {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 0;
}

.nav__menu.mobile-open .nav__link:hover {
    background: rgba(123, 45, 59, 0.06);
}

.nav__menu.mobile-open .nav__cta {
    margin: 0.75rem 1.5rem;
    text-align: center;
    display: block;
    border-radius: 10px;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1A0E0E;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 14, 14, 0.55) 0%,
        rgba(123, 45, 59, 0.4) 50%,
        rgba(26, 14, 14, 0.75) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    max-width: 860px;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 251, 247, 0.7);
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero__accent {
    font-style: italic;
    font-weight: 500;
    color: #ffc4b0;
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 251, 247, 0.8);
    max-width: 540px;
    margin: 0 auto 2.5rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 251, 247, 0.5);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,251,247,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn--primary {
    background: #7B2D3B;
    color: #fff;
    border-color: #7B2D3B;
}

.btn--primary:hover {
    background: #9b1630;
    border-color: #9b1630;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 45, 59, 0.35);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 251, 247, 0.4);
}

.btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 251, 247, 0.1);
    transform: translateY(-2px);
}

.btn--light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 251, 247, 0.4);
}

.btn--light:hover {
    border-color: #fff;
    background: rgba(255, 251, 247, 0.1);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: #7B2D3B;
    border-color: #7B2D3B;
}

.btn--outline:hover {
    background: #7B2D3B;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 45, 59, 0.3);
}

.btn--lg {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #7B2D3B;
    opacity: 0.4;
}

/* ── Section Shared ── */
.section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7B2D3B;
    margin-bottom: 1rem;
}

.section-label--light {
    color: rgba(255, 251, 247, 0.6);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #2A1A1A;
    margin-bottom: 1.25rem;
}

.section-title--light {
    color: #fff;
}

.section-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
    color: #5c1a21;
    max-width: 560px;
}

.section-desc--light {
    color: rgba(255, 251, 247, 0.75);
    max-width: 480px;
    margin: 0 auto;
}

/* ── Gelato Section ── */
.gelato {
    background: #FFFBF7;
}

.gelato__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.gelato__header .section-desc {
    margin: 0 auto;
}

.gelato__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 4rem;
}

@media (min-width: 768px) {
    .gelato__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

.gelato__card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gelato__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(123, 45, 59, 0.15);
}

.gelato__card-img {
    aspect-ratio: 4/5;
    overflow: hidden;
}

.gelato__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gelato__card:hover .gelato__card-img img {
    transform: scale(1.06);
}

.gelato__card-body {
    padding: 1.25rem;
}

.gelato__card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2A1A1A;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.gelato__card-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #7B2D3B;
    opacity: 0.75;
}

.gelato__cta {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.gelato__cta-text {
    font-size: 1rem;
    color: #5c1a21;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* ── Café Section ── */
.cafe {
    position: relative;
    overflow: hidden;
}

.cafe__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cafe__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cafe__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 14, 14, 0.88) 0%,
        rgba(123, 45, 59, 0.75) 100%
    );
}

.cafe__content {
    position: relative;
    z-index: 1;
}

.cafe__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 800px;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .cafe__grid {
        max-width: 900px;
        gap: 3rem;
    }
}

.cafe__item {
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 196, 176, 0.3);
    transition: border-color 0.3s;
}

.cafe__item:hover {
    border-left-color: #ffc4b0;
}

.cafe__item-num {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 196, 176, 0.4);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cafe__item-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.cafe__item-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 251, 247, 0.65);
}

/* ── About Section ── */
.about {
    background: #FFFBF7;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.about__media {
    position: relative;
}

.about__img-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.15);
}

.about__img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 7/9;
}

.about__img-accent {
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(123, 45, 59, 0.2);
    border: 4px solid #FFFBF7;
    max-width: 55%;
}

.about__img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/4;
}

@media (min-width: 900px) {
    .about__img-accent {
        right: -2rem;
        bottom: -2.5rem;
    }
}

.about__text .section-title {
    margin-top: 0.5rem;
}

.about__body {
    font-size: 1rem;
    line-height: 1.8;
    color: #5c1a21;
    margin-bottom: 1rem;
}

.about__stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(123, 45, 59, 0.12);
}

.about__stat {
    text-align: center;
}

.about__stat-num {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #7B2D3B;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.about__stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7B2D3B;
    opacity: 0.65;
}

.about__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(123, 45, 59, 0.15);
}

/* ── Visit Section ── */
.visit {
    background: #fff;
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

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

.visit__info .section-title {
    margin-top: 0.5rem;
}

.visit__details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.visit__detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.visit__icon {
    flex-shrink: 0;
    color: #7B2D3B;
    margin-top: 2px;
}

.visit__detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7B2D3B;
    opacity: 0.6;
    margin-bottom: 0.25rem;
}

.visit__detail-value {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    color: #2A1A1A;
    font-weight: 500;
}

.visit__link {
    color: #7B2D3B;
    font-weight: 600;
    transition: color 0.2s;
}

.visit__link:hover {
    color: #9b1630;
    text-decoration: underline;
}

.visit__map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(123, 45, 59, 0.12);
    min-height: 400px;
}

/* ── CTA Section ── */
.cta {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
}

.cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 14, 14, 0.82) 0%,
        rgba(123, 45, 59, 0.7) 50%,
        rgba(26, 14, 14, 0.85) 100%
    );
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__content .section-desc {
    margin: 0 auto 2.5rem;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ── Footer ── */
.footer {
    background: #1A0E0E;
    color: rgba(255, 251, 247, 0.6);
    padding: 4rem 0 2rem;
}

.footer__top {
    text-align: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 251, 247, 0.08);
    margin-bottom: 2.5rem;
}

.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.footer__brand .nav__brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.footer__brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 251, 247, 0.45);
}

.footer__middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 251, 247, 0.08);
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer__middle {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

@media (min-width: 640px) {
    .footer__contact {
        align-items: flex-start;
    }
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 196, 176, 0.8);
    transition: color 0.2s;
}

.footer__link:hover {
    color: #ffc4b0;
}

.footer__addr {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
}

@media (min-width: 640px) {
    .footer__links {
        gap: 0.25rem 1.5rem;
    }
}

.footer__links li {
    margin: 0;
}

.footer__links a {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: rgba(255, 251, 247, 0.5);
    transition: color 0.2s;
}

.footer__links a:hover {
    color: rgba(255, 251, 247, 0.9);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 251, 247, 0.3);
}

/* ── Reveal Animations ── */
/* Default: always visible (no JS required) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Enhanced with JS / reduced motion off */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.35s; }
}

/* ── Selection ── */
::selection {
    background: rgba(123, 45, 59, 0.2);
    color: #2A1A1A;
}
