﻿/* ==========================
   Sección Split Home
   ========================== */

/* Evitar scroll horizontal solo en Home */
body, html {
    overflow-x: hidden;
}

.split-section {
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
}

.split-container {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

/* Paneles */
.split-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s ease, filter 0.6s ease;
}

    /* Imágenes con efecto fade */
    .split-panel img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

        .split-panel img.active {
            opacity: 1;
            z-index: 1;
        }

    /* Overlay apagado por defecto */
    .split-panel::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0);
        transition: background 0.3s ease;
        z-index: 2;
    }

    /* Overlay al hacer hover */
    .split-panel:hover::after {
        background: rgba(0,0,0,0.35);
    }

/* Hover effect escritorio */
.split-container:hover .split-panel {
    flex: 0.25;
    filter: brightness(0.7);
}

    .split-container:hover .split-panel:hover {
        flex: 0.75;
        filter: brightness(1);
    }

/* Degradado inferior */
.fade-both::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0) 100%);
}

/* ==========================
   Overlay: badge + barra + texto
   ========================== */
.split-panel .overlay {
    position: absolute;
    left: 24px;
    bottom: 20%;
    z-index: 5; /* por encima del fade */
    max-width: min(80%, 720px);
    pointer-events: none; /* no rompe el hover del panel */
}

/* Badge blanco con texto azul */
.overlay-badge {
    display: inline-block;
    background: var(--blanco);
    color: var(--azul-principal);
    font-weight: 800;
    line-height: 1.1;
    padding: .35rem .6rem;
    border-radius: .35rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    font-size: clamp(1rem, 2.2vw, 2rem);
}

/* Contenedor revelable */
.overlay-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
    padding-top: .75rem;
}

/* Barra azul */
.accent-bar {
    height: 8px;
    background: var(--azul-principal);
    width: 0;
    border-radius: 4px;
    transition: width .45s ease;
}

/* Texto debajo de la barra */
.overlay-copy {
    margin-top: .75rem;
    color: var(--blanco);
    font-weight: 600;
    line-height: 1.35;
    text-shadow: 0 2px 6px rgba(0,0,0,.35);
    font-size: clamp(.9rem, 1.2vw, 1.1rem);
    max-width: 52ch;
}

/* Botón CTA dentro de overlay */
.overlay .btn {
    pointer-events: auto;
    margin-top: 1rem;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: var(--azul-principal);
    color: var(--blanco);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

    .overlay .btn:hover {
        background-color: #003c82; /* un tono más oscuro del azul */
    }


/* Hover: mostrar barra + texto */
.split-panel:hover .overlay-reveal {
    opacity: 1;
    transform: translateY(0);
}

.split-panel:hover .accent-bar {
    width: 60%;
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 992px) {
    .split-panel .overlay {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .overlay-badge {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }

    .overlay-copy {
        font-size: clamp(.95rem, 3.2vw, 1.05rem);
    }

    .split-panel:hover .accent-bar {
        width: 70%;
    }
}

@media (max-width: 576px) {
    .overlay-badge {
        font-weight: 700;
        box-shadow: 0 6px 18px rgba(0,0,0,.2);
    }

    .accent-bar {
        height: 6px;
    }
}

/* Mobile: apilados */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        height: auto;
    }

    .split-panel {
        flex: none;
        min-height: 320px; /* asegura que siempre se vea la imagen */
        height: auto;
        position: relative;
    }

    /* Quitar efecto hover en móvil */
    .split-container:hover .split-panel,
    .split-container:hover .split-panel:hover {
        flex: none;
        filter: brightness(1);
    }

    .split-panel .overlay {
        bottom: 12%;
    }
}
/* Mostrar overlay y oscurecer fondo siempre en móvil y tablet */
@media (max-width: 992px) {
    /* Overlay siempre visible */
    .split-panel .overlay-reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .split-panel .accent-bar {
        width: 60%; /* barra azul expandida */
    }

    /* Fondo oscurecido fijo */
    .split-panel::after {
        background: rgba(0,0,0,0.35) !important;
    }
}

@media (max-width: 992px) {
    .split-section {
        height: auto; /* en móvil y tablet deja que el contenido defina la altura */
    }

    .split-panel {
        height: 50vh; /* sigue dando proporción a cada panel apilado */
    }
}


/* ==========================
   Statement Section
   ========================== */
.statement-section {
    background-color: var(--blanco);
    padding: 4rem 1.5rem;
}

.statement-text {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.8rem); /* fluido: móvil ~1.1rem, desktop máx 1.8rem */
    line-height: 1.7;
    font-weight: 500;
    color: var(--gris-oscuro);
    margin: 0 auto;
    max-width: 100%;
}

    /* Palabras resaltadas */
    .statement-text .highlight {
        color: var(--azul-principal);
        font-weight: 700;
    }

    /* Marca dentro del párrafo */
    .statement-text .brand-line1 {
        display: inline; /* evita salto de línea */
        font-size: inherit; /* usa mismo tamaño que el párrafo */
        font-family: 'Playfair Display', serif;
        font-weight: 400;
        white-space: nowrap; /* no cortar entre THE y UPSKILLING */
        margin-right: .35rem; /* espacio después de la marca */
    }

        .statement-text .brand-line1 .brand-company {
            display: inline; /* asegura que COMPANY no se baje */
            margin-top: 0;
        }


