﻿/*
-------------------------------------------------------------------
CHEISER, INC. - Hoja de Estilos Principal (VERSIÓN MODERNIZADA 2025)
-------------------------------------------------------------------
*/

/* 1. VARIABLES E IMPORTACIONES ACTUALIZADAS
------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #b91f1f;
    --secondary-color: #62d530;
    --dark-color: #1a1a1a; /* Gris más oscuro y moderno */
    --light-color: #ffffff;
    --gray-light-bg: #f8f9fa;
    --text-color: #555555;
    --font-family: 'Figtree', sans-serif;
    --border-radius: 12px; /* Bordes más redondeados */
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* Transición mejorada */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #9e1a1a 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #52b428 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-color) 0%, #000000 100%);
}

/* 2. ESTILOS GLOBALES Y RESET MEJORADOS
------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.7;
    padding-top: 86px;
    font-weight: 400;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 3. TIPOGRAFÍA ACTUALIZADA
------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 700; /* Más peso para títulos */
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Tamaños responsivos modernos */
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

    a:hover {
        color: var(--dark-color);
    }

    a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background-color: var(--secondary-color);
        transition: var(--transition);
    }

    a:hover::after {
        width: 100%;
    }

/* 4. CLASES DE UTILIDAD MEJORADAS
------------------------------------------------------------------- */
.section-padding {
    padding: 100px 0;
}

.section-bg {
    background-color: var(--gray-light-bg);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Efectos de aparición para scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* 5. BOTONES REDISEÑADOS
------------------------------------------------------------------- */
.btn {
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.7s ease;
        z-index: -1;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(185, 31, 31, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(185, 31, 31, 0.4);
    }

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(98, 213, 48, 0.3);
}

    .btn-secondary:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(98, 213, 48, 0.4);
    }

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: var(--light-color);
        transform: translateY(-3px);
    }

/* 6. NAVBAR MODERNIZADA
------------------------------------------------------------------- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 50px;
    transition: var(--transition);
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 12px;
    transition: var(--transition);
    position: relative;
}

    .navbar .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--secondary-color);
        transition: var(--transition);
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--primary-color);
    }

        .navbar .nav-link:hover::after,
        .navbar .nav-link.active::after {
            width: 100%;
        }

.navbar .btn-cotizar {
    margin-left: 15px;
}

.navbar-collapse {
   
    flex-grow: 0.6;
}
    /* 7. HERO SECTION REDISEÑADA
------------------------------------------------------------------- */
    .hero-section {
    background: var(--gradient-dark);
    color: var(--light-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
        background-size: cover;
        animation: float 20s ease-in-out infinite;
    }

    .hero-section .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-section h1 {
        font-size: clamp(2.8rem, 6vw, 4.5rem);
        font-weight: 800;
        color: var(--light-color);
        margin-bottom: 1.5rem;
        animation: fadeInUp 1s ease-out;
    }

    .hero-section p {
        font-size: 1.3rem;
        font-weight: 300;
        margin-bottom: 2.5rem;
        animation: fadeInUp 1s ease-out 0.2s both;
    }

    .hero-section .btn {
        animation: fadeInUp 1s ease-out 0.4s both;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 8. TARJETAS MODERNIZADAS
------------------------------------------------------------------- */
.feature-card, .service-card, .product-card, .team-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

    .feature-card::before, .service-card::before, .product-card::before, .team-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient-secondary);
        transform: scaleX(0);
        transform-origin: left;
        transition: var(--transition);
    }

    .feature-card:hover, .service-card:hover, .product-card:hover, .team-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

        .feature-card:hover::before, .service-card:hover::before, .product-card:hover::before, .team-card:hover::before {
            transform: scaleX(1);
        }

    .feature-card .icon, .service-card .icon, .product-card .icon {
        font-size: 3.5rem;
        color: var(--secondary-color);
        margin-bottom: 1.5rem;
        transition: var(--transition);
    }

    .feature-card:hover .icon, .service-card:hover .icon, .product-card:hover .icon {
        transform: scale(1.1) rotate(5deg);
    }

