/* ===============================
   VARIABLES Y BASE
================================ */
:root {
    --azul-principal: #022f5c;
   --azul-oscuro: #143461;
    --azul-petroleo: #0f172a;
    --celeste-card: #eaf2ff;
    --blanco: #ffffff;
    --negro: #000000;
}
/*-------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #fff;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-weight: 350;
    color: #1f2933;
}

body.no-scroll {
    overflow: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
@media (max-width: 768px) {/*pantalla pequeña*/
    body {
        padding: 30px 15px;
    }
}

@keyframes fadeIn {/*animacion*/
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
h1, h2 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
}

.hero-contenido h3,
#catalogo h3 {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    font-weight: 500;
    font-style: italic;
}

/* ===============================
   HEADER
================================ */
.encabezado {
    position: relative;
    width: 100%;
    background-color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 80px;
    z-index: 1000;
}

.logo {
    height: 90px;
    max-width: 260px;
}

/* ===============================
   NAV DESKTOP
================================ */
#nav {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 15px 24px;
    position: relative;
}

#nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    background-color: rgba(13,71,161,0.35);
}

/* LINKS */
.enlace,
.submenu-toggle {
    position: relative;
    padding: 12px 14px;
    color: #0d47a1;
    font-weight: 600;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    transition: color 0.4s ease;
    z-index: 1;
}

/* Hover desktop */
.enlace::before, .submenu-toggle::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 0%;
    background-color: #143461;
    transition: height 0.3s ease;
    z-index: -1;
}
.enlace::after,
.submenu-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 0%;
    height: 3px;
    background-color: #1f2933;
    transition: width 0.3s ease;
}

.enlace:hover, .submenu:hover .submenu-toggle {
    color: #ffffff;
}
.enlace:hover::before, .submenu:hover .submenu-toggle::before {
    height: 100%;
}
.enlace:hover::after, .submenu:hover .submenu-toggle::after {
    width: 100%;
}

/* ===============================
   SUBMENU DESKTOP
================================ */
.submenu {
    position: relative;
}

.submenu-items {
    position: absolute;
    top: 130%;
    left: 0;
    width: 360px;
    background-color: #143461;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    display: none;
    max-height: 340px;
    overflow-y: auto;
    z-index: 9999;
}

.submenu:hover .submenu-items {
    display: block;
}

.submenu-items li {
    list-style: none;
}

.submenu-items a {
    display: block;
    padding: 14px 18px;
    color: var(--blanco);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.submenu-items a:hover {
    background-color: rgba(255,255,255,0.15);
}

/* ===============================
   BOTÓN HAMBURGUESA
================================ */
.hamburguesa {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--azul-principal);
    z-index: 1100;
}
/*RESPONSIVE*/
@media (max-width: 1024px) {

    .hamburguesa {
        display: block;
        color: #143461;
    }

    /* CONTENEDOR MENÚ */
    #nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #143461;
        flex-direction: column;
        padding: 20px 0;
        display: none;
    }

    #nav.activo {
        display: flex;
    }

    /* LINKS PRINCIPALES */
    .enlace,
    .submenu-toggle {
        font-family: "Inter", sans-serif;
        font-weight: 400;              /* 👈 NO grueso */
        font-size: 15.5px;
        letter-spacing: 0.2px;
        color: #ffffff;
        padding: 14px 28px;
        margin: 4px 20px;
        border-radius: 8px;
        transition: background-color 0.25s ease, color 0.25s ease;
    }

    /* HOVER LIMPIO */
    .enlace:hover,
    .submenu-toggle:hover {
        background-color: #ffffff;
        color:#143461;
    }

    /* quitar efectos desktop */
    .enlace::before,
    .enlace::after,
    .submenu-toggle::before,
    .submenu-toggle::after {
        display: none;
    }

    /* SUBMENU SERVICIOS */
    .submenu-items {
        position: static;
        display: none;
        background-color: black ;
        margin: 6px 20px 10px;
        padding: 6px 0;
        border-radius: 10px;
    }

    .submenu.activo .submenu-items {
        display: block;
    }

    .submenu-items a {
        font-family: "Inter", sans-serif;
        font-weight: 350;
        font-size: 14.5px;
        color: #e5e7eb;
        padding: 12px 32px;
        transition: background-color 0.25s ease, color 0.25s ease;
    }

    .submenu-items a:hover {
        background-color:
            #4A586B;
        color: WHITE;
    }
}


