* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: #000;
}
/* ===== ANIMACIÓN SCROLL ===== */

.reveal {
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1.8s ease, transform 3.0s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* ================= NAVBAR ================= */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* espacio entre imagen y texto */
    font-size: 24px;
    font-weight: bold;
}

.logo-img {
    width: 40px;   /* ajusta el tamaño */
    height: auto;
}
.navbar {
    position: fixed;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.navbar.scrolled {
    background: #0b1b3d;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 400;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00bcd4;
}

.btn-top {
    background: #0f4c5c;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.btn-top:hover {
    background: #00bcd4;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}
/* ===== DROPDOWN REDES ===== */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    animation: fadeDropdown 0.3s ease;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.dropdown-menu a:hover {
    background: #1f1f1f;
    color: #d4af37;
}

@keyframes fadeDropdown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e') no-repeat center center/cover;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.4));
    top: 0;
    left: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero-left h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 700;
}

.hero-left span {
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 32px;
    background: #081c24;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #00bcd4;
}

.hero-right {
    max-width: 400px;
}

.divider {
    width: 50px;
    height: 4px;
    background: white;
    margin-bottom: 20px;
}

.hero-right p {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-right {
        margin: auto;
    }

    .divider {
        margin: 20px auto;
    }

}

@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 80px;
        right: 8%;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        padding: 30px;
        border-radius: 10px;
        display: none;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .btn-top {
        display: none;
    }
}

/* ===== SOBRE NOSOTROS ===== */

.sobre {
    background: linear-gradient(135deg, #1a2946, #293c52);
    color: #fff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Efecto luz suave */
.sobre::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79,195,247,0.15), transparent 70%);
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* ----- LADO IZQUIERDO ----- */

.sobre-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sobre-logo {
    width: 150px;
    margin-bottom: 10px;
    
}

.sobre-left h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.sobre-left h2 span {
    color: #4fc3f7; /* azul más luminoso */
}

.sobre-mini {
    font-size: 1rem;
    color: #d6e2f0;
    line-height: 1.6;
    max-width: 420px;
}

/* Imagen urbanización */
.sobre-img {
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    transition: 0.4s ease;
}

.sobre-img:hover {
    transform: scale(1.03);
}

/* ----- LADO DERECHO ----- */

.sobre-right p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 50px;
    color: #e0e6ed;
}

/* Caja visión y misión */

.vision-mision-box {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.vision-mision-box h3 {
    font-size: 1.6rem;
    margin-bottom: 40px;
    font-weight: 500;
    color: #4fc3f7;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.vm-card {
    background: rgba(0,0,0,0.35);
    padding: 30px;
    border-radius: 10px;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.vm-card:hover {
    transform: translateY(-8px);
    background: rgba(79,195,247,0.15);
    border: 1px solid rgba(79,195,247,0.4);
}

.vm-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
}

.vm-card p {
    font-size: 0.95rem;
    color: #cfd8dc;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 900px) {
    .sobre-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .sobre-left {
        align-items: center;
    }

    .sobre-mini {
        max-width: 100%;
    }
}

/* PROYECTOS*/
.proyectos {
    padding: 100px 0;
    background: #111; /* Fondo oscuro */
    color: #fff;
    text-align: center;
}

.proyectos h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 600;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.proyectos-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.4s ease;
    filter: brightness(0.85);
}

.proyectos-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1);
}

.proyectos::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 60%);
    top: 0;
    left: 0;
    pointer-events: none;
}

.proyectos {
    position: relative;
    overflow: hidden;
}
/* Botón mostrar más */
.proyectos-btn-container {
    text-align: center;
    margin-top: 40px;
}

.btn-mostrar {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s ease;
}

.btn-mostrar:hover {
    background: #fff;
}

/* SOLO EN MÓVIL */
@media (max-width: 768px) {
    .proyectos-grid img:nth-child(n+4) {
        display: none;
    }

    .proyectos-grid.mostrar-todos img {
        display: block;
    }
}

/* En escritorio ocultamos el botón */
@media (min-width: 769px) {
    .btn-mostrar {
        display: none;
    }
}
/* ===== MODAL ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.modal img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
    animation: zoomIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* ===== PROYECTOS DESARROLLADOS ===== */

.proyectos-desarrollados {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f1f35, #1c3553);
    color: #fff;
    text-align: center;
}

.proyectos-desarrollados h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.proyectos-desarrollados h2 span {
    color: #4fc3f7;
}

.proyectos-sub {
    color: #cfd8dc;
    margin-bottom: 60px;
}

.desarrollados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.desarrollado-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.desarrollado-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.4s ease;
}

.desarrollado-info {
    padding: 25px;
    text-align: left;
}

.desarrollado-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.desarrollado-info p {
    font-size: 0.95rem;
    color: #cfd8dc;
    line-height: 1.6;
}

.desarrollado-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.desarrollado-card:hover img {
    transform: scale(1.05);
}
/* ===== MODAL GALERÍA DESARROLLADOS ===== */

/* ===== MODAL GALERÍA DESARROLLADOS ===== */

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;

    justify-content: center;
    align-items: center;

    touch-action: pan-y; /* 👈 permite swipe horizontal */
}

.gallery-content {
    position: relative;
    width: 95%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-content img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;

    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* 👈 MUY IMPORTANTE para que el swipe no se bloquee */
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.gallery-nav {
    background: none;
    border: none;
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    transition: 0.3s;
}

.gallery-nav:hover {
    color: #4fc3f7;
}
/* =========================
   Carrusel tipo tren
========================= */

.carrusel-tren {
    max-width: 1450px;   /* mismo ancho que tu .container */
    margin: 100px auto 0 auto; /* lo centra */
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carrusel-track {
    display: flex;
    width: max-content;
    animation: scrollTren 25s linear infinite;
}

.carrusel-track img {
    height: 520px;
     width: 500px;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
}

/* Animación continua */
@keyframes scrollTren {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}
/* ===== EQUIPO / MAQUINARIA PREMIUM ===== */

.maquinaria {
    padding: 120px 0;
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: #fff;
}

.maquinaria-header {
    text-align: center;
    margin-bottom: 70px;
}

.maquinaria-header h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.maquinaria-header h2 span {
    color: #4fc3f7;
}

.maquinaria-header p {
    color: #cfd8dc;
    max-width: 600px;
    margin: auto;
    line-height: 1.6;
}

.maquinaria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.maquinaria-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.maquinaria-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Overlay moderno */
.maquinaria-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    transition: 0.4s ease;
}

.maquinaria-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.maquinaria-overlay span {
    font-size: 0.9rem;
    color: #4fc3f7;
}

/* Hover elegante */
.maquinaria-card:hover img {
    transform: scale(1.1);
}

.maquinaria-card:hover .maquinaria-overlay {
    background: linear-gradient(to top, rgba(15,92,89,0.95), transparent);
}
/* ===== SERVICIOS ===== */

.servicios {
    background: #0d0d0d;
    
    color: #fff;
}

.servicios-header {
    text-align: center;
    margin-bottom: 70px;
}

.servicios-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.servicios-header h2 span {
    color: #d4af37;
}

.servicios-header p {
    color: #bbb;
    font-size: 1rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.servicio-card {
    background: linear-gradient(145deg, #111, #1a1a1a);
    padding: 30px;
    border-radius: 8px;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.servicio-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.servicio-card p {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.6;
}

.servicio-card:hover {
    transform: translateY(-8px);
    border: 1px solid #d4af37;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* ===== POR QUE ELEGIRNOS ===== */

.porque {
    background: #0b0b0b;
    padding: 120px 0;
}

.porque-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    max-width: 1200px;
    margin: auto;
}

.porque-img {
    position: relative;
}

.porque-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.porque-btn {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #000;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: 0.3s ease;
}

.porque-btn:hover {
    background: #d4af37;
    color: #000;
}

.porque-content {
    background: #0f5c59; /* Verde azulado elegante */
    padding: 70px 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.porque-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.porque-content h2 span {
    color: #d4af37;
}

.porque-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
}

.porque-list {
    list-style: none;
    padding: 0;
}

.porque-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1rem;
    transition: 0.3s;
}

.porque-list li:hover {
    padding-left: 10px;
    color: #d4af37;
}

/* Responsive */

@media (max-width: 900px) {
    .porque-container {
        grid-template-columns: 1fr;
    }

    .porque-content {
        padding: 50px 30px;
    }
}



/* ===== COTIZAR ===== */

.cotizar {
    background: #2b348181;
    padding: 120px 0;
    text-align: center;
    color: #fff;
}

.cotizar h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cotizar h2 span {
    color: #d4af37;
}

.cotizar-sub {
    color: #bbb;
    margin-bottom: 50px;
}

.cotizar-form {
    max-width: 600px;
   
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cotizar-form input,
.cotizar-form textarea {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 15px;
    color: #000;
    border-radius: 6px;
    font-family: inherit;
}

.cotizar-form input:focus,
.cotizar-form textarea:focus {
    outline: none;
    border: 1px solid #d4af37;
}

.btn-cotizar {
    background: #25D366;
    color: #000;
    border: none;
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s ease;
}

.btn-cotizar:hover {
    background: #1ebe5d;
}

.cotizar-form select {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 15px;
    color: #000;
    border-radius: 6px;
    font-family: inherit;
    cursor: pointer;
}

.cotizar-form select:focus {
    outline: none;
    border: 1px solid #d4af37;
}
/* ===== COTIZAR GRID ===== */

.cotizar-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

.cotizar-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 40px 40px rgba(0,0,0,0.4);
    transition: 0.4s ease;
}

.cotizar-img img:hover {
    transform: scale(1.03);
}

/* Ajustar formulario dentro del grid */
.cotizar-form {
    max-width: 100%;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .cotizar-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cotizar-img {
        order: -1; /* Imagen arriba en móvil */
    }
}
/* ================= UBICACIÓN ================= */

.ubicacion {
    padding: 100px 8%;
    background: #010102;
    color: white;
}

.ubicacion-header {
    text-align: center;
    margin-bottom: 50px;
}

.ubicacion-header h2 span {
    color: #d4af37;
}

.ubicacion-header p {
    opacity: 0.8;
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.ubicacion-info h3 {
    margin-bottom: 20px;
    color: #d4af37;
}

.ubicacion-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.ubicacion-mapa iframe {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .ubicacion-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER ===== */

.footer {
    background: #070707;
    color: #fff;
    padding-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    padding: 0 20px 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #d4af37;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #d4af37;
}

.footer-col p {
    color: #bbb;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #bbb;
}

.footer-col ul li a {
    text-decoration: none;
    color: #bbb;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #d4af37;
}

.footer-redes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-redes a {
    text-decoration: none;
    color: #bbb;
    transition: 0.3s;
}

.footer-redes a:hover {
    color: #25D366;
}

.footer-bottom {
    border-top: 1px solid #111;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    color: #777;
}


/* ================= BOTÓN WHATSAPP FLOTANTE ================= */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animación suave de entrada */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-float {
    animation: floatIn 1s ease forwards;
}


