/* Header & Navbar */
/* Header & Navbar (Sombreado oscuro eliminado) */
/* Header & Navbar (Oculto al inicio) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: var(--transition-smooth);
    
    /* Fuerza la ocultación total hasta hacer scroll */

}

.navbar .logo {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

/* Control del tamaño del logo */
.logo img {
    max-height: 80px;
    width: auto;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navbar al hacer scroll (se mantiene igual para el fondo blanco) */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 10px 8%;
}

.navbar.scrolled .logo {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.navbar.scrolled .logo img {
    max-height: 60px;
}

.navbar.scrolled .logo-fallback {
    color: var(--dark-color);
}

.navbar.scrolled .nav-links a {
    color: var(--dark-color);
    text-shadow: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: #ffffff;
    font-weight: 600; 
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

/* 1. Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background: url('../assets/img/fondo/image10.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Fondo oscuro y uniforme */
    background: rgba(0, 0, 0, 0.65); 
    /* Desenfoque elegante que oculta el ruido de la foto */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #ffffff;
    margin-top: 80px; /* Aumenta o disminuye este valor para subir o bajar el texto */
}

.badge-tag {
    display: inline-block;
    background-color: rgba(251, 110, 30, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 35px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 2. Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: -50px auto 80px auto;
    padding: 0 5%;
    position: relative;
    z-index: 3;
}

.feature-card {
    background-color: #ffffff;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(251, 110, 30, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px auto;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 3. Sección Nosotros (Imagen) */
.about-image-section {
    padding: 80px 5%;
    text-align: center;
    background-color: #fdf7f0; /* Color crema para que se fusione con tu imagen */
}

.about-image-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.nosotros-full-img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Opcional, si tu imagen ya tiene los bordes listos, puedes quitar esto */
    transition: var(--transition-smooth);
}

.nosotros-full-img:hover {
    transform: scale(1.02);
}

/* Botón Interactivo */
.btn-interactive {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(251, 110, 30, 0.3);
}

.btn-interactive:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(251, 110, 30, 0.5);
    background-color: var(--primary-hover, #e05c12);
}

.btn-interactive i {
    transition: transform 0.3s ease;
}

.btn-interactive:hover i {
    transform: translateX(5px);
}

/* 4. Featured Products */
.featured-products {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
}

.header-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-img {
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-footer .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

/* 5. CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #fb6e1e 0%, #e05c12 100%);
    color: #ffffff;
    padding: 70px 8%;
    text-align: center;
    margin: 40px 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.btn-cta:hover {
    background-color: var(--dark-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Animaciones */
.fade-in-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
}

/* =========================================
   FONDO VERTICAL (9:16) SOLO PARA CELULARES
========================================= */
@media (max-width: 768px) {
    .hero {
        /* Carga la imagen vertical optimizada solo en móviles */
        background-image: url('../assets/img/fondo/image9.png') !important;
        background-position: center !important;
        background-size: cover !important;
    }
}

/* =========================================
   CONTROL DE DESENFOQUE EN CELULARES
========================================= */
@media (max-width: 768px) {
    .hero-overlay {
        /* Cambia el "2px" por "0px" si quieres quitarlo por completo */
        backdrop-filter: blur(1px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        
        /* Opcional: Si también quieres que la capa negra sea más transparente */
        background: rgba(0, 0, 0, 0.4) !important; 
    }
}