/* Estilos personalizados para el modelo de Artesanías */
:root {
    --primary: #E6B17E;
    --secondary: #7E8D60;
    --accent: #F1E4C6;
    --neutral: #D2A679;
    --surface: #fffaf5;
    --text: #1f140f;
    --muted: #5c4c3f;
    --muted-light: #7c6a5b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-image: linear-gradient(180deg, var(--neutral), #f6eadf);
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin: 0;
}

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

a {
    color: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 244, 237, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand h1 {
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    color: var(--primary);
}

.logo-img {
    width: clamp(48px, 6vw, 64px);
    height: clamp(48px, 6vw, 64px);
    object-fit: contain;
}

.logo-placeholder {
    width: clamp(48px, 6vw, 64px);
    height: clamp(48px, 6vw, 64px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--secondary);
    color: var(--primary);
    font-size: clamp(1.5rem, 2vw, 1.8rem);
}

.brand-tagline {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

nav ul {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 2rem);
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after,
nav a:focus-visible::after,
nav a.active::after {
    width: 100%;
}

nav a.active,
nav a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
    display: block;
}

.nav-cta-group {
    display: flex;
    align-items: center;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 34px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero {
    position: relative;
    padding: clamp(6rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(120deg, rgba(15,12,10,0.82), rgba(139, 94, 60, 0.62)),
        url('images/61ff8f7c51d1bd93d729b697a194ccef873575c8.jpg');
    background-size: cover;
    background-position: center;
    filter: contrast(1.05);
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.15), transparent 55%);
    z-index: -1;
}

.hero-content {
    width: min(820px, 92%);
    margin: 0 auto;
    display: grid;
    gap: clamp(1rem, 3vw, 1.8rem);
}

.hero h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #fff;
}

.hero p {
    font-size: clamp(1rem, 2.3vw, 1.3rem);
    color: rgba(255,255,255,0.85);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, color 0.25s;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.btn-outline {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
    background: transparent;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.15);
}

/* Sections */
section {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
}

section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.65);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(203, 182, 124, 0.18);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 1rem 0 0.6rem;
}

.section-header p {
    width: min(640px, 90%);
    margin: 0 auto;
    color: var(--muted-light);
}

/* About Section */
.about-grid {
    display: grid;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about-media {
    position: relative;
}

.about-media::after {
    content: "";
    position: absolute;
    inset: clamp(1.4rem, 5vw, 2.5rem);
    border: 1px solid rgba(139, 94, 60, 0.2);
    border-radius: 24px;
    z-index: -1;
}

.about-media img {
    border-radius: 24px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.about-content {
    display: grid;
    gap: 1.2rem;
}

.about-highlight {
    background: rgba(255,255,255,0.85);
    border-left: 4px solid var(--secondary);
    padding: 1.1rem 1.5rem;
    border-radius: 0 18px 18px 0;
    color: var(--muted);
    font-style: italic;
}

/* Products Section */
.products-grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.2rem);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: grid;
    grid-template-rows: auto 1fr;
}

.product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.product-body {
    padding: 1.6rem;
    display: grid;
    gap: 0.9rem;
}

.product-body p {
    color: var(--muted);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    max-height: 220px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

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

.gallery-card span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    color: rgba(255,255,255,0.75);
    background: linear-gradient(135deg, rgba(19,17,14,0.75), rgba(139,94,60,0.55));
}

/* Contact Section */
.contact-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
    background: #fff;
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    display: grid;
    gap: 1.1rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--muted);
    word-break: break-word;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(139, 94, 60, 0.15);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(139, 94, 60, 0.12);
    color: var(--primary);
    transition: transform 0.25s, background 0.25s;
}

.socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.socials a:hover {
    transform: translateY(-3px);
    background: var(--secondary);
}

.map-card {
    margin-top: 2rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 1px solid rgba(139, 94, 60, 0.15);
}

.map-card iframe {
    width: 100%;
    border: 0;
    height: clamp(260px, 40vw, 360px);
    display: block;
}

.map-card .map-footer {
    background: #fff;
    padding: 0.9rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-card .map-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* Footer */
footer {
    background: linear-gradient(120deg, rgba(19,17,14,0.95), rgba(79,52,33,0.95));
    color: rgba(255,255,255,0.9);
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}

footer .container {
    display: grid;
    gap: 2.2rem;
    text-align: center;
}

.supporters {
    display: grid;
    gap: 1rem;
}

.supporters h3 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.92);
}

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

.supporter-badge {
    width: clamp(110px, 20vw, 160px);
    height: 72px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    position: relative;
}

.supporter-badge img {
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.25));
    transition: transform 0.25s ease;
}

.supporter-badge:hover img {
    transform: scale(1.03);
}

.supporter-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 18px 45px rgba(37,211,102,0.35);
    display: grid;
    place-items: center;
    text-decoration: none;
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-4px) scale(1.04);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 244, 237, 0.98);
        padding: 1rem 1.5rem 1.5rem;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.06);
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

    nav.is-open {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-cta-group {
        width: 100%;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
    }

    .hero {
        text-align: left;
    }

    .hero-content {
        justify-items: flex-start;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .about-media::after {
        display: none;
    }

    .about-media img {
        border-radius: 18px;
    }
}

@media (max-width: 520px) {
    .whatsapp-btn {
        right: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
    }
}