/* ----- Estilos Generales ----- */

:root {
    --color-primario: #1F33AF;
    --color-secundario: #0F2366;
    --color-terciario: #0A0518;
    --color-blanco: #f0f0f0;
    --color-gris: #444;
    --color-secundario-70: #1F33AF80;

    --font-h1: clamp(40px, 5vw, 64px);
    --font-h2: clamp(32px, 4vw, 48px);
    --font-h3: clamp(24px, 3vw, 36px);
    --font-p: clamp(16px, 1.5vw, 18px);
    --font-p-large: clamp(18px, 2vw, 22px);
}

@media (max-width: 800px) {
    :root {
        --font-h1: 36px;
        --font-h2: 28px;
        --font-h3: 22px;
        --font-p: 16px;
        --font-p-large: 18px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: "Montserrat", sans-serif !important;
    overflow-x: hidden;
}

/* ----- Estilos Header ----- */

#header {
    width: 100%;
    height: 100px;
    display: flex;
    padding: 0px 15%;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#header.header-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    background: #1f32afab;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header__logo {
    width: 150px;
}

@media (max-width:800px) {
    #header {
        position: fixed;
    }
}


/* ----- Estilos UL escritorio ----- */

#ul-desktop {
    display: flex;
    list-style: none;
    width: 100%;
    align-items: center;
    gap: 30px;
    font-size: 18px;
}

.ul-desktop__link {
    height: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--color-blanco);
    transition: color .2s;
}

.ul-desktop__link:hover {
    color: var(--color-primario);
    transition: color .2s;
}

.ul-desktop__boton-menu {
    display: none;
}

/* ----- Estilos UL mobile ----- */

#ul-mobile {
    display: none;
    color: #111;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 999;
    background: #1f32afab;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    list-style: none;
    gap: 1rem;
    width: 100%;
}

.ul-mobile__li {
    width: 100%;
    height: 50px;
    align-content: center;
}

.ul-mobile__li:hover {
    width: 100%;
}

.ul-mobile__link {
    width: 100%;
    color: #fff;
    text-decoration: none;
    height: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
}

.ul-mobile__link:hover {
    background: #f0f0f021;
}

.ul-mobile__boton-menu {
    width: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 50px;
    align-content: center;
}

.ul-mobile__boton-menu:hover {
    background: #f0f0f021;
}


@media (max-width:800px) {
    #header {
        padding: 0px 5%;
    }

    .header__logo {
        width: 110px;
    }

    #ul-mobile {
        width: 100% !important;
    }

    .ul-desktop__li {
        display: none !important;
    }

    .ul-desktop__boton-menu {
        display: block;
    }
}


/* ----- Estilos Hero ----- */

#hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    padding: 0 15% 50px;
    overflow: hidden;
    isolation: isolate;
}

/* Imagen de fondo real (LCP) */
.hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 30%;
    z-index: 0;
}

/* Overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.3));
    z-index: 1;
}

/* Contenido */
.hero__content {
    position: relative;
    z-index: 2;
}

/* Animación entrada */
#hero .hero__h1,
#hero .hero__p,
#hero .hero__button {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 1s ease;
}

#hero.is-visible .hero__h1,
#hero.is-visible .hero__p,
#hero.is-visible .hero__button {
    opacity: 1;
    transform: translateY(0);
}

/* Título */
.hero__h1 {
    color: #fff;
    font-size: var(--font-h1);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Subtítulo */
.hero__p {
    font-size: var(--font-p-large);
    font-weight: 500;
    color: #e6e9f2;
    margin-bottom: 2rem;
}

/* Botón */
.hero__button {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-weight: bold;
    background: var(--color-blanco);
    color: var(--color-primario);
    border: 2px solid var(--color-blanco);
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    width: fit-content;
    overflow: hidden;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        padding 0.35s ease,
        gap 0.35s ease,
        transform 0.35s ease;
}

/* Hover general */
.hero__button:hover {
    gap: 10px;
    background: transparent;
    color: var(--color-blanco);
    padding-right: 26px;
    transform: scale(1.06);
}

/* Texto */
.hero__button-texto {
    white-space: nowrap;
}

/* Icono */
.hero__button-icono {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateX(-6px);
    transition:
        opacity 0.3s ease,
        max-width 0.3s ease,
        transform 0.3s ease;
}

/* Hover icono */
.hero__button:hover .hero__button-icono {
    opacity: 1;
    max-width: 20px;
    /* ancho real del icono */
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 800px) {
    #hero {
        padding: 50px 5%;
        min-height: 70vh;
    }

    .hero__h1 {
        line-height: 1.2;
    }

    .hero__p {
        font-size: 22px;
    }
}