/* ==========================
   Services Section
   ========================== */
.services-section {
    padding: 0.1rem 1.5rem;
    background-color: var(--blanco);
}

.services-block {
    margin-bottom: 5rem;
    scroll-margin-top: 200px;
}

/* Título con pleca animada */
.services-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

    .services-title .title-bar {
        display: block;
        width: 0;
        height: 4px;
        background-color: var(--azul-principal);
        margin-top: .5rem;
        transition: width 1s ease;
    }

/* Grid de cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--blanco);
    border: 1px solid var(--gris-claro);
    border-radius: 0; /* sin bordes redondeados */
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(30px);
    opacity: 0;
    transition: all .6s ease;
}

    .service-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .service-card h3 {
        margin: 1rem 0 .5rem;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--azul-principal);
        padding: 0 0.5rem;
        /* CORRECCIÓN DE ALINEACIÓN: Altura mínima para 2 líneas */
        min-height: 54px;
        display: flex;
        align-items: flex-start; /* Alinea el texto arriba si solo es 1 línea */
        line-height: 1.35;
    }

    .service-card p {
        color: var(--gris-oscuro);
        font-size: .95rem;
        padding: 0 0.8rem;
        flex-grow: 1; /* ocupa espacio intermedio */
    }

    .service-card .btn {
        align-self: flex-end; /* alinea el botón a la derecha */
        margin-top: 1rem;
        padding: .5rem 1rem;
        border-radius: 6px;
        font-size: .9rem;
    }

    /* Animación de entrada */
    .service-card.visible {
        transform: translateY(0);
        opacity: 1;
    }

/* Responsive */
@media (max-width: 576px) {
    .services-title {
        font-size: 1.5rem;
    }
}

/* ========================== Recursos Gratuitos ========================== */

.resources-section {
    background: url('/images/Home/recursos-de-empleabilidad-y-networking-profesionales-empresas.jpg') center/cover no-repeat fixed;
    color: var(--blanco);
    padding: 6rem 2rem;
    min-height: calc(100vh - 65px);
}


.resources-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--blanco);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* más legible */
}

.resources-subtitle {
    display: block; /* que se expanda horizontalmente */
    background: rgba(255,255,255,0.85); /* pleca clara semi-transparente */
    color: var(--gris-oscuro); /* buen contraste */
    padding: 1rem 2rem; /* aire suficiente */
    font-size: 1.2rem; /* un poco más grande */
    font-weight: 500;
    margin-bottom: 3rem;
}


.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: rgba(255,255,255,0.85); /* más claro, combina con el fondo */
    padding: 2rem 1.5rem;
    text-align: left;
    color: var(--gris-oscuro);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; /* activa flexbox */
    flex-direction: column; /* apila en columna */
    justify-content: space-between; /* empuja botón hacia abajo */
    min-height: 280px; /* altura mínima uniforme */
}

    .resource-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .resource-card h3 {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: .75rem;
        color: var(--azul-principal); /* conserva tu branding */
    }

    .resource-card p {
        flex-grow: 1; /* ocupa el espacio intermedio */
        margin-bottom: 1rem;
        font-size: 1rem;
        color: var(--gris-oscuro);
    }

    .resource-card .btn {
        font-weight: 600;
        display: block; /* hace que sea un bloque */
        width: 100%; /* ocupa todo el ancho de la tarjeta */
        text-align: center; /* centra el texto */
        margin-top: auto; /* lo empuja al fondo si la tarjeta crece */
    }


/* ==========================
   Mapa Futuro Laboral 2026
   ========================== */
.future-map-section {
    background-color: var(--blanco);
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.future-map-pleca {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    width: 100%;
}

/* Imagen */
.future-map-img {
    width: 32%; /* menos ancho, no tan protagonista */
    max-height: 280px; /* límite de altura */
    border-radius: 8px;
    object-fit: cover; /* recorta en lugar de deformar */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* Contenedor de texto */
.future-map-text {
    flex: 1 1 55%;
}

/* Texto */
.future-map-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 1rem;
}

.future-map-subtitle {
    font-size: 1.1rem;
    color: var(--gris-oscuro);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* CTA */
.future-map-cta {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 992px) {
    .future-map-pleca {
        flex-direction: column;
        text-align: center;
    }

    .future-map-img {
        width: 100%;
        max-height: 280px;
    }

    .future-map-title {
        font-size: 1.6rem;
    }

    .future-map-subtitle {
        font-size: 1rem;
    }
}

/* ==========================
   Contact Section
   ========================== */
.contact-section {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
}

.contact-container {
    max-width: 900px; /* más compacto */
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-size: 1.05rem;
    color: var(--gris-oscuro);
    margin-bottom: 2rem;
}

/* Form */
.contact-form {
    text-align: left;
}

/* Grid con más horizontalidad */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
    margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s ease;
}

    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
        border-color: var(--azul-principal);
        outline: none;
    }

