:root {
    --color-white: #FFFFFF;
    --color-dark: #0C171E;
    --color-blue: #003B73;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #dfe3e8 0%, #e9edf1 100%);
    color: var(--color-dark);
    line-height: 1.6;
}


/* =========================
   2. ENCABEZADO
========================= */

header {
    background-color: transparent;
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.9s ease, box-shadow 0.3s ease;
}

/* Estado al hacer scroll (la clase "scrolled" la agrega el JavaScript) */
header.scrolled {
    background-color: transparent;
    box-shadow: none;
}

header.scrolled nav ul li a {
    color: #000000;
}

header.scrolled nav ul li a:hover {
    color: var(--color-blue);
}

header.scrolled nav ul li a.btn-nav {
    color: var(--color-white);
}

nav {
    width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    gap: 64px;
}

nav ul li {
    margin-left: 0;
}

nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #4da6ff;
}

.btn-nav {
    background-color: var(--color-blue);
    padding: 8px 16px;
    border-radius: 4px;
}


/* =========================
   3. HERO / INICIO
========================= */

.hero {
    position: relative;
    height: 98vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--color-white);
    padding: 0 20px;
}

/* Carrusel de fondo */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Capa oscura sobre las imágenes */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

/* Texto principal */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    position: relative;
    top: -130px;
}

.hero-title-primary {
    font-size: clamp(2.8rem, 7vw, 4.375rem);
    font-weight: 700;
    line-height: 1;
}

.hero-title-secondary {
    font-size: clamp(1.8rem, 4.8vw, 3rem);
    font-weight: 300;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    top: -100px;
}


/* =========================
   4. BOTONES
========================= */

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-blue);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background-color: #00274d;
}

/* Botón del formulario (verde WhatsApp) */
.btn-submit {
    background-color: #25D366;
    color: white;
    font-size: 1.1rem;
}


/* =========================
   5. ESTRUCTURA GENERAL
========================= */

.section {
    padding: 80px 5%;
    background: rgba(255, 255, 255, 0.08);
}

.bg-alt {
    background-color: #e5e9ee;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.title {
    font-size: 2rem;
    color: var(--color-blue);
    text-align: center;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}


/* =========================
   6. NOSOTROS
========================= */

/* --- Bloque superior: texto + imagen + beneficios --- */

.nosotros-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 1fr) 190px;
    min-height: 360px;
    overflow: hidden;
    border-radius:28px 28px 28px 28px;
    
}

.nosotros-copy {
    position: relative;
    z-index: 2;
    padding: 52px 52px 52px 52px;
    background: linear-gradient(112deg, #f2f9ff 0%, #eaf5ff 76%, rgba(234, 245, 255, 0.7) 100%);
    top: -55px;
    height: 375px;
    border-radius: 28px 28px 28px 28px;
}

.nosotros-copy .title {
    margin: 8px 0 12px;
    color: #063d78;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.10;
    text-align: left;
}

.nosotros-copy .subtitle,
.nosotros-description {
    max-width: 540px;
    margin-bottom: 10px;
    color: var(--color-blue);
    font-size: 1.02rem;
    line-height: 1.5;
    text-align: left;
}

.nosotros-image {
    min-height: 320px;
    background: linear-gradient(90deg, hsla(208, 100%, 97%, 0.425), transparent 28%), url('../images/portada1.jpg') center / cover;
    clip-path: ellipse(78% 92% at 55% 50%);
    border-radius: 20px 0 0 20px;
    height: 150px;
}

.nosotros-beneficios {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 28px 28px 28px 28px;
    background: #064b83;
    height: 320px;
    color: var(--color-white);
}


.nosotros-beneficios i {
    width: 40px;
    color: #ffffff;
    font-size: 1.8rem;
    text-align: center;
}

/* --- Tarjetas Misión y Visión --- */

#nosotros .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:5px;
    margin-top: -50px;
}

#nosotros .card {
    position: relative;
    min-width: 0;
    min-height: 100px;
    padding: 24px 42% 24px 24px;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #eef7ff;
    box-shadow: none;
    text-align: left;
}