/* 9. SECCIÓN DE TESTIMONIOS MEJORADA
------------------------------------------------------------------- */
.testimonial-card {
    background-color: var(--light-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

    .testimonial-card::before {
        content: '"';
        position: absolute;
        top: 20px;
        left: 30px;
        font-size: 5rem;
        color: var(--secondary-color);
        opacity: 0.2;
        font-family: Georgia, serif;
    }

    .testimonial-card p {
        font-size: 1.2rem;
        line-height: 1.8;
        position: relative;
        z-index: 1;
    }

    .testimonial-card .author {
        color: var(--dark-color);
        font-weight: 600;
        margin-top: 1.5rem;
    }

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--dark-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition);
}

    .carousel-control-prev:hover, .carousel-control-next:hover {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }

/* 10. TÍTULOS DE SECCIÓN ACTUALIZADOS
------------------------------------------------------------------- */
.section-title {
    margin-bottom: 70px;
    text-align: center;
}

    .section-title h2 {
        font-size: clamp(2.2rem, 4vw, 3.2rem);
        font-weight: 800;
        position: relative;
        display: inline-block;
        padding-bottom: 20px;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            display: block;
            width: 80px;
            height: 5px;
            background: var(--gradient-primary);
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 3px;
        }

    .section-title p {
        max-width: 700px;
        margin: 20px auto 0;
        color: var(--text-color);
        font-size: 1.2rem;
    }

/* 11. FORMULARIOS MODERNIZADOS
------------------------------------------------------------------- */
.contact-form .form-control, .form-select {
    border-radius: var(--border-radius);
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    font-size: 1rem;
}

    .contact-form .form-control:focus, .form-select:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 0.2rem rgba(98, 213, 48, 0.15);
        transform: translateY(-2px);
    }

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.7rem;
    transition: var(--transition);
}

/* 12. FOOTER ACTUALIZADO
------------------------------------------------------------------- */
.footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px 0;
    position: relative;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient-primary);
    }

    .footer h5 {
        color: var(--light-color);
        margin-bottom: 25px;
        font-weight: 700;
        position: relative;
        display: inline-block;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 3px;
            background: var(--secondary-color);
            bottom: -8px;
            left: 0;
            border-radius: 2px;
        }

    .footer a {
        color: rgba(255, 255, 255, 0.7);
        transition: var(--transition);
    }

        .footer a:hover {
            color: var(--light-color);
            padding-left: 5px;
        }

    .footer .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--light-color);
        margin-right: 12px;
        transition: var(--transition);
    }

        .footer .social-icons a:hover {
            background-color: var(--primary-color);
            transform: translateY(-5px);
        }

    .footer .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 25px;
        margin-top: 50px;
        text-align: center;
        font-size: 0.9rem;
    }


/*
-------------------------------------------------------------------
10. ESTILOS PARA PÁGINA "NOSOTROS" (EXTENDIDA)
-------------------------------------------------------------------
*/

/* ----- Línea de Tiempo (Timeline) ----- */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

    .timeline-container::after {
        content: '';
        position: absolute;
        width: 3px;
        background-color: var(--primary-color);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -1.5px;
    }

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }


/* 13. BOTÓN DE WHATSAPP MEJORADO
------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

    .whatsapp-float:hover {
        transform: scale(1.15) rotate(5deg);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* 14. GALERÍA MODERNIZADA
------------------------------------------------------------------- */
.gallery-item-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: translateZ(0);
}

    .gallery-item-wrapper img {
        transition: transform 0.6s ease;
        width: 100%;
        height: auto;
    }

    .gallery-item-wrapper:hover img {
        transform: scale(1.1);
    }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(36, 36, 36, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay a {
    color: var(--light-color);
    font-size: 2.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item-wrapper:hover .gallery-overlay a {
    transform: translateY(0);
}

/* 15. ANIMACIONES ADICIONALES
------------------------------------------------------------------- */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-right {
    animation: slideInRight 0.8s ease-out;
}

/* Efecto de partículas para el hero (opcional) */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 16. RESPONSIVE MEJORADO
------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .section-padding {
        padding: 90px 0;
    }
}

@media (max-width: 991.98px) {
    .navbar .btn-cotizar {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .hero-section {
        text-align: center;
    }

    .feature-card, .service-card, .product-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 70px 0;
    }

    body {
        padding-top: 76px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}



@media (max-width: 575.98px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .feature-card, .service-card, .product-card {
        padding: 1.5rem;
    }
}
