/* Variables de Velite */
:root {
    --velite-primary: #0a1a2d;       /* Azul marino oscuro */
    --velite-secondary: #1a3a5f;     /* Azul marino medio */
    --velite-accent: #d4af37;        /* Dorado */
    --velite-light: #2a4a7f;         /* Azul más claro */
    --velite-white: #ffffff;
    --velite-gray: #f8f9fa;
    --velite-text: #333333;
    --velite-text-light: #777777;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Estilos generales */
body {
    font-family: 'Montserrat', sans-serif;
    padding-top: 80px;
    color: var(--velite-text);
    background-color: var(--velite-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--velite-accent);
}

/* Logo de Velite */
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--velite-white);
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--velite-accent);
}

/* Header */
#header {
    background-color: rgba(10, 26, 45, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#header.scrolled {
    background-color: var(--velite-primary);
    padding: 10px 0;
}

.navbar-nav .nav-link {
    color: var(--velite-white) !important;
    font-weight: 500;
    margin: 0 8px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--velite-accent) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--velite-accent);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Banner principal - SOLUCIÓN PARA TODOS LOS DISPOSITIVOS */
.hero-velite {
    background: linear-gradient(135deg, 
                rgba(10, 26, 45, 0.85) 0%, 
                rgba(26, 58, 95, 0.75) 50%,
                rgba(212, 175, 55, 0.15) 100%),
                url('/assets/images/image_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--velite-white);
    padding: 100px 0 50px;
    position: relative;
    width: 100%;
    overflow: hidden;
    
    /* SOLUCIÓN: Usar height en lugar de min-height para móviles */
    height: 100vh; /* Para escritorio funciona bien */
    min-height: 100vh; /* Fallback */
}

/* Overlay para mejor contraste en móviles */
.hero-velite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05); /* Overlay más oscuro para mejor legibilidad */
    z-index: 1;
}

.hero-velite > .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Botones del banner optimizados */
.hero-buttons .btn-velite {
    background-color: var(--velite-secondary);
    color: var(--velite-white);
    border: 2px solid var(--velite-secondary);
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 180px;
}

