/* =========================================
   VARIABLES DE COLOR Y TIPOGRAFÍA
   ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #d1d5db;
    
    /* Colores de marca */
    --brand-orange: #ee7b1c;
    --brand-orange-strong: #ff5500; /* Naranja más fuerte para badge, links y botón */
    --brand-red: #ea1a22;
    --brand-yellow: #faea0a;
    
    --font-heading: 'Arial Black', Impact, sans-serif;
    --font-body: 'Arial', sans-serif;
    --transition-smooth: 0.3s ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    font-family: var(--font-body); 
}

/* =========================================
   BARRA DE NAVEGACIÓN Y MENÚ DESPLEGABLE
   ========================================= */
/* =========================================
   NAVBAR Y MENÚ DESPLEGABLE
   ========================================= */
.navbar {
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0.9375rem 3.125rem; 
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky; 
    top: 0; width: 100%; z-index: 1000;
    transition: transform 0.3s ease-in-out, background 0.3s ease; /* Transición suave */
}

/* Nueva clase para ocultar el menú al bajar */
.navbar-hidden {
    transform: translateY(-100%);
}

.logo img { 
    height: 60px; 
    margin: .5rem;
}

/* Contenedor derecho: alinea menú arriba y botón abajo/derecha */
.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.nav-links { 
    display: flex; 
    align-items: center; 
}

.nav-links > a, .dropbtn { 
    color: var(--text-main); 
    text-decoration: none; 
    margin-left: 25px; 
    font-family: inherit; 
    font-style: inherit; 
    font-weight: normal; 
    font-size: 1rem; 
    text-transform: uppercase; 
    transition: color var(--transition-smooth); 
    cursor: pointer;
}

.nav-links > a:hover, .dropdown:hover .dropbtn { 
    color: var(--brand-orange-strong); 
}

/* Dropdown */
.dropdown { 
    position: relative; 
    display: inline-block; 
    padding-bottom: 10px; 
    top: 5px;
}

.arrow { 
    font-size: 0.7rem; 
    margin-left: 3px; 
    transition: transform var(--transition-smooth); 
}

.dropdown:hover .arrow { 
    transform: rotate(180deg); 
    display: inline-block; 
}

.dropdown-content {
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(15px);
    position: absolute; 
    top: 100%; 
    left: 0;
    background-color: #111111;
    min-width: 320px; 
    box-shadow: 0px 10px 30px rgba(0,0,0,0.8); 
    border-top: 3px solid var(--brand-red);
    transition: all var(--transition-smooth);
    z-index: 1;
}

.dropdown:hover .dropdown-content { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.dropdown-content a {
    color: var(--text-main); 
    padding: 15px 20px; 
    text-decoration: none; 
    display: block; 
    font-size: 0.85rem; 
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all var(--transition-smooth);
    margin-left: 0; /* Resetea el margen para el submenú */
}

.dropdown-content a:hover { 
    background-color: rgba(234, 26, 34, 0.1); 
    color: var(--brand-red);
    padding-left: 25px; 
}

/* Botón de Teléfono en el Menú */
.btn-phone { 
    background-color: var(--brand-orange-strong); 
    color: #ffffff; 
    padding: 14px 28px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-size: 1.1rem; 
    font-weight: bold; 
    box-shadow: 6px 0px 15px rgba(255, 85, 0, 0.4); 
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth); 
}

.btn-phone:hover { 
    transform: translateX(-3px); 
    box-shadow: 8px 0px 20px rgba(255, 85, 0, 0.6); 
    background-color: var(--brand-orange);
}

/* =========================================
   SECCIÓN HERO
   ========================================= */
.hero {
    position: relative; 
    height: 80vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    background: url('hero-bg.jpg') center/cover no-repeat;
}

.hero-overlay { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: linear-gradient(135deg, rgba(10,10,10,0.50) 0%, rgba(10,10,10,0.8) 100%); 
}

.hero-content { 
    z-index: 1; 
    max-width: 700px; 
    padding: 20px; 
    margin-top: 10px;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: backgroundFade 16s infinite; /* 4s por imagen (4x4=16) */
}

/* Retrasos para que no salgan todas al mismo tiempo */
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }

@keyframes backgroundFade {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; transform: scale(1.05); } /* Pequeño zoom out para efecto pro */
    100% { opacity: 0; }
}

/* Asegura que el overlay esté por encima de las fotos pero por debajo del texto */
.hero-overlay {
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge { 
    display: inline-block; 
    padding: 6px 18px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    letter-spacing: 1px; 
    border-radius: 20px; 
    margin-bottom: 25px; 
    background: transparent; 
    border: 2px solid var(--brand-orange-strong);
    color: #ffffff;
}

.hero h1 { 
    font-family: var(--font-heading); 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    line-height: 1.2; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
}

/* Ajusta la altura para que coincida exactamente con el salto */
.text-slider {
    display: inline-flex;
    height: 1.1em; /* Altura de UNA sola línea */
    line-height: 1.1em;
    overflow: hidden;
    vertical-align: bottom;
    font-family: 'Verdana', sans-serif;
    font-size: 0.5em; 
    color: var(--brand-red);
    text-shadow: 0 0 15px rgba(234, 26, 34, 0.3);
}

.text-slider-inner {
    display: flex;
    flex-direction: column;
    animation: slideUp 12s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.text-slider-inner span {
    height: 1.1em; /* Debe ser IGUAL al height del padre */
    line-height: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideUp {
    /* Palabra 1: AUTO GLASS REPAIR */
    0%, 15% { transform: translateY(0); }
    
    /* Palabra 2: WINDSHIELD REPLACEMENT */
    20%, 35% { transform: translateY(-1.1em); }
    
    /* Palabra 3: REGULATOR REPLACEMENT */
    40%, 55% { transform: translateY(-2.2em); }
    
    /* Palabra 4: ROCK CHIP REPAIRS */
    60%, 75% { transform: translateY(-3.3em); }
    
    /* Palabra 5 (Repetida): AUTO GLASS REPAIR */
    /* Aquí es donde se quedaba en negro. Forzamos que se mantenga hasta el final */
    80%, 100% { transform: translateY(-4.4em); }
}

.hero p { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin-bottom: 40px; 
    line-height: 1.6; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* Enlaces dentro del párrafo */
.text-link {
    color: var(--brand-orange-strong);
    text-decoration: underline;
    text-decoration-color: rgba(255, 85, 0, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition-smooth);
}

.text-link:hover {
    color: var(--brand-red);
    text-decoration-color: var(--brand-red);
}

/* Botones Hero */
.btn { 
    padding: 16px 40px; 
    font-size: 0.9rem; 
    font-weight: bold; 
    border-radius: 30px; 
    text-decoration: none; 
    text-transform: uppercase; 
    margin: 0 10px; 
    display: inline-block; 
    transition: all var(--transition-smooth); 
    letter-spacing: 1px;
}

.btn-primary { 
    background-color: var(--brand-orange); 
    color: #000; 
    border: 2px solid var(--brand-orange); 
}

.btn-primary:hover { 
    background-color: transparent; 
    color: var(--brand-orange); 
    box-shadow: 0 0 20px rgba(238, 123, 28, 0.3); 
}

.btn-secondary { 
    background-color: transparent; 
    color: white; 
    border: 1px solid white; /* Borde más fino */
}

.btn-secondary:hover { 
    background-color: white; 
    color: var(--bg-dark); 
}

/* Trust Section (Hero Avatar) */
.trust-section { 
    margin-top: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    font-weight: bold; 
    font-size: 0.85rem; 
    letter-spacing: 1px;
}

.avatars { display: flex; }

.avatar { 
    width: 40px; height: 40px; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    margin-left: -15px; 
    border: 3px solid var(--bg-dark); 
    background-size: cover; 
    font-size: 0.9rem;
}

.avatar-1 { 
    margin-left: 0; 
    background-color: var(--brand-red); 
    color: white;
}
.avatar-2 { background-color: #333; }

/* =========================================
   SECCIÓN BRANDS (MARCAS)
   ========================================= */
.brands {
    background: linear-gradient(90deg, #1a0000 0%, var(--bg-dark) 50%, #1a0000 100%);
    padding: 30px 50px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.brands-title-container {
    flex: 1;
    position: relative;
}

.brands-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.brands-title::before {
    content: attr(data-text);
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3.5rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    z-index: -1;
    white-space: nowrap;
}

.brands-logos {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    align-items: center;
}

.brands-logos img {
    height: 40px;
    opacity: 0.6;
    transition: opacity var(--transition-smooth);
    filter: grayscale(100%) brightness(200%); 
}

.brands-logos img:hover {
    opacity: 1;
    filter: none; 
}

/* =========================================
   SECCIÓN ABOUT (CONFIANZA Y BENEFICIOS)
   ========================================= */
.about {
    padding: 100px 5vw;
    background-color: var(--bg-dark);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 10px;
}

.about-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Botón Giratorio SVG */
.spinning-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background-color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(234, 26, 34, 0.4);
    transition: transform var(--transition-smooth);
}

.spinning-badge:hover {
    transform: scale(1.05);
}

.spinning-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.badge-arrow {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    z-index: 2;
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-subtitle hr {
    width: 50px;
    border: none;
    border-top: 1px dashed var(--brand-red);
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    margin-top: 30px;
    margin-bottom: 40px;
}

.benefits-list li {
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.asterisks {
    color: var(--brand-red);
    margin-right: 15px;
    letter-spacing: 2px;
}

.about-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-red {
    background-color: var(--brand-red);
    color: white;
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all var(--transition-smooth);
    border: 2px solid var(--brand-red);
}

.btn-primary-red:hover {
    background-color: transparent;
    color: var(--brand-red);
}

.btn-outline {
    background-color: transparent;
    color: white;
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: white;
    background-color: white;
    color: var(--bg-dark);
}

/* =========================================
   WHY CHOOSE US SECTION (MEJORADA)
   ========================================= */
.why-choose-us {
    padding: 100px 5vw;
    background-color: var(--bg-dark); /* Usando la variable oscura de tu paleta */
}

.why-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.8rem);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Tarjetas pulidas con degradado aplicando el NARANJA PRINCIPAL */
.why-card {
    background: linear-gradient(145deg, var(--brand-orange), #c75e0c); /* Degradado usando el naranja de Marlee */
    padding: 35px 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    /* Sombra con el tono naranja exacto en RGBA (238, 123, 28) */
    box-shadow: 0 15px 35px rgba(238, 123, 28, 0.4); 
}

.why-card-red{
    background: linear-gradient(145deg, var(--brand-red), #ff0000); /* Degradado usando el naranja de Marlee */
    padding: 35px 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.why-card-red:hover {
    transform: translateY(-8px);
    /* Sombra con el tono naranja exacto en RGBA (238, 123, 28) */
    box-shadow: 0 15px 35px rgba(238, 123, 28, 0.4); 
}

.why-icon {
    margin-bottom: 20px;
}

/* Estilos para los íconos SVG - Aplicando el AMARILLO ACENTO */
.why-icon svg {
    width: 45px;
    height: 45px;
    stroke: var(--brand-yellow); /* Íconos en el amarillo del logo para resaltar */
    transition: transform var(--transition-smooth);
}

.why-card:hover .why-icon svg {
    transform: scale(1.15) rotate(3deg); 
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Imagen Derecha e Insignias */
.why-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.why-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

/* Insignias - Aplicando el ROJO ACENTO */
.hex-badge {
    position: absolute;
    background-color: var(--brand-red); /* El rojo del logo de Marlee */
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: -5px 5px 15px rgba(234, 26, 34, 0.4); /* Sombra con el tono rojo exacto */
    clip-path: polygon(100% 0, 100% 100%, 15% 100%, 0 50%, 15% 0);
    width: 140px;
    height: 100px;
}

.badge-top { top: 50px; left: -20px; }
.badge-bottom { bottom: 50px; left: -60px; }

.badge-number { font-family: var(--font-heading); font-size: 2rem; line-height: 1; }
.badge-text { font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }

/* Imagen Derecha e Insignias */
.why-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.why-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    /* Recorte poligonal similar al video */
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hex-badge {
    position: absolute;
    background-color: var(--brand-red);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.5);
    /* Forma de la insignia apuntando a la izquierda */
    clip-path: polygon(100% 0, 100% 100%, 15% 100%, 0 50%, 15% 0);
    width: 140px;
    height: 100px;
}

.badge-top {
    top: 50px;
    left: -20px;
}

.badge-bottom {
    bottom: 50px;
    left: -60px;
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* =========================================
   SERVICES SECTION (GRID & HOVER)
   ========================================= */
.services-section {
    padding: 100px 5vw;
    background-color: var(--bg-dark);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.center-title {
    display: flex;
    justify-content: center;
}

.justify-center {
    justify-content: center;
    margin: 20px 0;
}

.services-main-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.5rem);
    text-transform: uppercase;
}

.services-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #111;
    border: 1px solid var(--brand-red);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Caja de Imagen y Animación de Overlay */
.service-img-box {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.service-arrow {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: var(--brand-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    z-index: 2; /* Para que quede arriba del overlay */
    transition: transform var(--transition-smooth), background var(--transition-smooth);
}

.service-arrow:hover {
    background-color: var(--brand-orange-strong);
    transform: scale(1.1);
}

/* El cuadro negro que sube */
.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9); /* Fondo muy oscuro semi-transparente */
    padding: 30px 25px;
    display: flex;
    align-items: flex-end; /* Alinea el texto hacia abajo */
    transform: translateY(101%); /* Lo esconde debajo del contenedor */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Transición súper suave */
}

.service-overlay p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* El Trigger: Al hacer hover en la tarjeta, sube el overlay */
.service-card:hover .service-overlay {
    transform: translateY(0);
}

.service-title-box {
    padding: 20px;
    background-color: var(--bg-dark);
    border-top: 2px solid var(--brand-red);
    flex-grow: 1;
}

.service-title-box h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    color: white;
    line-height: 1.2;
}

/* =========================================
   PROCESS SECTION (Línea de Tiempo)
   ========================================= */
.process-section {
    padding: 100px 5vw;
    /* Fondo oscuro para que resalte la sección */
    background-color: #050505; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    gap: 15px;
}

.step-card {
    background-color: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    flex: 1;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    position: relative;
}

/* Efecto hover con el Naranja de Marlee */
.step-card:hover {
    border-color: var(--brand-orange);
    background-color: rgba(20, 20, 20, 0.9);
    box-shadow: 0 10px 25px rgba(238, 123, 28, 0.15);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
}

.step-icon svg {
    width: 38px;
    height: 38px;
    stroke: var(--brand-red); /* Íconos en rojo de Marlee */
    transition: transform var(--transition-smooth);
}

.step-card:hover .step-icon svg {
    transform: scale(1.1);
}

/* El número gigante hueco (Outline) */
.step-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 0.75;
    color: transparent; /* Hace que el texto sea transparente */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2); /* Borde blanco sutil */
    transition: all var(--transition-smooth);
}

.step-card:hover .step-number {
    -webkit-text-stroke: 1.5px var(--brand-orange); /* Se vuelve naranja al hacer hover */
    color: rgba(238, 123, 28, 0.1); /* Ligero relleno naranja */
}

.step-arrow {
    color: var(--brand-red);
    font-size: 1.8rem;
    font-weight: bold;
}

/* =========================================
   EXPERTISE SECTION (Imagen y Texto)
   ========================================= */
.expertise-section {
    padding: 100px 5vw;
    background-color: var(--bg-dark);
}

.expertise-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Le da un poco más de espacio a la imagen */
    gap: 60px;
    align-items: center;
}

.expertise-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    /* Recorte diagonal en la parte derecha como en el video */
    clip-path: polygon(0 0, 93% 0, 100% 100%, 0 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.expertise-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.expertise-intro {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 35px;
}

.expertise-item {
    margin-bottom: 25px;
}

.expertise-item h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--brand-orange); /* Naranja para resaltar los subtítulos */
}

.expertise-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-section {
    padding: 100px 5vw;
    background-color: #0d0d0d;
}

.portfolio-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.portfolio-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    /* Borde rojo de Marlee */
    border: 3px solid var(--brand-red);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.portfolio-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(234, 26, 34, 0.4); /* Brillo rojo al pasar el ratón */
    z-index: 2;
    position: relative;
}

/* =========================================
   AREAS WE SERVE SECTION
   ========================================= */
.areas-section {
    padding: 80px 5vw 100px 5vw;
    background-color: var(--bg-dark);
    text-align: center;
}

.areas-main-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.area-item {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--brand-red); /* Texto y pin en rojo de Marlee */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pin-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    stroke: var(--brand-red);
}

/* =========================================
   CALL TO ACTION & TICKER SECTION
   ========================================= */
.cta-wrapper {
    position: relative;
    width: 100%;
}

.cta-banner {
    background: url('/img/inicio/img16.png') center/cover no-repeat; /* Pon aquí la foto de fondo de la camioneta */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinea el cuadro a la derecha */
    padding: 50px 5vw;
    position: relative;
}

/* Capa oscura general para darle contraste al fondo */
.cta-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.8) 100%);
}