/* ----- Estilos Section Nosotros ----- */

#section-nosotros {
    padding: 100px 15%;
    background: var(--color-blanco);
    background-image: url("./media/imagenes/patron-fondo.jpg");
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90vh;
    gap: 2rem;
}

.nosotros__container {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 2rem;
}

.nosotros__img {
    width: clamp(200px, 90%, 580px);
    max-width: 580px;
    aspect-ratio: 5 / 5;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.nosotros__h3 {
    font-style: medium;
    font-weight: 500;
    text-transform: uppercase;
    font-size: var(--font-h3);
    color: var(--color-secundario);
    width: 85%;
}

.nosotros__h2 {
    color: var(--color-primario);
    font-size: var(--font-h2);
    line-height: 1.2;
}

.nosotros__texto {
    font-size: var(--font-p);
    line-height: 1.8;
    color: var(--color-gris);
}

@media (max-width: 800px) {
    #section-nosotros {
        flex-direction: column-reverse;
        padding: 60px 5%;
        min-height: auto !important;
    }

    .nosotros__img {
        display: none !important;
    }
}

@media (max-width: 1300px) {
    #section-nosotros {
        flex-direction: column-reverse;
        padding: 80px 5%;
        text-align: center;
        gap: 3rem;
    }

    .nosotros__container {
        width: 100%;
        align-items: center;
    }

    .nosotros__h3 {
        width: 100%;
        margin-bottom: 1rem;
        font-size: 25px;
    }

    .nosotros__h2 {
        font-size: 32px;
    }

    .nosotros__texto {
        font-size: 18px;
    }

    .nosotros__img {
        display: block;
        width: 80%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 1645px) {
    .nosotros__img {
        width: 450px;
    }
}


/* ----- Estilos Section Acompañamos ----- */

#section-acompanamos {
    position: relative;
    padding: 50px 15% 200px;
    background: var(--color-blanco);
    color: var(--color-primario);
    overflow: hidden;
}

/* Fondo patrón optimizado */
#section-acompanamos::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./media/imagenes/patron-fondo.jpg") center / cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

/* Grid */
.acompanamos__cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 60px;
    row-gap: 30px;
}

/* Card base */
.acompanamos__card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 550px;
}

/* Card chica */
.acompanamos__card.card-sm {
    height: 400px;
}

/* Imagen */
.acompanamos__card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Efecto stagger */
.acompanamos__card:nth-child(even) {
    width: calc(100% + 80px);
    position: relative;
    left: -80px;
    transform: translateY(80px);
    z-index: 2;
}

/* Overlay */
.acompanamos__card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0) 100%);
    transition: background 0.4s ease;
}

/* Hover overlay */
.acompanamos__card:hover .acompanamos__card-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.2) 100%);
}

/* Contenido */
.acompanamos__card-content {
    width: 85%;
}

/* Título */
.acompanamos__card-titulo {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

/* Descripción */
.acompanamos__card-descripcion {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.acompanamos__card:hover .acompanamos__card-descripcion {
    max-height: 150px;
    opacity: 1;
}

/* Flecha */
.acompanamos__card-arrow {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    font-size: 24px;
    color: #fff;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
    .acompanamos__cards {
        gap: 20px;
    }

    .acompanamos__card:nth-child(even) {
        width: 100%;
        left: 0;
        transform: translateY(40px);
    }
}

@media (max-width: 800px) {
    #section-acompanamos {
        padding: 50px 5%;
    }

    .acompanamos__cards {
        grid-template-columns: 1fr;
        margin-top: 30px;
        gap: 20px;
    }

    .acompanamos__card {
        width: 100%;
        height: 380px;
        transform: none !important;
        left: 0 !important;
    }

    .acompanamos__card-overlay {
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.9) 0%,
                rgba(0, 0, 0, 0.6) 50%,
                rgba(0, 0, 0, 0.2) 100%);
    }

    .acompanamos__card-descripcion {
        max-height: 150px;
        opacity: 1;
    }
}


/* ----- Estilos Section Equipo ----- */

#section-equipo {
    position: relative;
    padding: 120px 15%;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* Imagen de fondo */
.equipo__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay oscuro */
.equipo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Contenido */
.equipo__content {
    position: relative;
    z-index: 2;
}

/* Título */
.equipo__h3 {
    font-size: var(--font-h3);
    color: var(--color-blanco);
    text-transform: uppercase;
    width: 50%;
    padding-bottom: 1rem;
    margin: 0 auto 1rem;
    position: relative;
}

/* Línea decorativa */
.equipo-linea {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-blanco);
    margin: 1rem auto 0;
}