.hero-buttons .btn-velite:hover {
    background-color: var(--velite-primary);
    border-color: var(--velite-primary);
    color: var(--velite-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-buttons .btn-velite-outline {
    background-color: transparent;
    color: var(--velite-accent);
    border: 2px solid var(--velite-accent);
    padding: 12px 33px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 180px;
}

.hero-buttons .btn-velite-outline:hover {
    background-color: var(--velite-accent);
    color: var(--velite-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ============================================
   RESPONSIVE ESPECÍFICO PARA EL BANNER
   ============================================ */

/* Tablets (768px - 992px) */
@media (max-width: 992px) {
    .hero-velite {
        min-height: 80vh;
        padding: 80px 0 40px;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .hero-buttons .btn-velite,
    .hero-buttons .btn-velite-outline {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .servicio-card {
        padding: 30px 20px;
    }
    
    .servicio-icon {
        font-size: 2.8rem;
        width: 80px;
        height: 80px;
        line-height: 80px;
    }
}

/* Teléfonos grandes (576px - 768px) */
@media (max-width: 768px) {
    .hero-velite {
        min-height: 70vh;
        padding: 70px 0 30px;
        background: linear-gradient(135deg, 
                    rgba(10, 26, 45, 0.9) 0%, 
                    rgba(26, 58, 95, 0.8) 100%),
                    url('/assets/images/image_banner.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Overlay más oscuro para móviles */
    .hero-velite::before {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .hero-title {
        font-size: 2.3rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    body {
        padding-top: 70px;
    }
    
    /* Botones en columna en móviles */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .hero-buttons .btn-velite,
    .hero-buttons .btn-velite-outline {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
    
    .navbar-nav {
        background-color: var(--velite-primary);
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    /* Footer responsive */
    .footer-velite {
        padding: 40px 0 20px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Teléfonos pequeños (menos de 576px) */
@media (max-width: 576px) {
    .hero-velite {
        min-height: 60vh;
        padding: 60px 0 25px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .servicio-title {
        font-size: 1.4rem;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    /* Botones más pequeños en móviles pequeños */
    .hero-buttons .btn-velite,
    .hero-buttons .btn-velite-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .btn-velite, .btn-velite-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Pantallas muy pequeñas (menos de 400px) */
@media (max-width: 400px) {
    .hero-velite {
        min-height: 55vh;
        padding: 50px 0 20px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn-velite,
    .hero-buttons .btn-velite-outline {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 120px;
    }
}

/* Orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-velite {
        min-height: 100vh;
        padding: 80px 0 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .hero-buttons .btn-velite,
    .hero-buttons .btn-velite-outline {
        padding: 8px 15px;
        font-size: 0.85rem;
        min-width: 120px;
    }
}

/* ============================================
   RESTANTE DE TU CSS (SERVICIOS, PRODUCTOS, ETC.)
   ============================================ */

/* Servicios */
.servicio-card {
    border-radius: 15px;
    padding: 40px 25px;
    color: var(--velite-white);
    height: 100%;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2));
    z-index: 1;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.servicio-content {
    position: relative;
    z-index: 2;
}

.servicio-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--velite-white);
    display: inline-block;
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.servicio-card:hover .servicio-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(212, 175, 55, 0.2);
}


.servicio-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.servicio-desc {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Colores específicos para cada servicio */
.servicio-1 { background-color: var(--velite-primary); }
.servicio-2 { background-color: var(--velite-secondary); }
.servicio-3 { background-color: var(--velite-primary); }
.servicio-4 { background-color: var(--velite-secondary); }
.servicio-5 { background-color: var(--velite-primary); }
.servicio-6 { 
    background-color: var(--velite-accent); 
    color: var(--velite-primary);
}
.servicio-6 .servicio-icon {
    color: var(--velite-primary);
    background-color: rgba(10, 26, 45, 0.1);
}

/* Product Cards */
.producto-card {
    background: var(--velite-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.producto-img {
    height: 220px;
    overflow: hidden;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.producto-card:hover .producto-img img {
    transform: scale(1.05);
}

.producto-info {
    padding: 20px;
}

.producto-meta {
    font-size: 0.9rem;
    color: var(--velite-text-light);
}

.producto-precio {
    color: var(--velite-accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.producto-descripcion {
    color: var(--velite-text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Botones generales (para otras secciones) */
.btn-velite {
    background-color: var(--velite-accent);
    color: var(--velite-primary);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: var(--transition);
}

.btn-velite:hover {
    background-color: #e6c158;
    color: var(--velite-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-velite-outline {
    background-color: transparent;
    color: var(--velite-accent);
    border: 2px solid var(--velite-accent);
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-velite-outline:hover {
    background-color: var(--velite-accent);
    color: var(--velite-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Testimonios */
.testimonial-card {
    background: var(--velite-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 25px;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.testimonial-rating {
    color: var(--velite-accent);
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--velite-text);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--velite-accent);
    opacity: 0.3;
}

.testimonial-author {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 15px;
}

/* Contacto */
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form {
    background-color: var(--velite-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(10, 26, 45, 0.1);
    color: var(--velite-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--velite-accent);
    color: var(--velite-white);
    transform: translateY(-5px);
}
/* Footer - Estilos mejorados */
.footer-velite {
    background-color: var(--velite-primary);
    color: var(--velite-white);
    padding: 60px 0 30px;
}

.footer-title {
    color: var(--velite-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--velite-accent);
    padding-left: 5px;
}



.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Iconos de redes sociales - MEJORADO */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--velite-accent) !important; /* Color dorado por defecto */
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--velite-accent);
}

/* Estilos específicos para cada red social */
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white !important;
    border-color: transparent;
}

.social-icon.tiktok:hover {
    background-color: #000000;
    color: white !important;
    border-color: transparent;
}

.social-icon.facebook:hover {
    background-color: #1877F2;
    color: white !important;
    border-color: transparent;
}

.social-icon.whatsapp:hover {
    background-color: #25D366;
    color: white !important;
    border-color: transparent;
}

/* Estado normal - siempre visible */
.social-icon i {
    transition: all 0.3s ease;
}

/* Efecto de hover para todos los iconos */
.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Botón flotante de WhatsApp - mejorado */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: white;
}

/* Línea divisoria del footer */
.footer-velite hr {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

/* Enlaces de política y términos */
.footer-velite .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-velite .text-white-50:hover {
    color: var(--velite-accent) !important;
}

/* Botón de soporte */
.footer-velite .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.footer-velite .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--velite-accent);
    color: var(--velite-accent);
}


/* WhatsApp flotante */
.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: 2rem;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}


/* Estilos para modales */
.modal-xl {
    max-width: 1140px;
}

.bg-velite {
    background-color: #1e3a8a; /* Color personalizado de Velite */
}

.text-velite {
    color: #1e3a8a;
}

.btn-velite {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
}

.btn-velite:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: white;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.producto-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.producto-img {
    height: 200px;
    overflow: hidden;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.producto-card:hover .producto-img img {
    transform: scale(1.05);
}

.producto-info {
    padding: 1.5rem;
}

.producto-precio {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.producto-descripcion {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Galería de imágenes */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #1e3a8a;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.fade .modal-dialog {
    animation: fadeIn 0.3s ease;
}



/* Responsividad Mejorada */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    .row-cols-xl-4 > * {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .row-cols-lg-3 > * {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Modales responsivos */
    .modal-xl {
        max-width: 90%;
    }
    
    .modal-velite .row {
        flex-direction: column;
    }
    
    .modal-velite .col-lg-4 {
        margin-top: 20px;
    }
}


/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .auto-card:hover {
        transform: none; /* Eliminar transform hover en touch */
    }
    
    .btn-detalles:active,
    .btn-filtro:active {
        background-color: var(--velite-gold);
        transform: scale(0.98);
    }
    
    /* Aumentar tamaño de áreas clickeables */
    .page-link {
        padding: 12px 18px;
        margin: 0 5px;
    }
    
    /* Mejorar navegación por tabs */
    .nav-link {
        padding: 12px 15px;
    }
}