/* --- Base --- */
:root {
    --primary: #fd7522;
    --dark: #1a1a1a;
	--white: #9a9a9a;
    --light: #f8f9fa;
    --font: 'Montserrat', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: #333; line-height: 1.6; overflow-x: hidden; }
html { scroll-behavior: smooth; }

/* --- Nav --- */
nav { padding: 15px 0; position: fixed; width: 100%; z-index: 1000; background-color: rgba(0, 0, 0, 0.9);}
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.menu-links { display: flex; list-style: none; }
.menu-links a { text-decoration: none; color: var(--white); padding: 10px 15px; font-size: 0.9rem; transition: 0.3s; }
.menu-links a:hover { color: var(--primary); }
#menu-toggle { display: none; }
.menu-icon { display: none; font-size: 25px; cursor: pointer; }

/* --- Hero Slider (3 imágenes) --- */
.hero { height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; animation: fadeSlider 15s infinite; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
@keyframes fadeSlider {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    45% { opacity: 0; }
    100% { opacity: 0; }
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 10px; text-transform: uppercase;}
.cta-button { display: inline-block; padding: 15px 35px; background: var(--primary); color: #fff; text-decoration: none; border-radius: 50px; font-weight: 700; transition: 0.3s; }

/* --- Secciones --- */
.content-section { padding: 16% 20px; }
.grey-bg { background: #f4f4f4; }
.container { max-width: 1100px; margin: 0 auto; text-align: center; }
h2 { font-size: 2.2rem; margin-bottom: 40px; text-transform: uppercase; }

.grid-info, .services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; margin-top: 30px; 
}
.info-card, .service-card { padding: 30px; background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: left; border-left: 4px solid var(--primary); }

/* --- Alianzas --- */
.parallax-bg { position: relative; padding: 20% 0; background-attachment: fixed; background-size: cover; color: #fff;}
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6);}
.brands-grid { position: relative; z-index: 2; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;}
.brands-grid span { font-size: 1.5rem; font-weight: 700; }

/* --- Verticales (NUEVA ESTRUCTURA ANTIFALLOS) --- */
.verticales-parallax { position: relative; padding: 10% 20px; background-size: cover; background-attachment: fixed; color: #fff; }
.overlay-dark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); }
.verticales-container { 
    position: relative; z-index: 2; 
    display: flex; 
    flex-wrap: wrap; /* Permite que las tarjetas bajen si no caben */
    gap: 20px; 
    justify-content: center;
}
.v-card { 
    background: rgba(255,255,255,0.08); 
    padding: 30px; 
    border-radius: 12px; 
    flex: 1 1 calc(45% - 20px); /* Ocupa casi la mitad */
    min-width: 300px;
    border: 1px solid rgba(255,255,255,0.1);
}
.v-card.v-wide { 
    flex: 1 1 100%; /* Esta tarjeta SIEMPRE ocupará el 100% para no desconfigurarse */
    border-left: 5px solid var(--primary);
}
.v-card h3 { color: var(--primary); margin: 10px 0; }
.v-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 15px; }
.v-col { flex: 1 1 250px; }
.highlight { background: rgba(253, 117, 34, 0.15); padding: 15px; border-radius: 8px; }

/* --- Footer --- */
.contact-footer { padding: 16% 20px; background: var(--dark); color: #fff; text-align: center; }
.email-text { font-size: 1.8rem; color: var(--primary); font-weight: 700; }

/* Estilos del botón flotante */
#backToTop {
    display: none; /* Oculto por defecto */
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    z-index: 9999; 
    border: none; 
    outline: none; 
    background-color: var(--primary); /* Usa tu color naranja */
    color: white; 
    cursor: pointer; 
    padding: 10px 18px; 
    border-radius: 50%; /* Forma circular */
    font-size: 22px; 
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, background-color 0.3s, opacity 0.3s;
}

#backToTop:hover {
    background-color: #e6641a; /* Un tono más oscuro al pasar el mouse */
    transform: scale(1.1);
}

/* Animación de aparición */
#backToTop.show {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .menu-icon { display: block; }
    .menu-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #000; flex-direction: column; padding: 20px; opacity: 0.7; }
    #menu-toggle:checked ~ .menu-links { display: flex; }
    .hero-content h1 { font-size: 2.2rem; }
    .v-card { flex: 1 1 100%; }
}

.reveal { animation: revealAnim 1s forwards; }
@keyframes revealAnim { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }