
:root {
    --color-bg: #f5f8fc;
    --color-surface: #ffffff;
    --color-primary: #102a71;
    --color-primary-soft: #3559c7;
    --color-accent: #0d9f55;
    --color-text: #1f2a3a;
    --color-text-soft: #5a667a;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 16px 32px rgba(16, 42, 113, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    font-family: "Open Sans", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

img {
    max-width: 100%;
    display: block;
}

main {
    width: min(1160px, 94%);
    margin: 0 auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(90deg, #07184f, #102a71);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

header > img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.65);
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.menu ul li a {
    display: inline-block;
    color: #ecf0ff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    transition: 0.25s ease;
}

.menu ul li a:hover,
.menu ul li a.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.image-container,
#image-container2 {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.image-container img,
#image-container2 img {
    width: 100%;
    min-height: 360px;
    max-height: 440px;
    object-fit: cover;
}

.text-overlay,
#text-overlay2 {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 2.2rem;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(3, 13, 34, 0.72));
}

.text-overlay h1,
#text-overlay2 h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.text-overlay h2 {
    font-size: clamp(1.1rem, 2.3vw, 1.7rem);
    font-weight: 700;
}

.text-overlay p,
#text-overlay2 p {
    max-width: 760px;
    margin: 0.8rem auto 0;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.55;
}

#tit1,
#obj_gral {
    text-align: center;
    margin: 2.4rem auto 1.4rem;
}

#tit1 h1,
#obj_gral h1,
#Tit_objet h1 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    letter-spacing: 0.05em;
}

#linea1,
#obj_gral hr,
.ob1 hr {
    width: min(360px, 72%);
    margin: 0.7rem auto 0;
    border: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1f56ff, #66b6ff);
}

#desc_servicios,
#servicios_2,
#servicios_3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 0 auto;
    width: 100%;
}

.box {
    background: var(--color-surface);
    border: 1px solid #dce5f7;
    border-radius: var(--radius-md);
    padding: 1.15rem;
    box-shadow: 0 8px 18px rgba(21, 33, 62, 0.08);
}

.box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 11px;
}

.box h2,
.h2_servicio {
    margin: 1rem 0 0.7rem;
    font-size: 1.28rem;
    color: var(--color-primary);
}

.box p,
.parrafo {
    line-height: 1.65;
    text-align: justify;
    color: var(--color-text-soft);
}

#comem {
    margin-top: 2rem;
}

#comentario {
    width: min(900px, 100%);
    background: #ffffff;
    border: 1px solid #dbe2f3;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

#comentario p {
    font-size: 3rem;
    color: #7f8aa1;
}

#comentario h1 {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-family: "Roboto", Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.7;
}

#comentario img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem auto 0.4rem;
}

small,
#pie2 {
    color: #e6ebfa;
}

#seccion_abajo {
    margin: 2.3rem 0 0.7rem;
}

#text-overlay2 {
    align-content: center;
}

#text-overlay2 a {
    margin-top: 1.2rem;
    justify-self: center;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.25s ease;
}

#text-overlay2 a:hover {
    background: #0b8a4a;
    transform: translateY(-2px);
}

#parr_obj,
#object,
.object {
    display: grid;
    grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
    gap: 1.4rem;
    align-items: start;
    margin: 0 auto 1.8rem;
    width: 100%;
}

#parr_obj img,
#object img,
.object img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 18px rgba(20, 34, 69, 0.12);
}

#parr_obj ul,
#object ul,
.object ul {
    background: #ffffff;
    border: 1px solid #dbe2f1;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem 1.1rem 2rem;
    line-height: 1.6;
    color: var(--color-text-soft);
}

#parr_obj ul li,
#object ul li,
.object ul li {
    margin-bottom: 0.55rem;
}

#ob,
#servicios_1 {
    width: 100%;
}

.img_servicio {
    object-fit: contain !important;
    background: #f5f8ff;
}

.formulario-contacto,
#ingresarAlMenu {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 1.4rem;
    background: #ffffff;
    border: 1px solid #dbe3f2;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.formulario-contacto label {
    margin-top: 0.8rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: #244173;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #c8d5f0;
    font: inherit;
    color: var(--color-text);
}

.formulario-contacto button {
    margin-top: 0.9rem;
    padding: 0.9rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d9f55, #11b86a);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.formulario-contacto button:hover {
    opacity: 0.92;
}

#resultado {
    width: min(760px, 100%);
    margin: 0.9rem auto 0;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    color: #13412a;
    background: #ddf8e9;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 60;
}

.whatsapp-float img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(8, 95, 49, 0.35);
    transition: transform 0.2s ease;
}

.whatsapp-float img:hover {
    transform: scale(1.08);
}

#pie_global {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    background: #0c1f58;
}

@media (max-width: 980px) {
    header {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.6rem;
    }

    .menu ul {
        gap: 0.1rem;
    }

    #desc_servicios,
    #servicios_2,
    #servicios_3 {
        grid-template-columns: 1fr 1fr;
    }

    #parr_obj,
    #object,
    .object {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .text-overlay,
    #text-overlay2 {
        padding: 1.2rem;
    }

    #desc_servicios,
    #servicios_2,
    #servicios_3 {
        grid-template-columns: 1fr;
    }

    .box img {
        height: 210px;
    }
}