/* ============================================
   VARIABLES GLOBALES - PALETA CLARA
   ============================================ */
:root {
    /* Rojo solo como acento */
    --primary-red: #c00000;
    --primary-red-dark: #8b0000;
    --primary-red-light: #d32f2f;
    --primary-red-glow: rgba(192, 0, 0, 0.15);

    /* Escala de grises clara dominante */
    --white: #ffffff;
    --gray-50: #fafbfc;
    --gray-100: #f5f7fa;
    --gray-200: #e8ecf1;
    --gray-300: #d1d9e0;
    --gray-400: #b0b8c4;
    --gray-500: #8a94a6;
    --gray-600: #6b7280;
    --gray-700: #4b5563;
    --gray-800: #374151;
    --gray-900: #1f2937;

    /* Fondos principales CLAROS */
    --bg-primary: var(--white);
    --bg-soft: var(--gray-50);
    --bg-light: var(--gray-100);
    --bg-medium: var(--gray-200);

    /* Texto */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-muted: var(--gray-500);
    --text-light: var(--gray-400);

    /* Bordes */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --border-red: rgba(192, 0, 0, 0.3);

    /* Sombras suaves */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
    --shadow-red: 0 4px 15px rgba(192, 0, 0, 0.2);

    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Bordes redondeados */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Animaciones */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-soft);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
    overflow-x: hidden;
}

/* Utilidades de texto */
.text-red {
    color: var(--primary-red);
}

.text-dark {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-secondary);
}

.text-white {
    color: var(--white);
}

.text-light {
    color: var(--text-light);
}

/* ============================================
   ANIMACIONES DE SCROLL - FADE UP
   ============================================ */

/* Estado inicial: elementos ocultos abajo */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

/* Estado activo: elementos visibles en posición */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes de velocidad */
.reveal-fast {
    transition-duration: 0.5s;
}

.reveal-slow {
    transition-duration: 1s;
}

/* Variantes de dirección */
.reveal-left {
    transform: translateX(-60px);
}

