@import "style_old_backup.css";

/* =============================================================================
   DEMO 5: ESTILO MAN CORPORATIVO
   Respetando la identidad de marca MAN - Concesionario Oficial
   Color corporativo: #E40045 (Rojo MAN)
============================================================================= */

:root {
    /* Colors - Paleta MAN oficial */
    --primary-color: #E40045;
    --primary-dark: #C5003A;
    --primary-light: #FF1A5B;
    --secondary-color: #1a1a1a;
    --accent-color: #E40045;

    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --gray-lighter: #E5E5E5;
    --white: #ffffff;
    --off-white: #F5F5F5;

    /* Gradients MAN style */
    --gradient-primary: linear-gradient(135deg, #E40045 0%, #C5003A 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(228, 0, 69, 0.9) 0%, rgba(197, 0, 58, 0.9) 100%);

    /* Typography - Sans-serif limpia tipo Helvetica */
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-secondary: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Spacing - Generosos como MAN */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 5rem;
    --spacing-3xl: 7rem;

    /* Border radius - Minimal como MAN */
    --border-radius-sm: 0;
    --border-radius: 0;
    --border-radius-lg: 0;
    --border-radius-xl: 0;

    /* Shadows - Sutiles */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Transitions - Suaves y profesionales */
    --transition-fast: 200ms ease;
    --transition-base: 350ms ease;
    --transition-slow: 500ms ease;
}

/* =============================================================================
   RESET & BASE - Estilo MAN
============================================================================= */
body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    letter-spacing: -0.01em;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.75rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; }

/* =============================================================================
   LOADING SCREEN
============================================================================= */
#loading-screen {
    background: var(--white);
}

.loader {
    border: 3px solid var(--gray-lighter);
    border-top-color: var(--primary-color);
    border-radius: 50%;
}

/* =============================================================================
   NAVIGATION - Gradiente negro con fade effect
============================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 30%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.3) 80%,
        rgba(0, 0, 0, 0) 100%);
    border-bottom: none;
    padding: 2.5rem 0 4rem 0;
    box-shadow: none;
    transition: background 0.6s ease,
                border-color 0.6s ease,
                box-shadow 0.6s ease,
                padding 0.6s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--gray-lighter);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 0;
}

/* Logos - alternar entre blanco y negro */
.logo {
    position: relative;
    display: inline-block;
    height: 50px;
    min-width: 200px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-height: 50px;
    transition: opacity 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.logo-blanco {
    opacity: 1;
    z-index: 2;
}

.logo-negro {
    opacity: 0;
    z-index: 1;
}

.navbar.scrolled .logo-blanco {
    opacity: 0;
}

.navbar.scrolled .logo-negro {
    opacity: 1;
}

.nav-link {
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: color 0.6s ease;
}

.navbar.scrolled .nav-link {
    color: var(--gray-dark);
}

.nav-link::before {
    height: 3px;
    background: var(--primary-color);
    border-radius: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-color);
}

/* =============================================================================
   HERO - Estilo MAN corporativo con Carrusel
============================================================================= */
.hero {
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding-top: 0;
}

/* Carrusel de Imágenes */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    display: none;
}

/* Controles del Carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(228, 0, 69, 0.9);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(5px);
}

.carousel-control:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 2rem;
}

.carousel-control.next {
    right: 2rem;
}

.carousel-control svg {
    width: 24px;
    height: 24px;
}

/* Indicadores del Carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    width: 32px;
}

/* Estadísticas en sección Sobre Nosotros */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
    padding: 3rem;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-left: 4px solid var(--primary-color);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-dark);
    font-weight: 600;
}

.scroll-indicator {
    display: none;
}

/* =============================================================================
   BUTTONS - Estilo MAN
============================================================================= */
.btn {
    border-radius: 0;
    padding: 1rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
}

