﻿/* ============================================================
   TEMA: Día Clásico
   COLOR: #0f3460
   DESC: Azul corporativo limpio, diseño balanceado y transiciones suaves
   ============================================================ */

:root {
    /* Paleta base DEVapp */
    --color-primario: #0f3460;
    --color-secundario: #e94560;
    --color-acento: #28a745;
    --color-fondo: #f8f9fa;
    --color-texto: #1a1a2e;
    --color-blanco: #ffffff;
    --color-gris: #6c757d;
    --sombra: 0 4px 15px rgba(0,0,0,0.08);
    --radio: 10px;

    /* Puente hacia Web Autogestionada (WA) */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --color-primary: #0f3460;
    --color-primary-hover: #1a4a7a;
    --color-accent: #e94560;
    --gradient-hero: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    --gradient-accent: linear-gradient(135deg, #0f3460 0%, #e94560 100%);
    --border-color: rgba(108, 117, 125, 0.2);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(15, 52, 96, 0.15);

    /* ----- Fondos e Imágenes por Segmento ----- */
    --bg-img-hero: var(--gradient-hero);
    --bg-overlay-hero: none;
    --bg-img-productos: none;
    --bg-overlay-productos: none;
    --bg-img-desarrollos: none;
    --bg-overlay-desarrollos: none;
    --bg-img-reseller: none;
    --bg-overlay-reseller: none;
    --bg-img-novedades: none;
    --bg-overlay-novedades: none;
    --bg-img-contacto: none;
    --bg-overlay-contacto: none;
}

/* ============================================================
   EFECTOS PROPIOS DEL TEMA (DEVapp / WA)
   ============================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-item:nth-child(2) { transition-delay: 0.10s; }
.stagger-item:nth-child(3) { transition-delay: 0.15s; }
.stagger-item:nth-child(4) { transition-delay: 0.20s; }
.stagger-item:nth-child(5) { transition-delay: 0.25s; }
.stagger-item:nth-child(6) { transition-delay: 0.30s; }

/* Hover con elevación */
.card-producto:hover,
.card-novedad:hover,
.pub-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 12px 40px rgba(15, 52, 96, 0.15) !important;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.3) !important;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secundario);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
nav a:hover::after {
    width: 100%;
}

/* ============================================================
   ESTRUCTURA Y COMPONENTES WEB AUTOGESTIONADA (WA)
   ============================================================ */

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar WA */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: var(--bg-secondary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.navbar-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-links a:hover {
    color: var(--color-primary);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

.nav-admin-btn,
.nav-admin-btn-discreet {
    background: var(--color-primary);
    color: #ffffff !important;
    padding: 0.5rem 1.1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.nav-admin-btn:hover,
.nav-admin-btn-discreet:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
}

/* Hero Section WA */
.hero#hero {
    padding: 160px 5% 100px 5%;
    background-color: var(--color-primario);
    background-image: var(--bg-overlay-hero, none), var(--bg-img-hero, var(--gradient-hero));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 80vh;
    box-sizing: border-box;
    text-align: left;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff !important;
    padding: 1rem 2.4rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-3px);
}

.hero-art {
    width: 45%;
    max-width: 500px;
    height: 380px;
    background: url('https://images.unsplash.com/photo-1511920170033-f8396924c348?auto=format&fit=crop&w=800&q=80') no-repeat center center;
    background-size: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

/* Main Sections WA */
.section {
    padding: 90px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-primary);
}

/* About Section WA */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
}

/* Gallery & Productos Section WA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 75%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Contact Section WA */
.contact-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-info-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-icon {
    background: var(--bg-primary);
    color: var(--color-primary);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-info-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-action h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25d366;
    color: #ffffff !important;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    background: #20bd5a;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: var(--bg-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* Footer WA */
.footer {
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-secondary);
}

/* Responsive WA */
@media (max-width: 968px) {
    .hero#hero {
        flex-direction: column;
        padding-top: 120px;
        gap: 2.5rem;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-art {
        width: 100%;
        height: 280px;
    }
    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-card {
        padding: 2rem;
    }
    .contact-action {
        align-items: center;
        text-align: center;
    }
    .nav-toggle {
        display: block !important;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1100;
    }
    .navbar-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 5%;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        z-index: 1050;
    }
    .navbar-menu.active {
        display: flex !important;
    }
    .navbar-links {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem !important;
    }
    .admin-access-group {
        border-left: none !important;
        padding-left: 0 !important;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        width: 100%;
        justify-content: center;
    }
}

/* Contraste garantizado para Hero en DEVapp y WA */
.hero h1, .hero-title {
    color: #ffffff !important;
}
.hero p, .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}