.reveal-left.active {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-right.active {
    transform: translateX(0);
}

/* Retrasos escalonados para elementos en grupo */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* Escala (zoom suave) */
.reveal-scale {
    transform: translateY(40px) scale(0.95);
}

.reveal-scale.active {
    transform: translateY(0) scale(1);
}

/* ============================================
   NAVBAR - BLANCO
   ============================================ */
.navbar-tech {
    background-image: url("../img/HD-wallpaper-red-brushed-metal-abstract.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: fixed;

    top: 30px;
    /* ← Solo este: justo debajo del top-banner */
    height: 70px;
    /* ← PX en vez de %, más estable */
    min-height: 30px;
    width: 100%;
    z-index: 1000;
    /* ← Menor que top-banner (1001) */
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.navbar-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-red);
}

.navbar-tech.scrolled {
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--border-red);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.navbar-brand-tech {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.navbar-brand-tech:hover {
    background: rgba(192, 0, 0, 0.05);
}

.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    display: none;
}

.logo-img {
    width: 3.5em;
    height: 3.5em;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    line-height: 1;
}

.brand-name span {
    color: var(--primary-red);
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item-tech {
    position: relative;
}

.nav-link-tech {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.8em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link-tech:hover,
.nav-link-tech.active {
    color: var(--white);
    background: rgba(192, 0, 0, 0.08);
}

.nav-link-tech i {
    font-size: 1rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.nav-link-tech:hover i,
.nav-link-tech.active i {
    color: var(--white);
}

.nav-item-tech:hover .nav-link-tech i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu-tech {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--primary-red);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.dropdown-menu-tech::before {
    display: none;
}

.nav-item-tech:hover .dropdown-menu-tech {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-header {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.dropdown-title {
    color: var(--primary-red);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.dropdown-item-tech {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.dropdown-item-tech:hover {
    background: rgba(192, 0, 0, 0.06);
    color: var(--text-primary);
    transform: translateX(5px);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    background: rgba(192, 0, 0, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.dropdown-icon i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.dropdown-item-tech:hover .dropdown-icon {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.dropdown-item-tech:hover .dropdown-icon i {
    color: var(--white);
}

.dropdown-content h6 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.dropdown-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* CTA Button */
.btn-tech {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 1rem;
    box-shadow: var(--shadow-red);
    text-decoration: none;
}

.btn-tech i {
    color: var(--white);
    font-size: 1rem;
}

.btn-tech:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 0, 0, 0.35);
}

/* Mobile Toggle */
.navbar-toggle-tech {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.toggle-line {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-toggle-tech {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        border-bottom: 3px solid var(--primary-red);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        align-items: stretch;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item-tech {
        width: 100%;
    }

    .nav-link-tech {
        padding: 1rem;
        font-size: 1.1rem;
        justify-content: space-between;
        color: var(--text-primary);
        border-bottom: 1px solid var(--gray-200);
    }

    .dropdown-menu-tech {
        position: static;
        transform: none;
        left: auto;
        opacity: 1;
        visibility: visible;
        display: none;
        background: rgba(192, 0, 0, 0.03);
        border: 1px solid var(--border-red);
        border-top: 2px solid var(--primary-red);
        border-radius: var(--radius-md);
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        box-shadow: none;
        width: 100%;
        min-width: auto;
    }

    .nav-item-tech:hover .dropdown-menu-tech {
        transform: none;
        /* Sobrescribe el hover de desktop */
    }

    .nav-item-tech.dropdown-active .dropdown-menu-tech {
        display: block;
    }

    .btn-tech {
        margin: 1rem 0 0 0;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   HERO SECTION - FONDO BLANCO/GRIS MUY CLARO
   ============================================ */
.hero-section {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    /*
    background-image: url('../img/img_blast(7).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
*/
}

/* Patrón sutil decorativo */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(192, 0, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.02) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

.hero-content {
    color: var(--text-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-title .text-red {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 540px;
}

@media (max-width: 968px) {
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .hero-buttons {
        justify-content: center;
    }
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 0, 0, 0.35);
    background: var(--primary-red-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--gray-300);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* Hero Images */
.hero-images {
    position: relative;
    grid-template-columns: 1fr 0.4fr;
    gap: 1.5rem;
    align-items: end;
}

@media (max-width: 968px) {
    .hero-images {
        max-width: 600px;
        margin: 0 auto;
    }
}

.hero-image-main {
    width: 100%;
    height: 800px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.hero-image-secondary {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
    margin-bottom: 2rem;
}

/* Stats Card */
.stats-card {
    position: absolute;
    bottom: -30px;
    left: 30%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 1.5rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 3rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

@media (max-width: 968px) {
    .stats-card {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 2rem;
        justify-content: center;
        gap: 2rem;
        padding: 1.5rem;
    }
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================
   SERVICES SECTION - FONDO GRIS CLARO
   ============================================ */
.services-section {
    padding: 6rem 0;
    background: var(--gray-100);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--gray-300);
}

.section-label::before {
    right: calc(100% + 15px);
}

.section-label::after {
    left: calc(100% + 15px);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title .text-red {
    color: var(--primary-red);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
}

/* ============================================
   CONTACT SECTION - FONDO BLANCO
   ============================================ */
.contact-section {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    border-top: 1px solid var(--border-light);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 90% 10%, rgba(192, 0, 0, 0.02) 0%, transparent 40%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info {
    color: var(--text-primary);
}

.contact-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.feature-item i {
    color: var(--primary-red);
    font-size: 1.25rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gray-50);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 968px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    position: relative;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 2.75rem;
    background: var(--white);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
}

.form-group textarea {
    padding-top: 1rem;
    min-height: 120px;
    resize: vertical;
}

.form-group textarea+i {
    top: 1.5rem;
    transform: none;
}

.btn-submit {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-red);
}

.btn-submit:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 0, 0, 0.35);
}

/* ============================================
   FOOTER - GRIS OSCURO (NO NEGRO)
   ============================================ */
.footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand h3 {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-400);
}

.footer-contact i {
    color: var(--primary-red);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.video-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    top: 0;
    left: 0;
}

.video-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.testeo {
    object-fit: cover;
}

/* Wrapper ocupa el mismo espacio que la imagen anterior */
.hero-video-wrapper {
    width: 100%;
    /* o el ancho específico que tenía .hero-image-main */
    height: auto;
    /* o altura fija si la tenías */
    aspect-ratio: 20/9;
    /* o la proporción de tu video */
    overflow: hidden;
    border-radius: 8px;
    /* si la imagen tenía bordes redondeados */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* si tenía sombra */
}

/* El video llena el wrapper */
.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* o 'contain' si no quieres recortes */
    display: block;
}

.hero-video-wrapper-service {
    width: 100%;
    /* o el ancho específico que tenía .hero-image-main */
    height: auto;
    /* o altura fija si la tenías */
    aspect-ratio: 16/9;
    /* o la proporción de tu video */
    overflow: hidden;
    border-radius: 8px;
    /* si la imagen tenía bordes redondeados */
}

/* El video llena el wrapper */
.hero-video-wrapper-service video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* o 'contain' si no quieres recortes */
    display: block;
}

.hero-section2 {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Altura de la sección */
    overflow: hidden;
}

/* Fondo (imagen/video) */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img,
.hero-background video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-container2 {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    /* centra vertical */
    justify-content: center;
    /* centra horizontal */
    text-align: center;
}

/* BLOQUE AZUL - Posicionado a la izquierda */
/*
.content-box {
    position: absolute;
    left: 5%;
    top: 5%;
    width: 35%;
    min-width: 20vh;
    height: 35%;
    background: rgba(235, 236, 236, 0.649);
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}
*/
.content-box {
    position: absolute;
    left: 5%;
    top: 5%;
    display: inline-block;
    padding: 20px 30px;
    background: rgba(235, 236, 236, 0.649);
    border-radius: 10px;
    max-width: 90%;
}

.content-box h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 20px;
    font-style: italic;
}

.content-box h1 sup {
    font-size: 0.6em;
}

.content-box p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background: #0072ce;
    /* Azul más claro para el botón */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    width: fit-content;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #005fa3;
}

/* Tablets */
@media (max-width: 768px) {
    .content-box {
        width: 50%;
        padding: 40px 30px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .hero-section2 {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .hero-background {
        position: relative;
        height: 250px;
        /* Altura fija para la imagen */
    }

    .content-box {
        position: relative;
        /* Ya no es absoluto */
        width: 100%;
        height: auto;
        min-width: auto;
        padding: 40px 20px;
    }
}

.imagen-section {
    width: 100%;
    position: relative;
}

.imagen-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.imagen-section :hover img {
    transform: scale(1.05);
}

.content-eslogan {
    position: absolute;
    left: 30%;
    bottom: 5%;
    width: 40%;
    min-width: 20vh;
    height: 15%;
    /* Ocupa toda la altura */
    background: rgba(235, 236, 236, 0.649);
    /* Azul oscuro semi-transparente */
    color: white;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.content-eslogan h1 {
    font-size: clamp(0.7rem, 1.3vw, 1.2rem);
    line-height: 1.2;
    margin-bottom: 20px;
    font-style: italic;
}

/* Tablets */
@media (max-width: 768px) {
    .content-eslogan {
        width: 50%;
        padding: 40px 30px;
    }
}

/* Móviles */
@media (max-width: 480px) {

    .content-eslogan {
        position: relative;
        /* Ya no es absoluto */
        width: 100%;
        height: auto;
        min-width: auto;
        padding: 40px 20px;
    }
}

.eslogan-section {
    text-align: center;
}

.eslogan-section h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #d2302d;
    line-height: 1.2;
    margin-bottom: 25px;
}

.eslogan-section p {
    font-size: 1.20rem;
    color: #555;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 20px;
    font-weight: 300;
}

/* Top Banner - 5 bloques: [vacío][izq][vacío][der][vacío] */
/* TOP BANNER - Barra negra superior */
.top-banner {
    background-color: #000000;
    color: #ffffff;
    font-size: 0.6rem;
    /* ← Un poco más grande para legibilidad */
    height: 30px;
    /* ← PX en vez de %, más predecible */
    min-height: 30px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.2px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-sizing: border-box;
}

.top-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 2;
    white-space: nowrap;
}

.top-banner-right {
    display: flex;
    align-items: center;
    gap: 15px;
    grid-column: 4;
    white-space: nowrap;
}

.top-banner-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-banner-item i {
    color: #ffffff;
    font-size: 1.2em;
}

.top-banner-item a {
    font-size: 1em;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-banner-item a:hover {
    color: #c00000;
}

.top-banner-separator {
    color: #666666;
    font-weight: 300;
    margin: 0 2px;
}

.top-banner-status {
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

.top-banner-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #25D366;
    color: #ffffff;
    padding: 1.5px 4px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.top-banner-whatsapp i {
    font-size: 0.9rem;
}

.top-banner-whatsapp:hover {
    background-color: #128C7E;
    color: #ffffff;
}

/* ============================================ */
/* RESPONSIVE - Tablet */
@media (max-width: 1200px) {
    .top-banner {
        grid-template-columns: 0.5fr auto 1fr auto 0.5fr;
        font-size: 0.7rem;
    }

    .top-banner-left {
        gap: 8px;
    }

    .top-banner-right {
        gap: 10px;
    }
}

/* RESPONSIVE - Móvil grande */
@media (max-width: 992px) {
    .top-banner {
        grid-template-columns: 0.2fr auto 0.5fr auto 0.2fr;
        font-size: 0.65rem;
        height: 35px;
        min-height: 35px;
    }

    .top-banner-status {
        display: none;
        /* ← Oculta "SITIO WEB EN CONSTRUCCIÓN" en móvil */
    }

    .oculto-movil-navbar {
        display: none;
    }

    .top-banner-left {
        gap: 6px;
    }

    .top-banner-right {
        gap: 8px;
    }

    .top-banner-whatsapp {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
}

/* RESPONSIVE - Móvil pequeño */
@media (max-width: 576px) {
    .top-banner {
        grid-template-columns: 0.04fr auto 0.04fr auto 0.04fr;
        /* 5 columnas: 2 espaciadores + 2 contenidos */
        height: 30px;
        /* Altura fija, no auto */
        min-height: 30px;
        padding: 0;
        /* Sin padding vertical */
        font-size: 0.5rem;
        /* Texto más pequeño para que quepa */
    }

    /* Los spacers se mantienen visibles */
    .top-banner-spacer {
        display: block;
    }

    /* Left en columna 2 */
    .top-banner-left {
        grid-column: 2;
        gap: 6px;
    }

    /* Spacer del medio en columna 3 (separación entre left y right) */

    /* Right en columna 4 */
    .top-banner-right {
        grid-column: 4;
        gap: 8px;
    }

    /* Ocultar elementos que no caben en móvil */
    .top-banner-status {
        display: none;
        /* Oculta "SITIO WEB EN CONSTRUCCIÓN" */
    }

    /* Reducir texto del teléfono */
    .top-banner-item strong {
        font-size: 0.65rem;
    }
}

/* CSS DEL BOTÓN DE CONSULTA */
.btn-enviar-consulta {
    color: #c00000;
    border: 2px solid #c00000;
    background: transparent;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-enviar-consulta:hover {
    background: #c00000;
    color: #fff;
}

/* WHATSAPP FLOTANTE */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Icono SVG de WhatsApp */
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Tooltip opcional */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Animación de pulso */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.4);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Versión móvil: mover a la izquierda para no tapar contenido */
@media (max-width: 768px) {
    .whatsapp-float {
        left: 20px;
        right: auto;
        bottom: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-tooltip {
        left: 70px;
        right: auto;
        transform: translateX(-10px);
    }

    .whatsapp-tooltip::after {
        left: -8px;
        right: auto;
        border-left-color: transparent;
        border-right-color: #333;
    }

    .whatsapp-float:hover .whatsapp-tooltip {
        transform: translateX(0);
    }
}