/* ========================= RESET ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================= BODY ========================= */
body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #f4f6f9;
    color: #1b263b;
    padding-bottom: 80px;
    /* espacio para footer fijo */
}

/* ========================= HEADER AZUL OSCURO ========================= */
header {
    background-color: #0d1b2a;
    color: #fff;
    padding: 1em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: #00e0ff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: 0.3s;
}

nav a:hover {
    background-color: #1f4e79;
}

/* ========================= MAIN ========================= */
main {
    margin-top: 100px;
    padding: 40px 8%;
}

/* ========================= HERO ========================= */
.hero {
    background: linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.85)), url('imagenes/fondo.jpg') center/cover no-repeat;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border-radius: 15px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-content a {
    background: #1f4e79;
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hero-content a:hover {
    background: #16324f;
    transform: scale(1.05);
}

/* ========================= SECCIONES ========================= */
.descripcion {
    margin-top: 80px;
    text-align: center;
}

.descripcion h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* ========================= SERVICIOS ========================= */
.services-section {
    margin-top: 80px;
}

.services-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: #1f4e79;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
}

/* ========================= FOOTER FIJO ========================= */
footer {
    background: #0d1b2a;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    left: 0;
}

/* ===== SECCIÓN PROYECTOS ===== */
.proyectos {
    padding: 60px 8%;
    text-align: center;
}

.proyectos h2 {
    font-size: 34px;
    margin-bottom: 30px;
}

/* ===== BUSCADOR ===== */
#buscador {
    width: 60%;
    max-width: 500px;
    padding: 12px 20px;
    margin: 0 auto 40px auto;
    display: block;
    border-radius: 30px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

#buscador:focus {
    border-color: #0b3d91;
    box-shadow: 0 0 8px rgba(11, 61, 145, 0.3);
}

/* ===== GRID ===== */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

/* ===== TARJETAS ===== */
.proyecto {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    height: 100%;
}