#nosotros .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 14px 8px 0;
    border-radius: 50%;
    background: #003B73;
    color: #ffffff;
    font-size: 1.65rem;
    vertical-align: middle;
}

#nosotros .card h3 {
    display: inline-block;
    color: #003B73;
    font-size: 1.15rem;
    vertical-align: middle;
}

#nosotros .card p {
    color: #315a82;
    font-size: 0.92rem;
    line-height: 1.55;
}

#nosotros .card img {
    position: absolute;
    top: 0;
    right: 0;
    width: 39%;
    height: 100%;
    object-fit: cover;
    clip-path: ellipse(76% 90% at 76% 50%);
}

/* --- Sectores --- */

.sectores {
    margin-top: 34px;
    text-align: center;
}

.sectores h3 {
    margin-bottom: 20px;
    color: var(--color-blue);
}

.sectores-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sectores-tags span {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}


/* =========================
   7. SERVICIOS
========================= */

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    display: block;
    overflow: hidden;
    background-color: var(--color-white);
    color: var(--color-dark);
    border: 1px solid var(--color-blue);
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(12, 23, 30, 0.12);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(12, 23, 30, 0.2);
}

.service-card > img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.service-card-content {
    min-height: 190px;
    padding: 22px 24px 24px;
    
}

.service-card-content h3 {
    margin-bottom: 8px;
    color: var(--color-blue);
    font-size: 1.35rem;
    line-height: 1.25;
}

.service-card-content p {
    color: #43515a;
    font-size: 1rem;
    line-height: 1.45;
}

.catalog-card-content {
    display: flex;
    flex-direction: column;
}

.catalog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--color-blue);
    font-size: 1rem;
    font-weight: 700;
    transition: gap 0.2s ease;
}

.catalog-card:hover .catalog-card-link {
    gap: 16px;
}

@media (max-width: 900px) {
    .service-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================
   8. INSTALACIÓN
========================= */

#instalacion {
    border: none;
    outline: none;
}

#instalacion .container {
    border: none;
    outline: none;
}

.highlight-box {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
}


/* =========================
   9. PROYECTOS
========================= */

.realized-projects {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 72px;
    padding: 24px 5% 20px;
    background:
        radial-gradient(circle at 4% 16%, rgba(12, 105, 196, 0.08), transparent 19rem),
        radial-gradient(circle at 96% 84%, rgba(12, 105, 196, 0.08), transparent 19rem),
        linear-gradient(180deg, #f4f8fc 0%, #eaf2fa 100%);
}

.realized-projects .container {
    max-width: 1180px;
}

.projects-section-heading {
    margin: 0 auto 16px;
    text-align: center;
}

.projects-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    color: #3985d3;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.projects-eyebrow::before,
.projects-eyebrow::after {
    width: 34px;
    height: 1px;
    background: #75aee7;
    content: "";
}

.projects-section-heading .title {
    margin: 0 0 4px;
    color: #102d4e;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    letter-spacing: -0.04em;
}

.projects-section-heading .title span {
    color: #087bd8;
}

.projects-section-heading .subtitle {
    margin: 0;
    color: #607b98;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.projects-carousel {
    position: relative;
    height: clamp(300px, 28vw, 380px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    background: #0c2738;
    box-shadow: 0 18px 42px rgba(16, 57, 94, 0.2);
}

.projects-carousel::after {
    position: absolute;
    z-index: 1;
    inset: 35% 0 0;
    background: linear-gradient(0deg, rgba(7, 31, 53, 0.92), rgba(7, 31, 53, 0));
    content: "";
    pointer-events: none;
}

.projects-carousel-track,
.projects-carousel-slide {
    position: absolute;
    inset: 0;
}

.projects-carousel-slide {
    visibility: hidden;
    margin: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.projects-carousel-slide.is-active {
    visibility: visible;
    opacity: 1;
}

.projects-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.projects-carousel-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    transform: translateY(-50%);
    border: 5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #087bd8;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 59, 115, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.projects-carousel-control:hover,
.projects-carousel-control:focus-visible {
    background: #003b73;
}

.projects-carousel-control:hover {
    transform: translateY(-50%) scale(1.05);
}

.projects-carousel-control:focus-visible,
.projects-carousel-thumbnails button:focus-visible {
    outline: 3px solid #55c9f3;
    outline-offset: 3px;
}

.projects-carousel-previous {
    left: 16px;
}

.projects-carousel-next {
    right: 16px;
}

.projects-carousel-count {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 20px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(17, 39, 60, 0.58);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.projects-carousel-caption {
    position: absolute;
    z-index: 2;
    right: 32%;
    bottom: 28px;
    left: 28px;
    color: #fff;
}

.projects-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #087bd8;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.projects-carousel-caption h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.12;
}

.projects-carousel-caption p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
}

.projects-carousel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.projects-carousel-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(235, 245, 255, 0.16);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 650;
    backdrop-filter: blur(5px);
}

.projects-featured-link {
    position: absolute;
    z-index: 2;
    right: 26px;
    bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 46px;
    padding: 11px 18px 11px 22px;
    border-radius: 999px;
    background: #fff;
    color: #123f70;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.projects-featured-link:hover {
    transform: translateY(-2px);
    background: #e9f5ff;
}

.projects-carousel-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 1px 1px 8px;
    scrollbar-width: thin;
    scrollbar-color: #a6c6e6 transparent;
}

