/* =========================================
   VARIABLES & SETUP
   ========================================= */
:root {
    /* Paleta de Colores */
    --color-primary: #8B4513; /* Marrón Silla de Montar */
    --color-secondary: #A9A9A9; /* Gris Oscuro */
    --color-bg: #FAF0E6; /* Blanco Lino */
    --color-text: #333333;
    
    /* Tipografía */
    --font-heading: 'Lora', serif;
    --font-body: 'Nunito Sans', sans-serif;
    
    /* UI Helpers */
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    --transition-base: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 10px auto 0;
}

.bg-light {
    background-color: #fcf6f0 !important;
}

/* =========================================
   REGLAS OBLIGATORIAS (MANDATORY)
   ========================================= */

/* 1. Regla de Hover para Imágenes */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.back-landing-worklink {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
}

/* 2. Navegación Opacidad Dinámica */
.navigation {
    background-color: rgba(255, 255, 255, 0); /* Inicialmente transparente */
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
}

.navigation.scrolled {
    background-color: rgba(250, 240, 230, 0.98); /* Opaque Cream */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.navigation__logo {
    color: var(--color-bg); /* Blanco/Claro en Hero */
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.navigation.scrolled .navigation__logo {
    color: var(--color-primary); /* Marrón al hacer scroll */
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navigation.scrolled .nav-link {
    color: var(--color-primary) !important;
}

.navigation.scrolled .nav-link:hover {
    color: var(--color-secondary) !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.navigation.scrolled .navbar-toggler {
    border-color: var(--color-primary);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navigation.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28139, 69, 19, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* =========================================
   COMPONENTES
   ========================================= */

/* Botones */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: var(--border-radius);
    padding: 10px 25px;
    transition: var(--transition-base);
}

.btn-primary:hover {
    background-color: #6d360f;
    border-color: #6d360f;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: #fff;
    overflow: hidden;
    transition: var(--transition-base);
}

.product-card__img-wrapper {
    overflow: hidden;
    height: 250px;
}

.product-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.2);
}

/* =========================================
   SECCIONES ESPECÍFICAS
   ========================================= */

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero__bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Oscurecer para legibilidad */
}

.hero__title {
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Proceso Artesanal */
.process-step__img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
}

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

/* Galería Swiper */
.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--color-primary);
}

.swiper-pagination-bullet-active {
    background-color: var(--color-primary);
}

/* Contacto */
.contact-form {
    background-color: rgba(255,255,255,0.05);
}

.form-control {
    border-radius: var(--border-radius);
    padding: 12px;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
}

/* Responsive Ajustes */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .navigation {
        background-color: rgba(250, 240, 230, 0.98); /* Siempre opaco en móvil */
        padding: 10px 0;
    }
    
    .navigation .nav-link, 
    .navigation .navbar-brand {
        color: var(--color-primary) !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28139, 69, 19, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}