/* --- 0. CONFIGURACIÓN GLOBAL --- */
:root {
    --primary: #9e1b28;
    --dark: #0a0a0a;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--dark); color: var(--white); overflow-x: hidden; }

/* CLASE MAESTRA PARA SECCIONES FULL SCREEN */
section, header {
    min-height: 100vh; /* Altura mínima de pantalla completa */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado vertical */
    align-items: center;     /* Centrado horizontal */
    position: relative;
}

/* --- 1. NAVBAR --- */
.navbar {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 95%; max-width: 1400px; height: 70px; padding: 0 30px;
    display: flex; justify-content: space-between; align-items: center; z-index: 1000;
    background-color: #0a0a0a; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 1); transition: all 0.4s ease;
}
.navbar-brand { display: flex; align-items: center; height: 100%; }
.navbar-brand img { height: 40px; width: auto; object-fit: contain; padding-bottom: 5px; }
.nav-menu { display: none; }
.nav-cta {
    background-color: var(--primary); color: var(--white); padding: 8px 24px; border-radius: 4px;
    text-decoration: none; font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase;
    font-family: var(--font-head); transition: var(--transition); clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%); position: relative;
}
.nav-cta:hover { background-color: var(--white); color: var(--primary); transform: translateY(-1px); }
@media (min-width: 992px) {
    .navbar { top: 30px; width: 90%; }
    .nav-menu { display: flex; gap: 30px; align-items: center; }
    .nav-link { color: #b0b0b0; text-decoration: none; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; position: relative; padding: 5px 0; font-family: var(--font-head); transition: color 0.3s ease; }
    .nav-link:hover { color: var(--white); }
    .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background-color: var(--primary); transition: width 0.3s ease; }
    .nav-link:hover::after { width: 100%; }
}