.proyecto:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===== IMÁGENES PERFECTAS ===== */
.proyecto img {
    width: 100%;
    height: 220px;
    /* tamaño controlado */
    object-fit: contain;
    /* MUESTRA TODA LA IMAGEN */
    background: #f5f5f5;
    /* fondo limpio si sobra espacio */
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== TEXTO ===== */
.proyecto h3 {
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(to right, #f8f9fb, #eef2f7);
    letter-spacing: 0.5px;
    color: #1e3a5f;
    position: relative;
}

.proyecto p {
    font-size: 15px;
    line-height: 1.4;
}

/* ===== HEADER PREMIUM ===== */
.header {
    background: linear-gradient(90deg, #0a1f44, #0b3d91);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #caa74d;
    /* línea dorada elegante */
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
}

.logo-constructora {
    font-size: 24px;
    /* antes 14 */
    letter-spacing: 2px;
    opacity: 0.9;
}

.logo-jtk {
    font-size: 38px;
    /* más dominante */
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
}

.logo-sa {
    font-size: 24px;
    /* antes 14 */
    opacity: 0.8;
}

/* ===== MENÚ ===== */
.menu {
    list-style: none;
    display: flex;
    gap: 35px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.menu a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #caa74d;
    transition: 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

/* ===== WATERMARK CON LOGO CORPORATIVO ===== */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 850px;
    /* más grande */
    height: 850px;
    background-image: url("imagenes/logo.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.14;
    /* más visible */
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* Asegura que el contenido esté por encima */
header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* ========================= */
/* RESET GENERAL */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f7fb;
}

/* ========================= */
/* HEADER */
/* ========================= */
header {
    background: linear-gradient(to right, #0d2c54, #1b4f9c);
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.logo span {
    color: #00c3ff;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover,
nav a.activo {
    color: #00c3ff;
}

/* ========================= CONTACTO CORPORATIVO PRO ========================= */
.contacto {
    padding: 120px 10%;
    display: flex;
    justify-content: center;
    background: #f4f7fb;
}

.contacto-wrapper {
    width: 100%;
    max-width: 900px;
}

.contacto-card {
    background: linear-gradient(135deg, #1e3a5f, #16304d);
    color: white;
    padding: 70px 60px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.contacto-card::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* TITULOS */
.contacto-card h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.subtitulo {
    opacity: 0.8;
    margin-bottom: 50px;
    font-size: 18px;
}

/* INFO */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icono {
    min-width: 60px;
    height: 60px;
    background: white;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
}

.contacto-item:hover .icono {
    transform: scale(1.1);
}

.contacto-item h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.7;
}

.contacto-item span {
    font-size: 18px;
    font-weight: 600;
}

/* ========================= REDES SOCIALES 2026 PRO ========================= */
.redes {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    /* centra horizontalmente */
    align-items: center;
    gap: 30px;
    /* espacio uniforme */
    width: 100%;
}

/* BASE ICONO */
.redes a {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 28px;
    color: white;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: 0.4s ease;
    overflow: hidden;
}

/* EFECTO GLASS BASE */
.redes a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.redes a i {
    position: relative;
    z-index: 1;
}

/* ===== FACEBOOK ===== */
.redes a.facebook {
    background: #1877F2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.5);
}

.redes a.facebook:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 0 35px rgba(24, 119, 242, 0.8), 0 0 60px rgba(24, 119, 242, 0.6);
}

/* ===== INSTAGRAM ===== */
.redes a.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    box-shadow: 0 0 20px rgba(221, 42, 123, 0.5);
}

.redes a.instagram:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 0 35px rgba(221, 42, 123, 0.8), 0 0 60px rgba(131, 52, 175, 0.6);
}

/* ===== WHATSAPP ===== */
.redes a.whatsapp {
    background: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.redes a.whatsapp:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 0 35px rgba(37, 211, 102, 0.8), 0 0 60px rgba(37, 211, 102, 0.6);
}

/* ========================= CASAS - DISEÑO PRO ========================= */
.casas-habitacion h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.casas-contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 0 5%;
}

.proyecto {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
}

.proyecto:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.proyecto a {
    text-decoration: none;
    color: inherit;
}

.imagen-proyecto {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.proyecto h3 {
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

/* Responsive extra */
@media (max-width: 768px) {
    .imagen-proyecto {
        height: 200px;
    }
}

.proyecto-detalle {
    padding: 60px 5%;
    background-color: #f2f4f7;
    text-align: center;
}

.proyecto-detalle h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #1e3a5f;
}

/* Grid de la galería */
.galeria-detalle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 0 auto;
}

/* Tarjeta completa */
.galeria-detalle .proyecto {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 420px;
    /* altura uniforme de la tarjeta */
}

.galeria-detalle .proyecto:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

/* Imagen superior */
.imagen-wrapper {
    flex: 0 0 60%;
    /* la imagen ocupa el 60% de la tarjeta */
    overflow: hidden;
}

.galeria-detalle .proyecto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recorta proporcionalmente */
    display: block;
}

/* Texto inferior */
.info-proyecto {
    flex: 1 0 40%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.info-proyecto h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1e3a5f;
    font-weight: 600;
}

.info-proyecto p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .galeria-detalle {
        grid-template-columns: 1fr;
    }

    .proyecto {
        height: auto;
    }

    .imagen-wrapper {
        flex: 0 0 auto;
        height: 250px;
    }
}

/* ===================================== INSTITUCIONAL - MISMO ESTILO QUE COMERCIAL ===================================== */
.institucional-section {
    padding: 100px 8%;
    text-align: center;
}

.institucional-section h2 {
    font-size: 34px;
    margin-bottom: 60px;
    color: #2c3e50;
    font-weight: 700;
}

/* Contenedor */
.institucional-section .galeria {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Tarjeta */
.institucional-section .tarjeta {
    width: 100%;
    max-width: 580px;
    background: #f5f5f5;
    border-radius: 22px;
    padding: 18px;
    text-decoration: none;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.institucional-section .tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Imagen */
.institucional-section .tarjeta img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

/* Bloque inferior */
.institucional-section .contenido-tarjeta {
    background: #e9ecef;
    margin-top: 18px;
    padding: 25px;
    border-radius: 18px;
}

.institucional-section .contenido-tarjeta h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.institucional-section .contenido-tarjeta p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .institucional-section {
        padding: 70px 5%;
    }

    .institucional-section .tarjeta img {
        height: 240px;
    }

    .institucional-section .contenido-tarjeta {
        padding: 20px;
    }
}

/* ===================================== COMERCIAL ===================================== */
/* ===================================== COMERCIAL - ESTILO DEFINITIVO (NO AFECTA OTRAS PÁGINAS) ===================================== */
.proyecto-detalle {
    padding: 100px 8%;
    text-align: center;
}

.proyecto-detalle h2 {
    font-size: 34px;
    margin-bottom: 60px;
    color: #2c3e50;
    font-weight: 700;
}

/* Contenedor */
.proyecto-detalle .galeria {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Tarjeta grande elegante */
.proyecto-detalle .tarjeta {
    width: 100%;
    max-width: 580px;
    /* 🔥 tamaño ideal */
    background: #f5f5f5;
    border-radius: 22px;
    padding: 18px;
    text-decoration: none;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proyecto-detalle .tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* Imagen */
.proyecto-detalle .tarjeta img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

/* Bloque inferior */
.proyecto-detalle .contenido-tarjeta {
    background: #e9ecef;
    margin-top: 18px;
    padding: 25px;
    border-radius: 18px;
}

.proyecto-detalle .contenido-tarjeta h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.proyecto-detalle .contenido-tarjeta p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .proyecto-detalle {
        padding: 70px 5%;
    }

    .proyecto-detalle .tarjeta img {
        height: 240px;
    }

    .proyecto-detalle .contenido-tarjeta {
        padding: 20px;
    }
}

/* ===================================== TÍTULO INTERIOR CASA ===================================== */
.titulo-seccion {
    padding-top: 100px;
    text-align: center;
}

.titulo-seccion h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 60px;
    font-weight: 700;
}

/* ===================================== GALERÍA INTERIOR ===================================== */
.galeria-interior {
    padding: 0 8% 100px 8%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.galeria-interior img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.galeria-interior img:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 900px) {
    .galeria-interior {
        grid-template-columns: 1fr;
    }

    .galeria-interior img {
        height: 300px;
    }
}

/* Para proyectos con una sola imagen */
/* Casa 5 - Imagen pequeña completa */
.galeria-una {
    padding: 0 8% 100px 8%;
    display: flex;
    justify-content: center;
}

.galeria-una img {
    width: 400px;
    /* 👈 tamaño pequeño */
    height: auto;
    /* 👈 mantiene proporción */
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ====== DETALLE PROYECTO ====== */
.detalle-proyecto {
    padding: 60px 20px;
    text-align: center;
}

.titulo-proyecto {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.descripcion-proyecto {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 18px;
    color: #555;
}

/* ====== DETALLE PROYECTO ====== */
.detalle-proyecto {
    padding: 60px 20px;
    text-align: center;
}

.titulo-proyecto {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.descripcion-proyecto {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 18px;
    color: #555;
}

/* ====== TARJETAS ====== */
.contenedor-tarjetas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.tarjeta {
    width: 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-8px);
}

.tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tarjeta h3 {
    padding: 15px;
    font-size: 18px;
    font-weight: 500;
}

/* ============================= */
/* SOLO PARA PAGINA LAGUNA */
/* ============================= */
.pagina-laguna .detalle-proyecto {
    padding: 60px 20px;
    text-align: center;
}

.pagina-laguna .titulo-proyecto {
    font-size: 32px;
    margin-bottom: 20px;
}

.pagina-laguna .descripcion-proyecto {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 18px;
    line-height: 1.6;
}

.pagina-laguna .galeria-detalle {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pagina-laguna .galeria-detalle img {
    width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.detalle-proyecto {
    padding: 60px 8%;
    text-align: center;
}

/* SOLO para la página de detalle (Latina) */
.detalle-proyecto .galeria-detalle {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.detalle-proyecto .galeria-detalle img {
    width: 520px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* HERO MAQUINARIA */
.hero-maquinaria {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("imagenes/maquinaria-banner.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.titulo-maquinaria {
    text-align: center;
    padding: 80px 8% 40px;
}

.titulo-maquinaria h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.titulo-maquinaria p {
    color: #666;
}

/* SECCIÓN */
.galeria-maquinaria {
    padding: 40px 8% 80px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* TARJETAS */
.maquina-card h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

/* GALERÍA INTERNA */
.mini-galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 por línea */
    gap: 30px;
}

.mini-galeria img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* mantiene proporción uniforme */
    object-fit: contain;
    /* NO recorta */
    background: #f4f4f4;
    /* fondo elegante si sobra espacio */
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    transition: 0.3s ease;
}

.mini-galeria img:hover {
    transform: scale(1.05);
}

.titulo-maquinaria p {
    font-size: 22px;
    /* más grande */
    font-weight: 500;
    /* un poco más fuerte */
    color: #555;
    margin-top: 10px;
}


/* ========================= */
/* BOTÓN HAMBURGUESA */
/* ========================= */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}


/* ========================= */
/* MOBILE + HORIZONTAL */
/* ========================= */
@media (max-width: 900px) {

    header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 5%;
        position: relative;
    }

    .logo {
        font-size: 14px;
        flex: 1;
    }

    /* 🔥 SIEMPRE hamburguesa */
    .menu-toggle {
        display: block;
        font-size: 26px;
    }

    .nav {
        width: 100%;
    }

    /* 🔥 MENÚ OCULTO POR DEFECTO */
    .menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background: #0d1b2a;
        border-radius: 10px;
        margin-top: 10px;

        /* 👇 evita cortes */
        max-height: 85vh;
        overflow-y: auto;

        padding: 5px 0;
    }

    /* 🔥 SOLO CUANDO SE ABRE */
    .menu.active {
        display: flex !important;
    }

    .menu li {
        text-align: center;
    }

    .menu a {
        display: block;
        padding: 10px;
        font-size: 14px;
    }

    body {
        overflow-x: hidden;
    }

    /* ========================= */
    /* CONTENIDO */
    /* ========================= */
    .hero {
        height: auto;
        padding: 50px 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 20px;
    }

    #buscador {
        width: 90%;
    }

    .galeria {
        grid-template-columns: 1fr;
    }

    footer {
        position: relative;
    }
}


/* ========================= */
/* 🔥 FIX CORREO / TEXTOS LARGOS */
/* ========================= */
.contacto-item span,
.contacto-item a {
    word-break: break-word;
    overflow-wrap: break-word;
}

.contacto-item span a {
    display: block;
    font-size: 15px;
}


/* ========================= */
/* AJUSTES GENERALES */
/* ========================= */
main {
    margin: 100px auto 0 auto;
    padding: 40px 20px;
    max-width: 1200px;
}

.galeria,
.services,
.galeria-maquinaria {
    justify-content: center;
}

.proyecto,
.service-card,
.maquina-card {
    width: 100%;
}