:root {
    /* Paleta inspirada en artesaniasoriginales.wakatiendaonline.com */
    --color-bg-cream: #FDFBF7;
    /* Fondo principal crema */
    --color-green-deep: #2F3E30;
    /* Verde oscuro (encabezados, footer) */
    --color-terracotta: #BC5A45;
    /* Terracota (botones, acentos) */
    --color-text-dark: #1A1A1A;
    /* Texto principal */
    --color-text-light: #FDFBF7;
    /* Texto sobre fondos oscuros */
    --color-soft-gray: #E5E5E5;

    --font-heading: 'Gelasio', serif;
    /* Similar a la serif del sitio original */
    --font-body: 'DM Sans', sans-serif;
    /* Sans-serif moderna y limpia */

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-cream);
    color: var(--color-text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-green-deep);
    font-weight: 600;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-green-deep);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #666;
    font-size: 1.1rem;
}

/* Header & Nav */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-terracotta);
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(47, 62, 48, 0.6), rgba(47, 62, 48, 0.4)), url('Cesteria en Rollo-Guacamayas-Ok/INDIVIDUALES 33CM/Posacalientes 33cm-Guacamayas-Boyacá 1.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-content strong {
    color: #FFD700;
    /* Un toque dorado para resaltar palabras clave */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background-color: var(--color-terracotta);
    color: white;
    text-decoration: none;
    border-radius: 0;
    /* Botones cuadrados más elegantes */
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid var(--color-terracotta);
    text-transform: uppercase;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-terracotta);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-green-deep);
    border: 1px solid var(--color-green-deep);
}

.btn-outline:hover {
    background-color: var(--color-green-deep);
    color: white;
}

/* Philosophy Section - Dark Green Background */
.bg-green {
    background-color: var(--color-green-deep);
    color: var(--color-text-light);
    padding: 5rem 0;
}

.bg-green h2 {
    color: var(--color-text-light);
}

/* Product Cards */
.product-category {
    padding: 5rem 0;
    border-bottom: 1px solid #eee;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-grid {
    display: flex;
    /* Cambiamos a Flex para centrar más fácilmente filas incompletas */
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 1 350px;
    /* Flex-basis base, pero permite encogerse */
    width: 100%;
    /* Fallback */
    max-width: 350px;
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: transparent;
}

/* Slider in Card */
.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Cuadrado perfecto */
    overflow: hidden;
    background-color: #f4f4f4;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recortar para llenar */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--color-green-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container:hover .slider-btn {
    opacity: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Card Body */
.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-green-deep);
}

.product-price {
    font-size: 1.1rem;
    color: var(--color-terracotta);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-summary {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limitar a 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-details {
    margin-top: auto;
    padding: 10px 20px;
    background-color: white;
    color: var(--color-green-deep);
    border: 1px solid var(--color-green-deep);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-details:hover {
    background-color: var(--color-green-deep);
    color: white;
}

/* POPUP / MODAL Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 62, 48, 0.85);
    /* Verde oscuro transparente */
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    /* Máximo 90% de la altura de la pantalla */
    overflow-y: auto;
    /* Scroll interno si es muy largo */
    position: relative;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        /* Lado a lado en desktop */
        height: auto;
        min-height: 500px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-gallery {
    flex: 1;
    background: #f9f9f9;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-green-deep);
    z-index: 10;
    line-height: 1;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-green-deep);
}

.modal-price {
    font-size: 1.5rem;
    color: var(--color-terracotta);
    margin-bottom: 2rem;
    font-weight: 600;
}

.modal-description {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 2rem;
    white-space: pre-line;
    /* Respetar saltos de línea */
}

.modal-meta {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #777;
}

.modal-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    background: var(--color-green-deep);
    color: white;
    padding: 15px;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-cta:hover {
    background: var(--color-terracotta);
}

/* Footer */
footer {
    background-color: var(--color-green-deep);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--color-terracotta);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Textos Largos de Sección */
.category-intro {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.category-intro h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: inherit;
    line-height: 1.2;
}

.category-intro .subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 500;
    display: block;
}

.category-intro .body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.95;
    text-align: justify;
    /* Para bloques largos a veces se ve bien, pero center suele ser más moderno. Dejaremos heredar o center en container */
    text-align-last: center;
}

/* Sección Beneficios */
.benefits-section {
    padding: 6rem 0;
    background-color: #f8f6f2;
    /* Un crema ligeramente diferente */
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    padding: 1rem;
}

.benefit-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-terracotta);
    font-family: var(--font-heading);
}

.benefit-item p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 20px;
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    text-align: left;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--color-green-deep);
}

.faq-item p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

/* Ajustes de color para secciones oscuras */
.bg-green .category-intro h2,
.bg-green .category-intro .subtitle,
.bg-green .category-intro .body-text {
    color: white;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .category-intro .body-text {
        text-align: left;
        text-align-last: left;
    }
}