.projects-carousel-thumbnails button {
    flex: 0 0 calc((100% - 60px) / 6);
    min-width: 120px;
    height: 68px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 11px;
    background: #dceaf6;
    cursor: pointer;
    opacity: 0.8;
    transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.projects-carousel-thumbnails button:hover {
    opacity: 1;
}

.projects-carousel-thumbnails button.is-active {
    transform: translateY(-1px);
    border-color: #087bd8;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 83, 145, 0.2);
}

.projects-carousel-thumbnails img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    min-height: 42px;
    margin: 10px auto 0;
    padding: 9px 20px;
    border: 1px solid #174b7c;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #123f70;
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.projects-all-link:hover {
    transform: translateY(-1px);
    background: #fff;
}

@media (max-width: 560px) {
    .section.realized-projects {
        scroll-margin-top: 60px;
        padding: 18px 5% 16px;
    }

    .projects-section-heading {
        margin-bottom: 12px;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .projects-carousel {
        height: 300px;
        border-radius: 14px;
    }

    .projects-carousel-control {
        width: 42px;
        height: 42px;
        border-width: 3px;
    }

    .projects-carousel-previous {
        left: 10px;
    }

    .projects-carousel-next {
        right: 10px;
    }

    .projects-carousel-count {
        top: 12px;
        right: 12px;
    }

    .projects-carousel-caption {
        right: 18px;
        bottom: 20px;
        left: 18px;
    }

    .projects-carousel-caption h3 {
        font-size: 1.45rem;
    }

    .projects-carousel-caption p {
        max-width: 90%;
        font-size: 0.9rem;
    }

    .projects-carousel-tags {
        gap: 6px;
    }

    .projects-carousel-tags span {
        padding: 6px 9px;
        font-size: 0.7rem;
    }

    .projects-featured-link {
        right: 16px;
        bottom: auto;
        top: 14px;
        min-height: 38px;
        padding: 8px 13px;
        font-size: 0.78rem;
    }

    .projects-carousel-thumbnails button {
        flex-basis: 128px;
        min-width: 128px;
        height: 64px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .projects-carousel-slide,
    .projects-carousel-control,
    .projects-carousel-thumbnails button,
    .projects-featured-link,
    .projects-all-link {
        transition: none;
    }
}


/* =========================
   10. CONTACTO
========================= */

.contact-section {
    padding-top: 60px;
    padding-bottom: 60px;

}

.contacto-layout {
    display: grid;
    grid-template-columns: 1.05fr 1.25fr;
    align-items: center;
    gap: 48px;
}


.contact-title {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 0.98;
    color: var(--color-blue);
    font-weight: 800;
}

.contact-description {
    margin-bottom: 28px;
    color: #4d5a65;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    border-radius: 16px 16px 16px 16px;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.08);
    height: 90px;
    align-items: center;
    padding: 12px 20px 12px 20px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(0, 59, 115, 0.08);
    color: var(--color-blue);
    font-size: 1.3rem;
    box-shadow: inset 0 0 0 1px rgba(0, 59, 115, 0.05);
}

.contact-location-link {
    text-decoration: none;
}

.contact-location-link:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}

.contact-item-text h4 {
    margin-bottom: 4px;
    color: var(--color-blue);
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-item-text p {
    color: #1e2d39;
    font-size: 1.05rem;
    line-height: 1.5;
}

.contact-social {
    margin-top: 10px;
    padding: 18px 20px;
     background: trasnparent;
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px 16px 16px 16px;
}

.contact-social h4 {
    margin-bottom: 14px;
    color: var(--color-blue);
    font-size: 1.05rem;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 59, 115, 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, #dfe3e8 0%, #e9edf1 100%);
    color: var(--color-blue);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-social-links a:hover,
.contact-social-links a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 59, 115, 0.16);
}

.contact-social-links a:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 3px;
}

.contact-social-links i {
    font-size: 1.1rem;
}

.contact-social-links .fa-tiktok {
    color: #000;
    text-shadow: -1px -1px 0 #25f4ee, 1px 1px 0 #fe2c55;
}

.contact-social-links .fa-instagram {
    color: #c13584;
    background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 75%, #4f5bd5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-social-links .fa-facebook-f {
    color: #1877f2;
}

.contact-panel {
    background: #ffffff;
    border: 1px solid rgba(12, 23, 30, 0.08);
    border-radius: 24px;
    padding: 28px 28px 20px;
    border: 1px solid #003B73;
    box-shadow: 0 15px 20px hsla(202, 71%, 30%, 0.603);
    background: linear-gradient(135deg, hsla(208, 100%, 97%, 0.253) 0%, #eaf5ff 76%, rgba(234, 245, 255, 0.7) 100%);
}

.contact-panel h3 {
    margin-bottom: 10px;
    color: var(--color-blue);
    font-size: clamp(1.9rem, 2vw, 2.4rem);
    line-height: 1.2;
    text-align: center;
}

.contact-panel > p {
    margin-bottom: 20px;
    color: #55636e;
    font-size: 1.00rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fbff;
    border: 1px solid #003b7333;
    border-radius: 14px;
    background: linear-gradient(135deg, hsla(208, 100%, 97%, 0.096) 0%, hsla(216, 100%, 99%, 0.288) 100%);
}

.input-wrap:focus-within {
    border-color: rgba(0, 59, 115, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 59, 115, 0.08);
}

.input-wrap i {
    position: absolute;
    left: 16px;
    color: rgba(0, 59, 115, 0.8);
    font-size: 1.05rem;
    pointer-events: none;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    width: 100%;
    border: 0;
    background: transparent;
    color: #122634;
    font-size: 1rem;
    padding: 16px 16px 16px 46px;
    outline: none;
    resize: vertical;
}

.input-wrap select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(0, 59, 115, 0.8) 50%), linear-gradient(135deg, rgba(0, 59, 115, 0.8) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.input-wrap textarea {
    min-height: 122px;
    padding-top: 18px;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder,
.input-wrap select:invalid {
    color: #7a8b96;
}

.btn-submit {
    width: 100%;
    border-radius: 14px;
    padding: 17px 20px;
    background: linear-gradient(135deg, #1f9ce8 0%, #0a5ccd 100%);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 22px rgba(17, 113, 196, 0.24);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1787d8 0%, #0a4fb5 100%);
}

.btn-submit span {
    font-size: 1.5rem;
    line-height: 1;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: #4b5a65;
    font-size: 0.92rem;
}

.security-note i {
    color: var(--color-blue);
}


/* =========================
   11. FOOTER Y WHATSAPP FLOTANTE
========================= */

footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 1.5px;
}

.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    nav ul {
        gap: clamp(16px, 3vw, 28px);
    }

    .nosotros-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .nosotros-copy {
        top: 0;
        height: auto;
        min-height: 320px;
        padding: 36px;
    }

    .nosotros-image {
        height: 100%;
        min-height: 320px;
    }

    .nosotros-beneficios {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-around;
        height: auto;
        min-height: 120px;
        gap: 16px;
        padding: 24px;
        border-radius: 0 0 20px 20px;
    }

    #nosotros .grid-2 {
        margin-top: 24px;
    }

    .contacto-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .contact-copy {
        max-width: 680px;
    }
}

@media (max-width: 760px) {
    header {
        padding: 10px 5%;
        background-color: #ffffff;
        box-shadow: 0 2px 12px rgba(12, 23, 30, 0.12);
    }

    header.scrolled {
        background-color: #ffffff;
        box-shadow: 0 2px 12px rgba(12, 23, 30, 0.12);
    }

    header nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(0, 59, 115, 0.18);
        border-radius: 8px;
        background: #ffffff;
        color: var(--color-blue);
        font-size: 1.25rem;
        cursor: pointer;
    }

    .menu-toggle:focus-visible {
        outline: 3px solid #55c9f3;
        outline-offset: 2px;
    }

    header nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 5% 14px;
        background: #ffffff;
        box-shadow: 0 12px 16px rgba(12, 23, 30, 0.12);
    }

    header.menu-open nav ul {
        display: flex;
    }

    header nav ul li a,
    header.scrolled nav ul li a {
        display: block;
        padding: 12px 8px;
        color: var(--color-dark);
    }

    header nav ul li a:hover,
    header.scrolled nav ul li a:hover {
        color: var(--color-blue);
    }

    header nav ul li a.btn-nav,
    header.scrolled nav ul li a.btn-nav {
        display: inline-block;
        margin-top: 4px;
        padding: 9px 16px;
        color: var(--color-white);
    }

    .hero {
        height: 100vh;
        height: 100svh;
        min-height: 540px;
        padding: 70px 6% 24px;
    }

    .hero-content {
        padding: 0;
    }

    .hero-content h2,
    .hero-content p {
        top: 0;
    }

    .hero-title-primary {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .hero-title-secondary {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .hero-content p {
        margin: 24px auto 0;
        font-size: clamp(1rem, 3.8vw, 1.15rem);
        line-height: 1.55;
    }

    .section {
        padding: 60px 5%;
    }

    .title {
        font-size: clamp(1.65rem, 6vw, 2rem);
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .nosotros-hero {
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden;
        border-radius: 20px;
    }

    .nosotros-copy {
        min-height: 0;
        padding: 28px 24px;
    }

    .nosotros-copy .title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .nosotros-image {
        min-height: 240px;
        height: 240px;
        clip-path: none;
        border-radius: 0;
    }

    .nosotros-beneficios {
        grid-column: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 18px 24px;
        padding: 22px 24px;
        border-radius: 0;
    }

    .nosotros-beneficios > div {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nosotros-beneficios i {
        width: 32px;
        font-size: 1.5rem;
    }

    #nosotros .grid-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-top: 20px;
    }

    #nosotros .card {
        padding: 22px;
    }

    #nosotros .card img {
        position: static;
        display: block;
        width: 100%;
        height: 180px;
        margin-top: 18px;
        clip-path: none;
        border-radius: 12px;
    }

    .service-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-card-content {
        min-height: 0;
    }

    .projects-carousel {
        height: clamp(230px, 62vw, 360px);
    }

    .contacto-layout {
        gap: 28px;
    }

    .contact-title {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .contact-description br {
        display: none;
    }

    .contact-item {
        height: auto;
        min-height: 90px;
        gap: 16px;
        padding: 14px;
    }

    .contact-item-text {
        min-width: 0;
    }

    .contact-item-text p {
        font-size: 0.95rem;
        overflow-wrap: anywhere;
    }

    .contact-panel {
        padding: 24px 18px 18px;
        border-radius: 18px;
    }

    .contact-panel h3 {
        font-size: 1.7rem;
    }

    .input-wrap input,
    .input-wrap select,
    .input-wrap textarea {
        font-size: 16px;
    }

    footer {
        padding: 14px 5%;
        font-size: 0.9rem;
    }

    .wa-float {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
        font-size: 30px;
    }
}

@media (max-width: 380px) {
    .nosotros-beneficios {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}