/* Texto */
.equipo__texto {
    font-size: var(--font-p);
    line-height: 1.5;
    color: var(--color-blanco);
    max-width: 450px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 800px) {
    #section-equipo {
        padding: 100px 5%;
    }

    .equipo__h3 {
        font-size: 32px;
        width: 100%;
    }

    .equipo-linea {
        display: none;
    }
}

@media (max-width: 1700px) {
    .equipo-linea {
        display: none;
    }
}


/* ----- Estilos Section Hacemos ----- */

#section-hacemos {
    position: relative;
    overflow: hidden;
    padding: 100px 15%;
    text-align: center;
    isolation: isolate;
}

/* Imagen de fondo real */
.hacemos__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    contain: paint;
    transform: translateZ(0);
}

/* Overlay oscuro */
.hacemos__bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 19, 43, 0.9);
    z-index: 1;
}

/* SVG animado */
.hacemos__bg-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Contenido */
.hacemos__content {
    position: relative;
    z-index: 5;
}

.hacemos__title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-blanco);
    margin-bottom: 6rem;
}

/* Cards */
.hacemos__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hacemos__card {
    color: var(--color-blanco);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.hacemos__card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 -3em 3em rgba(0, 0, 0, 0.1),
        0 0.5em 1em rgba(0, 0, 0, 0.3);
}

/* Icono */
.hacemos__icono {
    font-size: 50px;
    margin-bottom: 1rem;
}

/* Texto */
.hacemos__p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-blanco);
}

/* Animaciones SVG */
.out-top {
    animation: rotate 25s linear infinite;
    transform-origin: 13px 25px;
}

.in-top {
    animation: rotate 15s linear infinite;
    transform-origin: 13px 25px;
}

.out-bottom {
    animation: rotate 30s linear infinite;
    transform-origin: 84px 93px;
}

.in-bottom {
    animation: rotate 20s linear infinite;
    transform-origin: 84px 93px;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hacemos__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    #section-hacemos {
        padding: 100px 5%;
    }

    .hacemos__cards {
        grid-template-columns: 1fr;
    }

    .hacemos__card {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.12);
    }
}

/* ----- Estilos Section CTA ----- */

#section-cta {
    padding: 100px 15%;
    text-align: center;
    background: var(--color-terciario);
    color: #f0f0f0;
}

.cta__h2 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
}

.cta__p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta__button {
    all: unset;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.6rem 1.2rem;
    border: var(--color-primario) solid 0.15em;
    border-radius: 0.25em;
    color: var(--color-blanco);
    font-size: 1.5em;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: border 300ms, color 300ms;
    user-select: none;
    width: fit-content;
    margin: 0 auto;
}

.cta__button p {
    z-index: 1;
}

.cta__button:hover {
    color: var(--color-blanco);
}

.cta__button:active {
    border-color: var(--color-blanco);
}

.cta__button::after,
.cta__button::before {
    content: "";
    position: absolute;
    width: 9em;
    aspect-ratio: 1;
    background: var(--color-primario);
    opacity: 50%;
    border-radius: 50%;
    transition: transform 500ms, background 300ms;
}

.cta__button::before {
    left: 0;
    transform: translateX(-8em);
}

.cta__button::after {
    right: 0;
    transform: translateX(8em);
}

.cta__button:hover:before {
    transform: translateX(-1em);
}

.cta__button:hover:after {
    transform: translateX(1em);
}

.cta__button:active:before,
.cta__button:active:after {
    background: teal;
}

@media (max-width: 800px) {
    #section-cta {
        padding: 100px 5%;
    }
}

/* ----- Estilos Section Marcas ----- */

#section-marcas {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: #fff;
}

