/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #C8102E;       /* Rojo Intenso */
    --primary-dark: #9e0b23;
    --accent: #5D9B9B;        /* Turquesa Vintage */
    --dark: #1a1a1a;          /* Negro suave */
    --gray: #f4f4f4;          /* Gris claro fondo */
    --white: #ffffff;
    --font-titles: 'Archivo Black', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. UTILIDADES GLOBALES
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-title {
    font-family: var(--font-titles);
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--primary);
    margin: 10px auto 0;
}
.section-subtitle { text-align: center; color: #666; margin-bottom: 3rem; }

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex; align-items: center;
}
.navbar-container {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.logo-nav { max-height: 130px; width: 200px; display: block; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link {
    text-decoration: none; color: var(--dark); font-weight: 700;
    text-transform: uppercase; font-size: 1.1rem; transition: var(--transition);
}
.nav-link:hover { color: var(--primary); }

.cta-nav {
    background: var(--primary); color: white !important;
    padding: 10px 20px; border-radius: 4px;
    transform: skew(-10deg);
}

/* Corrección del Nav-Toggle (Cuadradito) */
.nav-toggle {
    display: none; 
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero { position: relative; padding-top: 120px; padding-bottom: 80px; background: linear-gradient(135deg, #f8f8f8 50%, #e0e0e0 50%); overflow: hidden; }
.hero-content { display: flex; flex-wrap: wrap; align-items: center; position: relative; z-index: 1; }
.hero-text { flex: 1 1 500px; padding-right: 2rem; }

.hero-title {
    font-family: var(--font-titles);
    font-size: 3.5rem; font-weight: 900; 
    line-height: 1; margin-bottom: 1rem;
    font-style: italic; color: var(--dark);
}
.text-outline { color: var(--primary); text-shadow: 2px 2px 0px #000; }

.hero-subtitle { 
    margin-bottom: 35px; 
    max-width: 600px; 
}

.hero-image { flex: 1 1 400px; padding: 20px; margin-top: 60px; position: relative; z-index: 2; }
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--accent);
    border: 3px solid var(--dark);
    background-color: #ddd;
}
.carousel-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.carousel-slide.active { opacity: 1; z-index: 2; }

/* =========================================
   5. BOTONES (Texto Centrado y Animación)
   ========================================= */
.hero-buttons { 
    display: flex; 
    gap: 40px; /* Ajusta este valor (40px, 50px, etc.) para la separación deseada */
    flex-wrap: wrap; 
    align-items: stretch; 
    margin-top: 30px; 
    width: fit-content; /* Hace que el contenedor solo ocupe lo que ocupan los botones + gap */
    max-width: 650px;   /* Limita el ancho para que coincida visualmente con el título */
}

.btn { 
    text-decoration: none; 
    border-radius: 5px; 
    transition: var(--transition); 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; 
    border: none;
}

.btn-primary {
    background: linear-gradient(180deg, #C8102E 0%, #9e0b23 100%);
    color: white; padding: 12px 35px;
    border-bottom: 4px solid #6d0516;
    animation: pulse-red 2s infinite; /* EFECTO PULSO */
}

.btn-secondary {
    background: var(--dark); color: white;
    border-bottom: 4px solid #000;
    padding: 0 30px;
    font-size: 0.95rem;
    font-weight: 700; 
    text-transform: uppercase;
    min-height: 65px; /* Alineación con el botón de llamada */
    
}

.btn-multiline { display: inline-flex; flex-direction: column; line-height: 1.1; }
.btn-number { font-size: 1.7rem; font-weight: 900; }

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(200, 16, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

/* =========================================
   6. SECCIÓN FLOTA (Borde Negro Sólido)
   ========================================= */
.section-gray { background-color: var(--gray); padding: 80px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }

.service-card {
    background: white; border-radius: 8px; overflow: hidden;
    transition: var(--transition);
    border-bottom: 5px solid var(--accent);
}
.service-card:hover { transform: translateY(-10px); }

.card-image { width: 100%; overflow: hidden; cursor: pointer; }
.card-image img {
    width: 100%; 
    height: 350px; 
    object-fit: cover;
    display: block;
    border: 3px solid var(--dark); /* Borde Negro */
    border-radius: 10px;
}

.card-content { padding: 25px; text-align: center; }
.card-content h3 { color: var(--primary); margin-bottom: 10px; font-weight: 900; }

.specs-list { list-style: none; text-align: left; }
.specs-list li { margin-bottom: 8px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.gallery-grid .gallery-image:last-child {
    border-left: none !important;
}
.gallery-grid .gallery-image:first-child {
    border-left: 3px solid var(--dark);
}
/* =========================================
   7. SECCIÓN LOGÍSTICA (Versión Final)
    =========================================*/
.info-split { display: flex; flex-wrap: wrap; }
.info-col { flex: 1 1 300px; padding: 60px 40px; color: white; }
.dark-bg { background-color: var(--dark); }
.check-list { display: flex; flex-direction: column; gap: 25px; list-style: none; }
.check-list li { font-size: 1.3rem; display: flex; align-items: center; gap: 15px; }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; height: 100%; }
.gallery-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-left: 3px solid var(--dark);
    /* Esquinas: arriba-izq, arriba-der, abajo-der, abajo-izq */
    border-radius: 0 10px 10px 0; 
}

.mini-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; margin-top: 30px;
}
.mini-img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: 0.3s; }
/* =========================================
   8. OTROS TRABAJOS (Borde Negro)
   ========================================= */
.mini-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; }
.mini-img {
    width: 100%; height: 300px; object-fit: cover; border-radius: 8px; cursor: pointer;
    border: 3px solid var(--dark); /* Borde Negro */
    transition: var(--transition);
}
.mini-img:hover { transform: scale(1.03); }

.dark-bg h3 {
    font-size: 2.2rem; /* Ajusta este número (2.0rem, 1.5rem, etc.) para cambiar el tamaño */
    font-family: var(--font-titles); /* Para que use la misma letra gruesa que el resto del sitio */
    text-transform: uppercase;
    margin-bottom: 25px;
}
/* =========================================
   9. LIGHTBOX
   ========================================= */
#lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex; justify-content: center; align-items: center;
    z-index: 3000; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#lightbox.active { opacity: 1; pointer-events: all; }
#lightbox img { max-width: 90%; max-height: 85%; border: 4px solid white; border-radius: 5px; }

/* FOOTER & EXTRAS */
.footer { background: #111; color: #888; padding: 40px 0; text-align: center; }
.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px;
    width: 60px; height: 60px; background: #25D366;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2000;
}
.whatsapp-float img { width: 35px; }

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}