/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f5f0;
    color: #333;
}

.skip-link {
    background-color: #5f3e27;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    left: 12px;
    padding: 10px 14px;
    position: absolute;
    text-decoration: none;
    top: 12px;
    transform: translateY(-140%);
    transition: transform .2s ease;
    z-index: 1000;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
.burger:focus-visible,
.product-grid img:focus-visible {
    outline: 3px solid rgba(95, 62, 39, 0.65);
    outline-offset: 4px;
}

/* HERO */
.hero {
    background-color: #f8f5f0;
    color: #2f2a25;
    text-align: left;
}

.home-hero {
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 54px;
}

.hero-media {
    background-color: #211a15;
    min-height: 340px;
    overflow: hidden;
    position: relative;
}

.hero-media img {
    display: block;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.hero-content {
    align-content: center;
    background-color: #fffaf3;
    display: grid;
    min-height: 280px;
    padding: 34px 22px;
}

.hero-content h1 {
    color: #5f3e27;
    font-size: 2rem;
    line-height: 1.12;
    max-width: 540px;
}

.hero-content p {
    color: #4b4037;
    line-height: 1.65;
    margin: 14px 0 20px;
    max-width: 560px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c49a6c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.hero-content .btn {
    align-self: flex-start;
    font-size: 1.05rem;
    justify-self: center;
    margin-left: 0;
    padding: 12px 24px;
}

/* NAV */
body > nav {
    background-color: rgba(139, 94, 60, 0.82);
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(4px);
}

.brand {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0;
    text-decoration: none;
}

.menu-toggle {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.burger {
    position: relative;
    width: 40px;
    height: 30px;
    background: transparent;
    cursor: pointer;
    display: block;
}

.burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
    top: 0;
    transform-origin: left center;
}

.burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.menu-toggle:checked + .burger span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0;
    left: 5px;
}

.menu-toggle:checked + .burger span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
}

.menu-toggle:checked + .burger span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 28px;
    left: 5px;
}

.nav-links {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    width: 100%;
    background-color: rgba(139, 94, 60, 0.95);
    padding: 8px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.menu-toggle:checked ~ .nav-links {
    display: block;
}

.nav-links a {
    display: block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.12);
}

/* SECTIONS */
section {
    padding: 40px 20px;
    text-align: center;
}

h2 {
    color: #8b5e3c;
    margin-bottom: 20px;
}

.page-section > h1,
.about-text h1 {
    color: #8b5e3c;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.product-category-title {
    color: #5f3e27;
    font-size: 1.75rem;
    line-height: 1.15;
    margin-bottom: 26px;
    position: relative;
}

.product-grid + .product-category-title {
    margin-top: 58px;
}

.product-category-title::after {
    background-color: #c49a6c;
    content: "";
    display: block;
    height: 3px;
    margin: 12px auto 0;
    width: 72px;
}

.catalog-intro {
    color: #66584c;
    margin: -8px auto 28px;
    max-width: 520px;
}

.page-section,
.about-section {
    padding-top: 96px;
}

.about-section {
    text-align: left;
}

.about-content {
    align-items: center;
    display: grid;
    gap: 28px;
    margin: auto;
    max-width: 1040px;
}

.about-content img {
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(82, 55, 35, 0.12);
    display: block;
    height: 430px;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.about-text {
    margin: auto;
    max-width: 620px;
}

.about-text p {
    color: #4b4037;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    max-width: 300px;
    margin: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h3 {
    padding: 10px;
}

.product-link-card {
    color: #333;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-link-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}

.text-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    padding: 2rem;
    text-align: center;
}

.text-card h3 {
    color: #5f3e27;
    font-size: 1.6rem;
    margin: 0 0 .75rem;
    padding: 0;
}

.text-card p {
    color: #66584c;
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

.featured-product-grid {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.featured-product-grid .card {
    max-width: 700px;
}

.product-grid {
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: auto;
    max-width: 1180px;
}

.product-grid .card {
    border: 1px solid rgba(139, 94, 60, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(82, 55, 35, 0.1);
    display: flex;
    flex-direction: column;
    height: 320px;
    margin: 0;
    max-width: none;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100%;
}

.product-grid .card:hover {
    box-shadow: 0 14px 30px rgba(82, 55, 35, 0.17);
    transform: translateY(-4px);
}

.product-grid img {
    background: #f4eee4;
    display: block;
    cursor: pointer;
    flex: 0 0 230px;
    height: 230px;
    object-fit: contain;
    transition: flex-basis .25s ease, height .25s ease, transform .25s ease;
    width: 100%;
}

.product-grid .card:hover img {
    transform: scale(1.03);
}

.product-info {
    flex: 1;
    padding: 16px;
    transition: opacity .2s ease, padding .25s ease, transform .25s ease;
}

.product-info h3 {
    color: #2f2a25;
    font-size: 1.15rem;
    padding: 0;
}

.product-info p {
    color: #66584c;
    font-size: .95rem;
    line-height: 1.45;
    margin-top: 6px;
}

@media (hover: hover) and (pointer: fine) {
    .product-grid .card:hover img {
        flex-basis: 100%;
        height: 100%;
    }

    .product-grid .card:hover .product-info {
        opacity: 0;
        padding-bottom: 0;
        padding-top: 0;
        transform: translateY(8px);
    }
}

.image-lightbox {
    align-items: center;
    background: rgba(0,0,0,0.82);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 100;
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox img {
    border-radius: 10px;
    max-height: 86vh;
    max-width: 92vw;
    object-fit: contain;
}

.lightbox-close {
    background: white;
    border: 0;
    border-radius: 5px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 14px;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* UBICACION */
.location-section {
    background-color: #f8f5f0;
}

.location-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    margin: auto;
    max-width: 760px;
    overflow: hidden;
    padding: 20px;
}

.location-card p {
    margin-bottom: 8px;
}

.location-card iframe {
    display: block;
    margin-top: 18px;
}

.contact-section {
    color: #2f2a25;
    font-family: "Inter", Arial, sans-serif;
    padding-left: 18px;
    padding-right: 18px;
}

.contact-header {
    margin: 0 auto 30px;
    max-width: 680px;
}

.contact-eyebrow,
.contact-label {
    color: #8b5e3c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-header h1,
.contact-header h2 {
    color: #5f3e27;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    line-height: 1;
    margin: 8px 0 14px;
}

.contact-header p:not(.contact-eyebrow) {
    color: #66584c;
    font-size: 1.03rem;
    line-height: 1.7;
    margin: auto;
    max-width: 560px;
}

.contact-card {
    background: #fffaf3;
    border: 1px solid rgba(139, 94, 60, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(82, 55, 35, 0.12);
    display: grid;
    gap: 18px;
    margin: auto;
    max-width: 1080px;
    overflow: hidden;
    padding: 18px;
    text-align: left;
}

.contact-details {
    display: grid;
    gap: 14px;
}

.contact-item {
    background: rgba(248, 245, 240, 0.72);
    border: 1px solid rgba(196, 154, 108, 0.2);
    border-radius: 8px;
    padding: 18px;
}

.contact-item p {
    color: #3f352d;
    font-size: 1.05rem;
    line-height: 1.55;
    margin-top: 8px;
}

.contact-address p:first-of-type {
    color: #2f2a25;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1.15;
}

.contact-item a {
    color: #5f3e27;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-item a:hover {
    color: #8b5e3c;
}

.horario.contact-item {
    display: grid;
    gap: 12px;
}

.horario.contact-item p {
    border-top: 1px solid rgba(139, 94, 60, 0.14);
    display: grid;
    gap: 4px;
    margin: 0;
    padding-top: 12px;
}

.horario.contact-item .contact-label + p {
    border-top: 0;
    padding-top: 0;
}

.horario.contact-item strong {
    color: #5f3e27;
    font-size: .92rem;
}

.horario.contact-item span:not(.contact-label) {
    color: #3f352d;
}

.contact-card iframe {
    height: 320px;
    margin-top: 0;
}

/* MAPA */
iframe {
    width: 100%;
    height: 250px;
    border: 0;
    margin-top: 20px;
    border-radius: 10px;
}

.map-consent {
    align-items: center;
    background: #f4eee4;
    border: 1px solid rgba(139, 94, 60, 0.16);
    border-radius: 10px;
    display: grid;
    min-height: 250px;
    margin-top: 20px;
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.location-card .map-consent {
    margin-top: 18px;
}

.contact-card .map-consent {
    margin-top: 0;
    min-height: 320px;
}

.contact-card .map-consent.is-loaded {
    height: 320px;
}

.map-consent.is-loaded {
    background: transparent;
    border: 0;
    display: block;
    height: 250px;
}

.map-consent iframe {
    border: 0;
    border-radius: 10px;
    display: block;
    height: 100%;
    margin: 0;
    width: 100%;
}

.map-consent-content {
    margin: auto;
    max-width: 430px;
    padding: 24px;
}

.map-consent p {
    color: #4b4037;
    line-height: 1.55;
    margin-bottom: 14px;
}

.map-consent-button,
.cookie-button {
    background: #5f3e27;
    border: 1px solid #5f3e27;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
    padding: 10px 14px;
}

.map-consent-button:hover,
.cookie-button:hover,
.cookie-settings:hover {
    filter: brightness(1.08);
}

.map-consent-link {
    color: #5f3e27;
    display: inline-block;
    font-weight: bold;
    margin-left: 12px;
    text-decoration: underline;
}

/* FOOTER */
footer {
    background-color: #c49a6c;
    color: white;
    text-align: center;
    padding: 15px;
}

.footer-links {
    margin-top: 8px;
}

footer a {
    color: white;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer a:hover {
    filter: brightness(1.08);
}

.cookie-settings {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font: inherit;
    margin-top: 8px;
    padding: 6px 10px;
}

.cookie-banner {
    align-items: center;
    background: #fffaf3;
    border: 1px solid rgba(139, 94, 60, 0.18);
    border-radius: 8px;
    bottom: 16px;
    box-shadow: 0 12px 30px rgba(82, 55, 35, 0.18);
    color: #2f2a25;
    display: none;
    gap: 18px;
    justify-content: space-between;
    left: 16px;
    margin: auto;
    max-width: 940px;
    padding: 16px;
    position: fixed;
    right: 16px;
    text-align: left;
    z-index: 120;
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner h2 {
    color: #5f3e27;
    font-size: 1rem;
    margin-bottom: 6px;
}

.cookie-banner p {
    color: #4b4037;
    line-height: 1.5;
    margin: 0;
    max-width: 640px;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-button {
    min-width: 106px;
}

.error-section {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 120px);
}

.error-card {
    background: #fffaf3;
    border: 1px solid rgba(139, 94, 60, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(82, 55, 35, 0.12);
    margin: auto;
    max-width: 520px;
    padding: 34px 24px;
}

.error-card h1 {
    color: #5f3e27;
    margin-bottom: 12px;
}

.error-card .error-code {
    color: #8b5e3c;
    font-weight: bold;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.error-card p:not(.error-code) {
    color: #66584c;
    line-height: 1.6;
    margin-bottom: 20px;
}

.legal-page {
    margin: auto;
    max-width: 980px;
    text-align: left;
}

.legal-header {
    margin: 0 auto 28px;
    max-width: 760px;
    text-align: center;
}

.legal-eyebrow {
    color: #8b5e3c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.legal-header h1 {
    color: #5f3e27;
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 14px;
}

.legal-header p {
    color: #66584c;
    line-height: 1.65;
}

.legal-index {
    background: #fffaf3;
    border: 1px solid rgba(139, 94, 60, 0.16);
    border-radius: 8px;
    margin: 0 auto 24px;
    max-width: 760px;
    padding: 22px;
}

.legal-index h2 {
    color: #5f3e27;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.legal-index ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.legal-index a,
.legal-section a {
    color: #5f3e27;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content {
    display: grid;
    gap: 0;
}

.legal-section {
    border-top: 1px solid rgba(139, 94, 60, 0.16);
    padding: 32px 0;
    scroll-margin-top: 82px;
}

.legal-section h2 {
    color: #5f3e27;
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.legal-section h3 {
    color: #8b5e3c;
    font-size: 1.08rem;
    margin: 22px 0 8px;
}

.legal-section p {
    color: #4b4037;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-data {
    display: grid;
    gap: 10px;
    margin: 14px 0 22px;
}

.legal-data div {
    background: rgba(248, 245, 240, 0.72);
    border: 1px solid rgba(196, 154, 108, 0.2);
    border-radius: 8px;
    padding: 14px 16px;
}

.legal-data dt {
    color: #8b5e3c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.legal-data dd {
    color: #2f2a25;
    font-weight: bold;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .home-hero {
        grid-template-columns: 45% 55%;
        min-height: 700px;
        padding-top: 54px;
    }
.hero-media {
    min-height: 700px;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 700px;
}



    .hero-content {
        padding: 92px clamp(36px, 6vw, 76px) 56px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .btn {
        margin-left: clamp(80px, 9vw, 160px);
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .featured-product-grid {
        grid-template-columns: minmax(0, 520px);
    }

    .about-content {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    }

    .contact-section {
        padding-left: 28px;
        padding-right: 28px;
    }

    .contact-card {
        grid-template-columns: minmax(280px, .86fr) minmax(360px, 1.14fr);
        padding: 22px;
    }

    .contact-card iframe {
        height: 100%;
        min-height: 520px;
    }

    .contact-card .map-consent {
        min-height: 520px;
    }

    .contact-card .map-consent.is-loaded {
        height: 520px;
    }

    .legal-header h1 {
        font-size: 3rem;
    }

    .burger {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        width: auto;
        padding: 0;
        box-shadow: none;
    }

    .nav-links a {
        margin: 0 10px;
        padding: 0;
    }

    .nav-links a:hover {
        background-color: transparent;
        text-decoration: underline;
    }

}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-content {
        min-height: auto;
    }

    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-button {
        flex: 1;
    }

    .map-consent-link {
        display: block;
        margin: 12px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