.cta-content-box {
    background: rgba(20, 20, 20, 0.85); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 3px solid var(--brand-orange); /* Detalle en naranja principal */
    padding: 50px 40px;
    max-width: 550px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.cta-content-box h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta-content-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cta-phone {
    color: var(--brand-red); /* El teléfono en rojo para que contraste dentro del párrafo */
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* MARQUESINA DESLIZANTE (TICKER) */
.scrolling-ticker {
    background-color: var(--brand-orange); /* Fondo rojo intenso */
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    white-space: nowrap;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.ticker-content {
    display: flex;
    animation: marquee 25s linear infinite; /* 25s de velocidad, ajusta si lo quieres más rápido o lento */
}

.ticker-content span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 50px; /* Separación entre cada frase */
}

/* =========================================
   REVIEWS SECTION
   ========================================= */
.reviews-section {
    padding: 100px 5vw;
    background-color: #050505;
    text-align: center;
}

.carousel-wrapper {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.reviews-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Oculta scrollbar en Firefox */
}

.reviews-track::-webkit-scrollbar {
    display: none; /* Oculta scrollbar en Chrome/Safari */
}

.review-card {
    min-width: 300px;
    max-width: 350px;
    background-color: #111;
    border-top: 4px solid var(--brand-orange); /* Borde superior naranja Marlee */
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    scroll-snap-align: start;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.reviewer-info h4 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-icon {
    width: 16px;
    color: #e74c3c; /* Check rojo */
}

.reviewer-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stars {
    color: var(--brand-yellow); /* Estrellas amarillas Marlee */
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more {
    color: var(--brand-red);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Botones del carrusel */
.carousel-btn {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    position: absolute;
    z-index: 10;
    transition: background var(--transition-smooth);
}

.carousel-btn:hover { background-color: var(--brand-red); }
.left-btn { left: -20px; }
.right-btn { right: -20px; }

/* =========================================
   CONTACT & FORM SECTION
   ========================================= */
.contact-section {
    padding: 100px 5vw;
    background-color: var(--bg-dark);
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.8rem);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Líneas en blanco (antes rojas) */
.section-subtitle hr { width: 3.125rem; border: none; border-top: 1px dashed #ffffff; opacity: 0.6; }

/* SECCIONES: PADDING REDUCIDO (Espacios arriba y abajo) */
.about, .why-choose-us, .services-section, .process-section, .expertise-section, .portfolio-section, .areas-section, .reviews-section, .contact-section {
    padding: 3.75rem 5vw; /* Reducido de 6.25rem a 3.75rem (60px aprox) */
}

/* Espacio reducido específicamente para BRANDS WE USE */
.brands {
    background: linear-gradient(90deg, #1a0000 0%, var(--bg-dark) 50%, #1a0000 100%);
    padding: 2rem 3.125rem; /* Reducido para que esté más pegado */
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.info-block { margin-bottom: 25px; }
.info-block h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 5px; color: white;}
.info-block a, .info-block p { color: var(--text-muted); text-decoration: none; font-size: 1rem; }
.info-block a:hover { color: var(--brand-orange); }

.map-container { margin-top: 30px; }

/* Formulario */
.contact-form-box {
    background-color: #0f0f0f;
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid var(--brand-red);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.contact-form-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.contact-form-box input[type="text"], 
.contact-form-box input[type="email"], 
.contact-form-box input[type="tel"] {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
    margin-bottom: 25px;
    font-family: var(--font-body);
}

.contact-form-box input:focus {
    outline: none;
    border-bottom: 2px solid var(--brand-orange);
}

.phone-input-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 25px;
}
.phone-input-group span { margin-right: 10px; font-size: 1.2rem; }
.phone-input-group input { border-bottom: none !important; margin-bottom: 0 !important; }

.checkbox-title { font-weight: bold; color: var(--brand-red); margin-bottom: 15px; }

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.checkbox-group label, .consent-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.consent-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 15px;}
.consent-group span { line-height: 1.4; font-size: 0.85rem; }

/* Custom Checkbox color */
input[type="checkbox"] { accent-color: var(--brand-orange); transform: scale(1.2); margin-top: 3px;}

.form-links { text-align: center; font-size: 0.85rem; }
.form-links a { color: var(--text-muted); text-decoration: underline; margin: 0 5px; }
.form-links a:hover { color: var(--brand-orange); }

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding: 0 5vw 50px 5vw;
}

.footer-logo { height: 60px; margin-bottom: 20px; }
.brand-col p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.footer-col h3 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; display: flex; align-items: center; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: bold; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--brand-orange); }

.contact-list li { color: var(--text-muted); font-size: 0.95rem; }

.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a {
    width: 35px; height: 35px;
    background-color: var(--brand-red);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-weight: bold;
    transition: transform 0.3s, background 0.3s;
}
.social-icons a:hover { transform: scale(1.1); background-color: var(--brand-orange); }

.footer-bottom {
    background-color: #000;
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.85rem;
}


/* La animación mueve el bloque un 50% hacia la izquierda, como el texto está duplicado, el bucle es perfecto */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



.mobile-menu-btn {
    display: none; /* Oculto en PC */
    background: none; border: none; cursor: pointer;
}

.hero-content { position: relative; z-index: 1; max-width: 56.25rem; /* 900px */ padding: 1.25rem; margin-top: 3.125rem;}


/* =========================================
   MEDIA QUERIES (TABLETS & PHONES)
   ========================================= */

/* Dispositivos Medianos (Tabletas hasta 1024px) */
@media (max-width: 64rem) {
    .navbar { padding: 0.9375rem 2rem; }
    
    /* Mostrar Menú Hamburguesa */
    .mobile-menu-btn { display: block; }
    
    /* Configurar Navbar Retráctil */
    .header-right {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #0a0a0a;
        flex-direction: column;
        padding: 2rem 0;
        border-top: 2px solid var(--brand-red);
        /* Oculto por defecto usando clip-path para animación suave o display none */
        display: none;
    }
    
    .header-right.active { display: flex; }
    
    .nav-links { flex-direction: column; width: 100%; gap: 1.5rem; }
    .nav-links > a, .dropdown { margin-left: 0; font-size: 1.2rem; }
    
    .dropdown-content { 
        position: static; box-shadow: none; border-top: none; 
        background: transparent; padding-left: 1rem; 
        min-width: 100%; text-align: center;
        display: none; /* Oculto por defecto en móvil */
        opacity: 1; visibility: visible; transform: none;
    }
    
    /* En móvil, los submenús se muestran al hacer hover/focus en el padre */
    .dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { 
        display: block; 
    }
    
    /* Grillas a 1 o 2 columnas */
    .about-container, .why-container, .expertise-container, .contact-container { grid-template-columns: 1fr; gap: 3rem;}
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2.5rem;}
    
    .brands { flex-direction: column; text-align: center; gap: 2rem; }
    .brands-title::before { left: 50%; transform: translateX(-50%); }
    .brands-logos { justify-content: center; flex-wrap: wrap; }
    
    .why-img, .expertise-image img { clip-path: none; } /* Quita recortes diagonales */
}

/* Dispositivos Pequeños (Teléfonos hasta 768px) */
@media (max-width: 48rem) {
    /* Ajustar textos grandes */
    .hero h1 { font-size: 1.5rem; }
    .about-content h2, .why-content h2, .services-main-title, .areas-main-title, .contact-info h2 { font-size: 1.8rem; }
    .brands-title::before { font-size: 2.5rem; }
    
    /* Grillas a 1 columna */
    .services-grid, .why-grid, .portfolio-grid, .checkbox-group, .footer-container { grid-template-columns: 1fr; }
    
    .process-steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); margin: 1rem 0; }
    
    .spinning-badge { width: 5.625rem; height: 5.625rem; bottom: -1rem; right: 1rem; } /* 90px */
    .hex-badge { width: 7rem; height: 5rem; padding: 0.625rem; }
    .badge-top { left: -1rem; }
    .badge-bottom { left: -1rem; bottom: 1rem; }
    
    .carousel-btn { display: none; } /* En teléfono usan scroll táctil */
    
    .ticker-content span { font-size: 1rem; margin-right: 1.875rem; }
    
    .portfolio-img { height: 12.5rem; } /* 200px */
}