/* --- 2. HERO SECTION --- */
.hero { 
    /* Hereda min-height: 100vh de la regla global */
    background: radial-gradient(circle at center, #1f1f1f 0%, #000000 100%); 
    overflow: hidden;
}
.blueprint-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 80px 80px; z-index: 1; pointer-events: none; }
.city-silhouette { position: absolute; bottom: 0; left: 0; width: 100%; height: 35vh; z-index: 2; opacity: 0.9; background: linear-gradient(to top, #111 0%, #111 100%) 0% 100% / 10% 60% no-repeat, linear-gradient(to top, #161616 0%, #161616 100%) 12% 100% / 8% 80% no-repeat, linear-gradient(to top, #1a1a1a 0%, #1a1a1a 100%) 35% 100% / 15% 90% no-repeat, linear-gradient(to top, #141414 0%, #141414 100%) 55% 100% / 10% 70% no-repeat; }
.crane-layer { position: absolute; bottom: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.truss { background-color: #222; border: 1px solid #333; background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 11px); }
.crane-1 { position: absolute; left: 10%; bottom: 0; height: 75vh; width: 300px; }
.crane-2 { position: absolute; right: 12%; bottom: 0; height: 55vh; transform: scaleX(-1); opacity: 0.6; }
.tower { position: absolute; bottom: 0; left: 0; width: 14px; height: 100%; }
.jib-container { position: absolute; top: 20px; left: 0; width: 0; height: 0; }
.jib { position: absolute; top: -6px; left: -40px; width: 300px; height: 12px; transform-origin: 47px 50%; }
.counter-weight { position: absolute; top: 0; left: 0; width: 45px; height: 20px; background: #333; border: 1px solid #444; }
.trolley { position: absolute; top: 12px; left: 100px; width: 10px; height: 8px; background: #555; }
.cable { position: absolute; top: 4px; left: 4px; width: 1px; height: 60px; background: rgba(255,255,255,0.5); transform-origin: top; }
.load { position: absolute; bottom: 0; left: -7px; width: 15px; height: 12px; background: var(--primary); box-shadow: 0 0 15px rgba(158, 27, 40, 0.5); }
.vignette { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(transparent 30%, rgba(0,0,0,0.9) 100%); z-index: 4; }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 1000px; padding: 0 20px; }
.hero-subtitle-top { display: block; color: var(--primary); font-weight: 700; letter-spacing: 4px; font-size: 1rem; margin-bottom: 10px; text-transform: uppercase; font-family: var(--font-head); }
.hero-title { font-size: 3.5rem; line-height: 1; font-weight: 900; text-transform: uppercase; color: var(--white); margin-bottom: 10px; text-shadow: 0 5px 20px rgba(0,0,0,1); letter-spacing: 2px; font-family: var(--font-head); }
.hero-subtitle { font-size: 1.2rem; color: #ccc; font-weight: 400; margin-bottom: 40px; letter-spacing: 1px; text-transform: uppercase; }
.hero-btn-main { display: inline-block; padding: 18px 50px; background: var(--primary); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; text-decoration: none; position: relative; overflow: hidden; border: none; cursor: pointer; font-size: 1.1rem; clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%); font-family: var(--font-head); transition: var(--transition); }
.hero-btn-main::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: -1; transform: scaleX(0); transform-origin: right; transition: var(--transition); }
.hero-btn-main:hover { color: var(--primary); transform: scale(1.05); }
.hero-btn-main:hover::before { transform: scaleX(1); transform-origin: left; }
@media (min-width: 768px) { .hero-title { font-size: 5.5rem; } .crane-1 { left: 18%; } .crane-2 { right: 18%; } }

/* --- 3. SECCIÓN INFO (100vh Centrado) --- */
.info-section {
    background-color: var(--white); color: var(--dark);
    z-index: 10;
    /* Padding seguro para pantallas móviles */
    padding: 10vh 5%; 
}
.info-container { display: flex; flex-direction: column; gap: 50px; max-width: 1200px; margin: 0 auto; width: 100%; }
.info-text-col, .info-img-col { width: 100%; }
.section-tag { color: var(--primary); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 10px; display: block; font-family: var(--font-head); }
.section-title-dark { font-size: 2.5rem; line-height: 1; font-weight: 700; text-transform: uppercase; margin-bottom: 30px; color: #1a1a1a; font-family: var(--font-head); }
.info-list { list-style: none; margin-bottom: 40px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 20px; font-size: 1.05rem; color: #444; line-height: 1.5; }
.info-item::before { content: ''; min-width: 12px; height: 12px; background-color: var(--primary); margin-right: 15px; margin-top: 6px; clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.btn-secondary { align-self: flex-start; padding: 15px 40px; background: #1a1a1a; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%); transition: var(--transition); font-family: var(--font-head); }
.btn-secondary:hover { background: var(--primary); transform: translateY(-3px); }
.concrete-mixer-shape { position: relative; width: 100%; max-width: 500px; height: 350px; overflow: hidden; clip-path: polygon(20% 0%, 85% 10%, 100% 70%, 75% 100%, 15% 90%, 0% 30%); transition: transform 0.5s ease; }
.concrete-mixer-shape img { width: 100%; height: 100%; object-fit: cover; }
.mixer-border { position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; border: 2px solid var(--primary); opacity: 0.3; z-index: -1; clip-path: polygon(20% 0%, 85% 10%, 100% 70%, 75% 100%, 15% 90%, 0% 30%); }
@media (min-width: 992px) { .info-container { flex-direction: row; align-items: center; gap: 80px; } .info-text-col, .info-img-col { width: 50%; } .section-title-dark { font-size: 3.5rem; } .concrete-mixer-shape { height: 450px; } }

/* --- 4. SERVICIOS (100vh Ajustado a Diagonal) --- */
.services-section {
    background-color: var(--dark); color: white;
    z-index: 20;
    margin-top: -10vh; /* Overlap calculado */
    padding: 20vh 5% 15vh 5%; /* Padding generoso para compensar corte */
    
    /* DIAGONAL INVERTIDA */
    clip-path: polygon(0 8vw, 100% 0, 100% 100%, 0 calc(100% - 8vw));
}
@media (min-width: 1024px) {
    .services-section { clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 calc(100% - 5vw)); }
}
.services-container { width: 90%; max-width: 1400px; margin: 0 auto; position: relative; z-index: 5; }
.header-block { text-align: center; margin-bottom: 4vh; }
.services-title { font-family: var(--font-head); font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; text-transform: uppercase; margin-bottom: 20px; }
.services-divider { width: 80px; height: 4px; background: var(--primary); margin: 0 auto; }
.swiper { width: 100%; padding: 40px 10px 60px 10px !important; }
.service-card { background: var(--glass); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 4px; height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: var(--transition); will-change: transform; }
.service-card:hover { transform: translateY(-15px); background: rgba(255, 255, 255, 0.06); border-color: rgba(158, 27, 40, 0.5); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.card-image-wrapper { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform 0.8s ease, filter 0.8s ease; }
.service-card:hover .card-image-wrapper img { transform: scale(1.1); filter: grayscale(0%); }
.card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-family: var(--font-head); font-size: 1.6rem; text-transform: uppercase; margin-bottom: 15px; color: white; }
.card-info { font-size: 0.95rem; color: #b0b0b0; line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }
.card-btn { display: inline-block; padding: 10px 25px; background: transparent; color: white; text-decoration: none; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; border: 1px solid var(--primary); align-self: flex-start; position: relative; overflow: hidden; font-family: var(--font-head); clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%); transition: var(--transition); }
.card-btn::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary); z-index: -1; transform: scaleX(0); transform-origin: right; transition: var(--transition); }
.card-btn:hover { color: white; border-color: white; }
.card-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.swiper-pagination { bottom: 10px !important; }
.swiper-pagination-bullet { width: 40px; height: 4px; border-radius: 0; background: rgba(255,255,255,0.2); opacity: 1; transition: var(--transition); }
.swiper-pagination-bullet-active { background: var(--primary); width: 60px; }

/* --- 5. MAPAS (100vh Centrado) --- */
.coverage-section {
    background-color: #ffffff; color: var(--dark);
    z-index: 15;
    margin-top: -10vh; /* Overlap */
    padding: 20vh 5% 10vh 5%;
    clip-path: none;
}
.coverage-container { width: 90%; max-width: 1400px; margin: 0 auto; width: 100%; }
.coverage-desc { max-width: 700px; margin: 20px auto 0; text-align: center; color: #555; font-size: 1.1rem; }
.maps-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 50px; width: 100%; }
.map-card { background: #fff; border: 1px solid #e0e0e0; box-shadow: 0 20px 40px rgba(0,0,0,0.08); padding: 12px; border-radius: 6px; }
.map-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-bottom: 2px solid #f0f0f0; padding-bottom: 8px; }
.zone-code { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.2rem; margin: 0; }
.zone-coord { font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; color: #999; letter-spacing: 1px; }
.real-map-container { height: 400px; width: 100%; background: #1a1a1a; border-radius: 4px; position: relative; z-index: 1; }
.real-map-container::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; z-index: 999; box-shadow: inset 0 0 40px rgba(0,0,0,0.8); }
.custom-marker-pin { width: 12px; height: 12px; background: #9e1b28; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(158, 27, 40, 0.8); position: relative; }
.custom-marker-pin::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border: 1px solid #9e1b28; border-radius: 50%; opacity: 0; animation: pulseRadar 2s infinite; }
@keyframes pulseRadar { 0% { width: 10px; height: 10px; opacity: 0.8; border-width: 2px; } 100% { width: 50px; height: 50px; opacity: 0; border-width: 0px; } }
.leaflet-control-attribution, .leaflet-control-zoom { display: none; }
@media (min-width: 768px) { .maps-grid { grid-template-columns: repeat(3, 1fr); } .real-map-container { height: 500px; } }

/* --- 6. CTA PARALLAX (100vh) --- */
.cta-section {
    /* Hereda min-height: 100vh */
    overflow: hidden;
    margin-top: 0; 
    z-index: 5; 
    background-color: var(--dark);
}
.cta-bg-container { position: absolute; top: 0; left: 0; width: 100%; height: 120%; z-index: 1; transform: translateY(0); }
.cta-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.2); }
.cta-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(158, 27, 40, 0.4) 0%, rgba(10, 10, 10, 0.9) 80%); z-index: 2; }
.cta-text-layer { position: absolute; width: 100%; text-align: center; white-space: nowrap; pointer-events: none; z-index: 1; opacity: 0.15; }
.stroke-text { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.8); font-size: clamp(6rem, 20vw, 15rem); line-height: 0.8; }
.cta-content { position: relative; z-index: 10; text-align: center; width: 90%; max-width: 1200px; display: flex; flex-direction: column; align-items: center; }
.cta-title-main { font-family: var(--font-head); font-size: clamp(3rem, 10vw, 7rem); line-height: 0.9; font-weight: 900; text-transform: uppercase; color: var(--white); position: relative; z-index: 10; margin-bottom: 30px; }
.text-highlight { color: var(--primary); }
.cta-subtitle { font-size: clamp(1rem, 2vw, 1.4rem); color: #d1d1d1; max-width: 600px; margin-bottom: 40px; font-weight: 400; letter-spacing: 1px; }
.cta-btn { box-shadow: 0 0 20px rgba(158, 27, 40, 0.4); }

/* --- 7. CLIENTES (100vh) --- */
.clients-section {
    background-color: var(--white); color: var(--dark);
    z-index: 10;
    padding: 10vh 5%;
}
.clients-grid { display: grid; grid-template-columns: 1fr; gap: 50px; max-width: 1400px; margin: 0 auto; align-items: center; width: 100%; }
.client-img-col { position: relative; border-radius: 8px; overflow: hidden; height: 400px; }
.client-img { width: 100%; height: 100%; object-fit: cover; }
.client-info-col { display: flex; flex-direction: column; justify-content: center; }
.img-reveal-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; transform-origin: left; z-index: 2; }
.client-stat-row { display: flex; gap: 40px; margin-top: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.9rem; font-weight: 600; color: #555; text-transform: uppercase; margin-top: 5px; }
@media (min-width: 992px) { .clients-grid { grid-template-columns: 1fr 1fr; gap: 80px; } .client-img-col { height: 550px; } }

/* --- 8. FOOTER (Auto Height) --- */
footer {
    min-height: auto; /* El footer no necesita 100vh */
    background-color: #0a0a0a; color: #e0e0e0; padding: 80px 5% 30px 5%;
    font-family: var(--font-body); border-top: 1px solid #222; position: relative; z-index: 20;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1400px; margin: 0 auto 60px auto; }
.footer-col h4 { font-family: var(--font-head); color: white; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 1px; border-left: 3px solid var(--primary); padding-left: 15px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #aaa; text-decoration: none; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.social-icons { display: flex; gap: 15px; }
.social-btn { width: 40px; height: 40px; background: #1a1a1a; color: white; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: 0.3s; border: 1px solid #333; text-decoration: none; font-weight: bold; font-family: var(--font-head); }
.social-btn:hover { background: var(--primary); border-color: var(--primary); }
.footer-contact p { margin-bottom: 15px; font-size: 0.95rem; color: #aaa; }
.footer-contact strong { color: white; display: block; margin-bottom: 3px; }
.footer-logo img { height: 50px; margin-bottom: 20px; filter: grayscale(100%) brightness(200%); opacity: 0.7; transition: 0.3s; }
.footer-logo:hover img { filter: grayscale(0%); opacity: 1; }
.footer-bottom { border-top: 1px solid #1a1a1a; padding-top: 30px; text-align: center; font-size: 0.85rem; color: #666; display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }