/* ============================================
   DON INACIO — PRODUCTOS GOURMET
   Design System: Gold & Dark Portuguese Elegance
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
    --gold: #c8962a;
    --gold-light: #e8b84b;
    --gold-pale: #f5e6c0;
    --cream: #faf6ee;
    --dark: #1a1208;
    --dark-mid: #2c1e0a;
    --text: #3a2e1a;
    --text-muted: #7a6a50;
    --white: #ffffff;
    --header-h: 70px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- RESET ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    width: 100%;
    padding-top: var(--header-h);
}

body.no-scroll {
    overflow: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* ============================================
   SIMPLE HEADER
   ============================================ */
.simple-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 900;
    background: rgba(26, 18, 8, 0.85);
    backdrop-filter: blur(12px);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.simple-header.scrolled {
    background: rgba(20, 12, 3, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 10px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    transition: all 0.3s var(--ease-out);
    background: rgba(255, 255, 255, 0.08);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-3px);
}

.btn-back .material-symbols-outlined {
    font-size: 1.2rem;
}

.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-logo img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(200, 150, 42, 0.4));
    transition: transform 0.3s var(--ease-spring);
}

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

.btn-reserve {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 10px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 4px 16px rgba(200, 150, 42, 0.3);
    transition: all 0.3s var(--ease-spring);
}

.btn-reserve:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    box-shadow: 0 6px 24px rgba(200, 150, 42, 0.5);
    transform: translateY(-2px);
}

.btn-reserve .material-symbols-outlined {
    font-size: 1.2rem;
}

/* ============================================
   HERO PRODUCTOS
   ============================================ */
.hero-productos {
    position: relative;
    height: 65vh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(26, 18, 8, 0.85) 0%, rgba(44, 30, 10, 0.75) 100%),
        url('../extern-arch/paisaje-portada2.webp') center/cover;
    animation: zoomSlow 20s ease-in-out infinite alternate;
}

@keyframes zoomSlow {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 30px;
}

.hero-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--white);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-scroll {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards, bounce 2s ease-in-out 2s infinite;
}

.hero-scroll:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(4px);
}

.hero-scroll .material-symbols-outlined {
    font-size: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ============================================
   PRODUCTOS SECTION
   ============================================ */
.productos-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* ============================================
   CATEGORY BLOCK
   ============================================ */
.category-block {
    margin-bottom: 120px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s var(--ease-out);
}

.category-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(58, 46, 26, 0.15);
}

.category-number {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--gold-pale);
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.category-info {
    flex: 1;
    padding-top: 10px;
}

.category-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.category-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.category-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 700px;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-image-wrap {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--cream);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

/* ============================================
   CATEGORY FOOTER
   ============================================ */
.category-footer {
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--gold);
    padding: 12px 30px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    transition: all 0.3s var(--ease-spring);
}

.view-all-link:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 150, 42, 0.3);
}

.view-all-link .material-symbols-outlined {
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease-spring);
}

.view-all-link:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 18, 8, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s var(--ease-spring);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--dark);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-close .material-symbols-outlined {
    font-size: 1.5rem;
}

.modal-image-wrap {
    background: var(--cream);
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}

.modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.modal-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 30px;
    flex: 1;
}

.modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(58, 46, 26, 0.15);
}

.modal-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: all 0.3s var(--ease-spring);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

.btn-whatsapp .material-symbols-outlined {
    font-size: 1.3rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 40px 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(1.1);
}

.footer-brand p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav h4,
.footer-contact h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-nav ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: var(--gold);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--gold);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(200, 150, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-spring);
    z-index: 800;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--gold-light);
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(200, 150, 42, 0.6);
}

.scroll-top .material-symbols-outlined {
    font-size: 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .modal-info {
        padding: 40px 30px;
    }

    .modal-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .category-header {
        gap: 20px;
    }

    .category-number {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    .simple-header {
        padding: 0 20px;
    }

    .btn-back .back-text,
    .btn-reserve .reserve-text {
        display: none;
    }

    .btn-back,
    .btn-reserve {
        min-width: 44px;
        height: 44px;
        padding: 10px;
        justify-content: center;
    }

    .header-logo img {
        height: 38px;
    }

    .hero-productos {
        height: 55vh;
        min-height: 420px;
    }

    .hero-label {
        font-size: 0.68rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .productos-section {
        padding: 60px 20px;
    }

    .category-block {
        margin-bottom: 80px;
    }

    .category-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .category-number {
        font-size: 3.5rem;
    }

    .category-info {
        padding-top: 0;
    }

    .category-label {
        font-size: 0.65rem;
    }

    .category-desc {
        font-size: 1.05rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image-wrap {
        height: 200px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1.05rem;
        min-height: 2.5em;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .view-all-link {
        font-size: 0.88rem;
        padding: 10px 24px;
    }

    .modal-content {
        margin: 10px;
        max-height: 85vh;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .modal-image-wrap {
        height: 250px;
    }

    .modal-info {
        padding: 30px 20px;
    }

    .modal-name {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .modal-desc {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .modal-price {
        font-size: 2rem;
    }

    .btn-whatsapp {
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .simple-header {
        padding: 0 15px;
    }

    .btn-back,
    .btn-reserve {
        min-width: 40px;
        height: 40px;
        padding: 8px;
    }

    .header-logo img {
        height: 34px;
    }

    .hero-productos {
        height: 50vh;
        min-height: 380px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-label {
        font-size: 0.62rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-scroll {
        width: 45px;
        height: 45px;
    }

    .productos-section {
        padding: 50px 15px;
    }

    .category-block {
        margin-bottom: 60px;
    }

    .category-number {
        font-size: 2.8rem;
    }

    .category-name {
        font-size: 1.8rem;
    }

    .category-desc {
        font-size: 0.98rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image-wrap {
        height: 240px;
    }

    .product-info {
        padding: 16px;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.4rem;
    }

    .view-all-link {
        font-size: 0.85rem;
        padding: 10px 20px;
    }

    .modal-image-wrap {
        height: 220px;
    }

    .modal-info {
        padding: 25px 18px;
    }

    .modal-name {
        font-size: 1.4rem;
    }

    .modal-desc {
        font-size: 0.95rem;
    }

    .modal-price {
        font-size: 1.8rem;
    }

    .modal-price-row {
        gap: 12px;
    }

    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
}