/* ===============================
   LOGO RESPONSIVE
================================ */
@media (max-width: 800px) {
    .logo {
        height: 70px;
    }
}


/* ===============================
   HERO
================================ */
.hero {
    margin-top: 0;
    min-height: 100vh;
    background-image: url("../imagenes/menu/menu.jpeg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* CAMBIO CLAVE */
    padding: 40px 30px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.45);
}

.hero-contenido {
    position: relative;
    max-width: 900px;
    color:#D4E6FA;
}
@media (min-width: 1024px) {
    .hero-contenido {
        transform: translateX(10%);
    }
}
.hero-contenido h1 {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.hero-contenido h3 {
    margin-top: 18px;
    margin-bottom: 22px;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 500;
    opacity: 0.95;
}


.hero-contenido p {
    font-size: 20px;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0.9;
}


#nosotros,
#servicios,
#catalogo,
#contactenos {
    padding: 80px 30px;
}
/* ===============================
   NOSOTROS
================================ */
#nosotros {
    padding: 8px 40px;
}
#nosotros h2 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    text-align: left;
    margin-bottom: 24px;
    color: #1f2933;
}
#nosotros h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--azul-principal);
    margin-top: 14px;
}

.tabla {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin-bottom: 30px;
    table-layout: fixed;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: none;
    background: transparent;
    max-width: 1300px;
    margin: 0 auto;
}
.tabla tr {
    background: #fff;
    border-radius: 16px;
}
.tabla td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.tabla_tdImg {
    width: 50%;
    padding: 0 30px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-nosotros {
    width: 100%;
    max-width: none;            /* QUITA EL LÍMITE */
    height: 480px;              /* ALTURA REAL */
    object-fit: cover;          /* SE VE PROFESIONAL */
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

.tdTxt {
    width: 50%;
    padding-left: 40px;
    font-size: 16px;
    line-height: 1.85;
}
@media (max-width: 1024px) {
    .tabla_tdImg {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    .img-nosotros {
        height: 420px;
    }

    .tdTxt {
        width: 100%;
        padding: 0;
    }
}


@media (max-width: 768px) {
    .tabla_tdImg {
        width: 100%;
        padding: 0;
        margin-bottom: 24px;
    }

    .tdTxt {
        width: 100%;
        padding: 0;
        text-align: left;
    }
    #nosotros {
        padding: 60px 20px;
    }
    #nosotros h2 {
        text-align: center;
    }

    #nosotros h2::after {
        margin-left: auto;
        margin-right: auto;
    }
    .img-nosotros {
        max-width: 340px;
        height: 300px;
        border-radius: 14px;
    }
}



/* ===============================
   CARRUSEL
================================ */
#catalogo {
    padding: 12px 0;
    text-align: center;
}

.carrusel {
    width: 90%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
}

.carrusel-track {
    display: flex;
    gap: 15px;
    animation: scroll 20s linear infinite;
}

.catalogo {
    min-width: 220px;
    height: 150px;
    flex-shrink: 0;
}

.catalogo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
#catalogo h2 {
    color: var(--azul-oscuro);
    margin-bottom: 30px;
}

.catalogo {
    position: relative;
    overflow: hidden;
}

.catalogo::after {
    content: "Proyecto ejecutado";
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    padding: 6px;
    text-align: center;
}

/* ==================== SERVICIOS (GRID RESPONSIVO) =============== */
#servicios {
    padding: 10px 40px;
    background: white;
}
.servicios {
    background-color:#eaf2ff;
    padding: 20px;
    border:none;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;

}

.servicios img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 15px;
}

#servicios h2 {
    text-align: center;
    color: var(--azul-oscuro);
    margin-bottom: 50px;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    text-align: left;
    margin-bottom: 24px;
    color: #1f2933;
}
#servicios h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--azul-principal);
    margin-top: 14px;
}
.servicio-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.servicios:hover {
    transform: translateY(-3px);
    box-shadow:
       0 20px 45px rgba(13,71,161,0.18),
        0 8px 20px rgba(0,0,0,0.10);
}
.servicios h3 {
    color: var(--azul-principal);
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}
.servicios p {
    font-size: 14.5px;
    line-height: 1.5;
    color: #555;
}


/******/
#proyectos,
#clientes {
    padding: 80px 40px;
    text-align: center;
    background: #fff;
}

#proyectos p,
#clientes p {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}
/* ===================== CONTACTO ====================== */
#contacto {
    padding: 10px 40px;
    background: #ffffff;
}

/* CONTENEDOR */
.contacto-contenedor {
    max-width: 760px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* TEXTO */
.contacto-texto {
    text-align: center;
}

.contacto-texto h2 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 25px;
    color: #1f2933;
}

.contacto-texto h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--azul-principal);
    margin: 14px auto 0;
    border-radius: 2px;
}

.contacto-texto p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}

/* FORMULARIO */
.formulario {
    background: linear-gradient(135deg, #e6f0ff, #f7faff);
    padding: 42px;
    border-radius: 22px;
    border: 1px solid rgba(13,71,161,0.12);
    box-shadow:
        0 20px 45px rgba(13,71,161,0.18),
        0 6px 16px rgba(0,0,0,0.08);
}

/* INPUTS */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 600; /* MÁS PRESENCIA */
    color: #143461;
    margin-bottom: 6px;
    display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    font-size: 14px;
}

.form-group select,
.form-group select option {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--azul-principal);
}
.form-group input,
.form-group textarea,
.form-group select {
    transition: 
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: scale(1.02); /* ZOOM SUTIL */
    box-shadow:
        0 6px 18px rgba(13,71,161,0.25),
        inset 0 0 0 2px var(--azul-principal);
}

/* BOTONES */
.form-botones {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn-enviar {
    background: var(--azul-principal);
    color: #fff;
}

.btn-cancelar {
    background: #143461;
    color: #fff;
}

.btn-enviar,
.btn-cancelar {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
}

.btn-enviar:hover,
.btn-cancelar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13,71,161,0.25);
}
.btn-enviar,
.btn-cancelar {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: .2px;
}

/* ===============================
   FOOTER
================================ */
.pie-pagina {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f2f7ff 55%,
        #e8f1ff 100%
    );
    padding: 8px 0 50px;
}

/* CONTENEDOR */
.contenedor-footer {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: center;
}

/* BLOQUE ÚNICO */
.logo-footer {
    text-align: center;
    max-width: 520px;
}

/* LOGO */
.logo-footer img {
    width: 200px;            /* LOGO MÁS GRANDE */
    max-width: 100%;
    margin-bottom: 18px;
}

/* FRASE */
.footer-descripcion {
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 18px;
}

/* CORREO */
.logo-footer a {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #0d47a1;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-footer a:hover {
    text-decoration: underline;
}

/* ICONO CORREO */
.logo-footer .icono {
    color: #0d47a1;
    font-size: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .pie-pagina {
        padding: 55px 0 40px;
    }

    .logo-footer img {
        width: 170px;
    }

    .footer-descripcion {
        font-size: 15px;
    }
}

/* ===============================
   RESPONSIVE (CLAVE)
================================ */
@media (max-width: 768px) {

 
    /* footer en columna */
    .contenedor-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .logo-footer,
    .columna-footer:last-child {
        text-align: center;
    }
}
hr{
    border: none;
    height: 1px;
    width: calc(100% - 40px);
    margin: 70px auto;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--azul-oscuro) 20%,
        var(--azul-principal) 50%,
        var(--azul-oscuro) 80%,
        transparent 100%
        );
    width: 100%;
    height: 2px;
    background-color: #abcbff;
    border: none !important;
    display: block !important;
    margin: 60px 0;
}
html, body {
    width: 100%;
    overflow-x: hidden;
}