.carousel-container {
    background: var(--color-terciario, #0A0518);
    padding: 30px 0;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: max-content;
    gap: 7rem;
    animation: scroll-infinito 60s linear infinite;
}

.logo {
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-infinito {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-track {
        gap: 4rem;
        animation-duration: 40s;
    }

    .logo img {
        max-height: 40px;
    }
}


/* ----- Estilos Footer ----- */

#footer {
    padding: 50px 15% 10px 15%;
    background: var(--color-terciario);
    color: var(--color-blanco);
    font-size: 14px;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    width: 200px;
}

.footer__copyright {
    text-align: center;
    font-size: 12px;
}

.footer__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer__redes {
    display: flex;
    gap: 2rem;
}

.footer__redes a {
    text-decoration: none;
    color: var(--color-blanco);
    transition: color 0.3s ease;
}

.footer__redes a:visited,
.footer__redes a:active,
.footer__redes a:focus {
    color: var(--color-blanco);
}

.footer__redes a:hover {
    color: var(--color-primario);
}

.footer__icono {
    font-size: 20px;
}

.footer__direcciones {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

@media (max-width: 800px) {
    #footer {
        padding: 30px 5% 20px 5%;
        font-size: 14px;
    }

    .footer__logo {
        width: 210px !important;
    }

    .footer__copyright {
        margin-top: 20px;
    }
}

@media (max-width: 1000px) {
    .footer__container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer__logo {
        width: 80%;
        max-width: 300px;
        margin-bottom: 1rem;
    }

    .footer__info {
        gap: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .footer__redes {
        margin: 20px 0;
        justify-content: center;
    }

    .footer__direcciones {
        gap: 1.5rem;
        align-items: center;
    }
}

/* Global Tablet Padding Adjustment */
@media (max-width: 1200px) {

    #header,
    #hero,
    #section-acompanamos,
    #section-equipo,
    #section-hacemos,
    #section-cta,
    #footer {
        padding-left: 6%;
        padding-right: 6%;
    }
}

/* ----- Estilos Section Servicios (Nueva Página) ----- */

#section-servicios-lista {
    position: relative;
    padding: 100px 15%;
    min-height: 100vh;
    background: #08132b;
    /* Dark background matching the "premium" feel */
    overflow: hidden;
    isolation: isolate;
}

/* Background overlay similar to Hacemos but possibly lighter/different */
.servicios__bg-overlay {
    position: absolute;
    inset: 0;
    /* Un gradiente sutil para dar profundidad */
    background: radial-gradient(circle at 50% 10%, rgba(31, 51, 175, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.servicios__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.servicio__card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.servicio__card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.servicio__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.servicio__numero {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a6bff;
    /* Brighter shade for dark mode visibility */
    opacity: 0.8;
}

.servicio__titulo {
    font-size: 1.5rem;
    color: var(--color-blanco);
    font-weight: 600;
    line-height: 1.3;
}

.servicio__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.servicio__item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.servicio__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.servicio__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.servicio__lista {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}

.servicio__lista li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
}

.servicio__lista li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a6bff;
}

.servicio__item.destacado {
    background: rgba(74, 107, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #4a6bff;
}

.servicio__item.destacado .servicio__label {
    color: #4a6bff;
}

/* Responsive for Servicio Page */
@media (max-width: 992px) {
    .servicios__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #section-servicios-lista {
        padding: 80px 5%;
    }
}

@media (max-width: 800px) {
    .hero-servicios #hero {
        min-height: 50vh !important;
    }

    .servicio__card {
        padding: 2rem;
    }

    .servicio__titulo {
        font-size: 1.3rem;
    }
}

/* ----- Estilos Contacto (Nueva Página) ----- */

#section-contacto-form {
    position: relative;
    padding: 200px 15% 100px;
    min-height: 100vh;
    background: #08132b;
    overflow: hidden;
    isolation: isolate;
}

.contacto__bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(31, 51, 175, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.contacto__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

/* Columna Info */
.contacto__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--color-blanco);
}

.contacto__titulo {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.contacto__desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 90%;
}

.contacto__datos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contacto__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contacto__icono {
    font-size: 1.5rem;
    color: #4a6bff;
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto__label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contacto__valor {
    font-size: 1.1rem;
    font-weight: 500;
}

.contacto__redes {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contacto__social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contacto__social:hover {
    background: #4a6bff;
    color: #fff;
    transform: translateY(-3px);
}

/* Columna Formulario */
.contacto__form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contacto__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: #4a6bff;
    box-shadow: 0 0 0 4px rgba(74, 107, 255, 0.1);
}

.form-submit-btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    border-radius: 12px;
}

/* Ajuste height hero contacto para ser más corto como servicios */
@media (min-width: 801px) {
    .hero-contacto {
        min-height: 60vh !important;
        align-items: center !important;
    }
}

/* Responsive Contacto */
@media (max-width: 992px) {
    .contacto__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    #section-contacto-form {
        padding: 160px 5% 80px;
    }

    .contacto__info {
        align-items: center;
        text-align: center;
    }

    .contacto__desc {
        max-width: 100%;
    }

    .contacto__item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 800px) {
    .hero-contacto {
        min-height: 50vh !important;
    }
}


/* Alertas de formulario */
.form-alert {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
    animation: fadeUp 0.6s ease forwards;
}

.form-alert.success {
    background: linear-gradient(135deg,
            rgba(74, 107, 255, 0.15),
            rgba(31, 51, 175, 0.25));
    border: 1px solid rgba(74, 107, 255, 0.4);
}

.form-alert i {
    font-size: 3.5rem;
    color: #4a6bff;
}

.form-alert h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.form-alert p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 380px;
}

/* Animación */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}