/* Textarea ancho completo */
.contact-form textarea {
    grid-column: span 2;
    resize: vertical;
    min-height: 120px;
}

/* Footer: checkbox y botón en fila */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin-top: 1rem;
}

/* Checkbox y texto alineados (corrige a .form-checkbox) */
.form-checkbox {
    display: flex;
    align-items: flex-start; /* se alinea con la primera línea del texto */
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gris-oscuro);
    flex: 1; /* ocupa espacio y empuja el botón a la derecha */
    line-height: 1.4;
}

    .form-checkbox input[type="checkbox"] {
        margin-top: 0.2rem; /* ajuste óptico */
        width: 16px;
        height: 16px;
        accent-color: var(--azul-principal);
        flex-shrink: 0;
    }

    .form-checkbox a {
        color: var(--azul-principal);
        text-decoration: underline;
    }

/* Botón */
.contact-submit {
    padding: 0.7rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form textarea {
        grid-column: span 1;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-submit {
        width: 100%;
        text-align: center;
    }
}


.pleca-capacitacion-fw {
    width: 100%;
    background-color: var(--azul-suave); /* tono suave de la paleta */
    padding: 4rem 2rem;
    text-align: center;
}

    .pleca-capacitacion-fw .pleca-content {
        max-width: 1100px;
        margin: 0 auto;
        color: #fff;
    }

    .pleca-capacitacion-fw h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 1rem;
    }

    .pleca-capacitacion-fw p {
        font-size: 1.2rem;
        color: #f0f0f0;
        margin-bottom: 2rem;
    }

    .pleca-capacitacion-fw .btn-cta {
        background-color: #fff;
        color: var(--azul-principal);
        text-decoration: none;
        padding: 0.9rem 2rem;
        border-radius: 4px;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        display: inline-block;
    }

        .pleca-capacitacion-fw .btn-cta:hover {
            background-color: var(--gris-claro);
            color: var(--azul-principal);
        }


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/*formulario*/
/* ==========================
   Utilidades y Nuevos Campos
   ========================== */

/* Ocultar elementos (Utilidad estándar) */
.d-none {
    display: none !important;
}

/* Columna de ancho completo dentro del grid */
.full-width-col {
    grid-column: 1 / -1; /* Ocupa todas las columnas disponibles */
}

/* ==========================
   ESTADO INACTIVO (LOCKED)
   ========================== */
.form-locked {
    opacity: 0.5; /* Antes 0.3 - Ahora es más visible */
    filter: grayscale(0.5); /* Menos agresivo */
    pointer-events: none; /* Sigue bloqueando clics */
    user-select: none; /* No deja seleccionar texto */
    transition: all 0.5s ease;
    cursor: default;
}

/* Wrapper del trigger para darle aire */
.select-trigger-wrapper {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

/* Resaltar el select inicial */
.select-trigger {
    border: 2px solid var(--azul-principal) !important; /* Borde más notorio */
    background-color: #fff !important;
    color: var(--azul-principal);
    font-size: 1.1rem;
    padding: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 77, 167, 0.1);
}


/* ==========================
   DISEÑO CORPORATIVO: MENSAJE DE ÉXITO
   ========================== */
.success-container {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fff;
    /* Borde sutil y sombra elegante */
    border: 1px solid #eef2f7;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeInSuccess 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    max-width: 800px;
    margin: 0 auto; /* Centrado en su contenedor padre */
}

/* Círculo Azul Corporativo con sombra suave */
.success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--azul-principal), #003a85);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 400; /* Más fino, más elegante */
    line-height: 1;
    box-shadow: 0 10px 20px rgba(0, 77, 167, 0.25); /* Sombra azulada */
}

.success-content h3 {
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif; /* Tu fuente de títulos */
    color: var(--azul-principal);
    margin-bottom: 1rem;
}

.success-content p {
    font-size: 1.15rem;
    color: var(--gris-oscuro);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    max-width: 60ch; /* Limita el ancho del texto para lectura fácil */
    margin-left: auto;
    margin-right: auto;
}

/* Botón de retorno más elegante */
#btnResetForm {
    margin-top: 2rem;
    border-color: var(--azul-principal);
    color: var(--azul-principal);
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    transition: all 0.3s ease;
}

    #btnResetForm:hover {
        background-color: var(--azul-principal);
        color: #fff;
        box-shadow: 0 4px 12px rgba(0, 77, 167, 0.2);
    }






@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste responsive para los campos B2B */
@media (max-width: 768px) {
    .b2b-field {
        grid-column: 1 / -1; /* En móvil que ocupen todo el ancho */
    }
}