/* --- TARJETAS WHY CHOOSE US (Naranja y Oscuras) --- */
.why-card-orange {
    background: linear-gradient(145deg, var(--brand-orange), #c75e0c);
    padding: 2.1875rem 1.5625rem; border-radius: 0.75rem; color: white;
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.4); border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.why-card-orange:hover {
    transform: translateY(-0.5rem); box-shadow: 0 0.9375rem 2.1875rem rgba(238, 123, 28, 0.4); 
}

.why-card-dark {
    background: #111111; /* Fondo oscuro */
    padding: 2.1875rem 1.5625rem; border-radius: 0.75rem; color: white;
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.4); border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.why-card-dark:hover {
    transform: translateY(-0.5rem); box-shadow: 0 0.9375rem 2.1875rem rgba(255, 255, 255, 0.1); 
}

/* --- ANIMACIONES --- */
/* 1. Animación de flotar para la insignia */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* 2. Animación de entrada al cargar la página */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-load {
    opacity: 0;
    animation: fadeSlideUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

/* 3. Animación al hacer scroll para "Brands We Use" */
.animate-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CORRECCIONES GENERALES --- */
@media (max-width: 1024px) {
    .navbar { padding: 1rem 1.5rem; }
    
    /* Menú Móvil estilo Cortina */
    .header-right {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido a la derecha */
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column !important;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .header-right.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-links > a, .dropbtn {
        margin-left: 0;
        font-size: 1.4rem;
        font-weight: bold;
    }

    /* Ajuste de Botón de Teléfono en Móvil */
    .btn-phone {
        margin-top: 2rem;
        width: 80%;
        text-align: center;
    }

    /* Ajuste de Grillas */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 20px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .services-grid, .portfolio-grid, .footer-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .badge-bottom {
        left: 0;
        bottom: -20px;
    }

    /* Evitar que el slider de texto se vea gigante en móvil */
    .text-slider {
        font-size: 0.4em; 
    }

    .cta-content-box {
        padding: 30px 20px;
        margin: 0 10px;
    }
}

/* --- BOTÓN HAMBURGUESA SIEMPRE ARRIBA --- */
.mobile-menu-btn {
    display: none;
    z-index: 1001;
    position: relative;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 48rem) {
    .hero-buttons {
        display: flex;
        flex-direction: column; /* Apilarlos uno sobre otro */
        gap: 15px; /* Espacio entre ellos */
        width: 100%;
        max-width: 320px; /* Evita que se estiren demasiado en pantallas medianas */
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%; /* Que ocupen todo el ancho del contenedor */
        margin: 0; /* Quitamos los márgenes laterales del PC */
        padding: 14px 20px; /* Padding más cómodo para dedos */
        font-size: 1rem; /* Un poco más legibles */
    }

    /* Ajuste específico para el borde del secundario */
    .btn-secondary {
        border-width: 2px; /* Un poco más de grosor para que no se pierda con el brillo */
    }
}

@media (max-width: 1024px) {
    .dropdown-content {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border-top: none;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .dropdown.open .dropdown-content {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        margin-top: 15px;
    }

    .dropdown.open .arrow {
        transform: rotate(180deg);
        display: inline-block;
    }
}