.btn::before {
    display: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(228, 0, 69, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

/* =============================================================================
   SECTIONS
============================================================================= */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background: var(--off-white);
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 0;
}

.section-title {
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 2.75rem;
    color: var(--dark);
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 800px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

/* =============================================================================
   ABOUT SECTION
============================================================================= */
.about-section {
    background: var(--off-white);
}

.about-card {
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: 0;
    padding: 2.5rem;
    box-shadow: none;
    transition: all var(--transition-base);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.about-icon {
    background: var(--primary-color);
    border-radius: 0;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.about-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* =============================================================================
   COMPANIES SECTION
============================================================================= */
.companies-section {
    background: var(--white);
}

.filter-btn {
    border-radius: 0;
    border: 2px solid var(--gray-lighter);
    background: transparent;
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    color: var(--gray-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.company-card {
    border-radius: 0;
    border: 1px solid var(--gray-lighter);
    box-shadow: none;
    overflow: hidden;
}

.company-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.company-card.featured {
    border: 2px solid var(--primary-color);
}

.company-category {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 0;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.service-tag {
    background: var(--off-white);
    border: 1px solid var(--gray-lighter);
    color: var(--gray-dark);
    border-radius: 0;
}

/* =============================================================================
   SERVICES SECTION
============================================================================= */
.services-section {
    background: var(--off-white);
}

.service-card {
    border: 1px solid var(--gray-lighter);
    border-radius: 0;
    box-shadow: none;
    background: var(--white);
}

.service-card::before {
    height: 4px;
    background: var(--primary-color);
    border-radius: 0;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.service-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark);
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
}

/* =============================================================================
   CTA SECTION
============================================================================= */
.cta-section {
    background: var(--dark);
    padding: 6rem 0;
}

.cta-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--white);
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================================================
   CONTACT SECTION
============================================================================= */
.contact-section {
    background: var(--off-white);
}

.contact-card {
    border: 1px solid var(--gray-lighter);
    border-radius: 0;
    box-shadow: none;
    background: var(--white);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.contact-icon {
    background: var(--primary-color);
    border-radius: 0;
    width: 60px;
    height: 60px;
}

.contact-form-container {
    border: 1px solid var(--gray-lighter);
    border-radius: 0;
    box-shadow: none;
    background: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid var(--gray-lighter);
    border-radius: 0;
    padding: 0.875rem;
    font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(228, 0, 69, 0.1);
}

/* =============================================================================
   FOOTER
============================================================================= */
.footer {
    background: var(--dark);
    padding: 5rem 0 2rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

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

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================================================
   FOOTER ADDRESSES - Ubicaciones accesibles
============================================================================= */
.footer-addresses {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.addresses-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.address-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.address-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary-light);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.address-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.address-location {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.address-phone {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0;
}

.address-phone:hover {
    color: var(--primary-color);
}

/* =============================================================================
   BACK TO TOP
============================================================================= */
.back-to-top {
    background: var(--primary-color);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    background: var(--primary-dark);
}

/* =============================================================================
   RESPONSIVE
============================================================================= */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-title-line {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 8rem 0 4rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control.prev {
        left: 1rem;
    }

    .carousel-control.next {
        right: 1rem;
    }

    .carousel-control svg {
        width: 20px;
        height: 20px;
    }

    .carousel-indicators {
        bottom: 2rem;
        gap: 0.5rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 24px;
    }

    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .addresses-title {
        font-size: 1.5rem;
    }

    .address-card {
        padding: 1.25rem;
    }

    .address-card:hover {
        transform: translateX(3px);
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* =============================================================================
   MAN SPECIFIC ENHANCEMENTS
============================================================================= */

/* Línea roja característica en elementos importantes */
.hero-stats::before,
.about-card:hover::before,
.company-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

/* Hover states corporativos */
.company-link:hover,
.service-link:hover {
    color: var(--primary-dark);
    gap: 1rem;
}

/* Énfasis tipográfico MAN */
strong, b {
    font-weight: 700;
    color: var(--dark);
}

/* Espaciado generoso tipo MAN */
.container {
    max-width: 1200px;
    padding: 0 2rem;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}
