﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;800&display=swap');
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*Scroll*/

html {
    scroll-behavior: smooth;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f7fa;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 66, 128, 0.45);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 66, 128, 0.7); 
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 66, 128, 0.45) #f5f7fa;
}

/* El contenedor que envuelve el @RenderBody() */
main, .main-container {
    flex: 1;
}
:root{
  --c1:#004280;
  --c2:#EE7103;
  --c3:#003163;
  --w:#ffffff;

  --font-body:500;
  --font-sub:600;
  --font-title:800;

  --radius:16px;
  --shadow: 0 18px 55px rgba(0,0,0,.25);

  --logo-h: 75px;      
  --header-y: 10px;
}

/* VARIABLES */
:root {
    --azul-principal: #004280;
    --azul-oscuro: #003163;
    --naranja: #ee7103;
    --blanco: #fff;
    --header-y: 14px;
    --logo-h: 54px;
    --shadow: 0 22px 70px rgba(0,0,0,.45);
    --font-body: 500;
    --font-sub: 600;
}

/* HeaderR sticky */
.adm-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: linear-gradient(90deg, rgba(0, 49, 99, .95), rgba(0, 66, 128, .98));
    box-shadow: 0 10px 35px rgba(0, 0, 0, .25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.16);
    transform: translateY(0);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

/* Fondo sólido al scroll */
.adm-header.is-solid {
    background: linear-gradient(90deg, rgba(0,49,99,.95), rgba(0,66,128,.98));
    box-shadow: 0 10px 35px rgba(0,0,0,.25);
}

.adm-header.is-hidden {
    transform: translateY(-100%);
}

.adm-header__inner {
    width: min(1400px, 94%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: var(--header-y) 0;
}

/* Logo */
.adm-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.adm-brand__img {
    height: var(--logo-h);
    width: auto;
    display: block;
}

/* Nav compu */
.adm-nav {
    justify-self: center;
}

.adm-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.adm-nav__item {
    position: relative;
}

.adm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255,255,255,.95);
    text-decoration: none;
    font-weight: var(--font-sub);
    font-size: .95rem;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease;
}

.adm-link:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-1px);
    color: #fff;
}
.adm-link--btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(255,255,255,.95);
}

.adm-chev {
    font-size: .85rem;
    opacity: .85;
}

/* Dropdown compu */
.adm-dd {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 14px 8px 8px;
    margin: 0;
    list-style: none;
    border-radius: 14px;
    background: rgba(0,49,99,.96);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

/* Puente invisible */
.adm-nav__item--dd > .adm-dd::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}

.adm-dd__link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255,255,255,.95);
    text-decoration: none;
    font-weight: var(--font-body);
}

.adm-dd__link:hover {
    background: rgba(255,255,255,.12);
    color: white !important;
}

/* Hover compu */
@media (min-width: 901px) {
    .adm-nav__item--dd:hover > .adm-dd {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .adm-nav__item--loginMobile {
        display: none;
    }
}

/* CTA */
.adm-postular {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, var(--naranja), rgba(238,113,3,.85));
    box-shadow: 0 14px 26px rgba(238,113,3,.25);
}

.adm-postular:hover {
    filter: brightness(1.05);
    color: white;
}

.adm-postular > a:hover{
    color: white;
}

/* Login derecha */
.adm-right {
    justify-self: end;
}

.adm-login {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: rgba(255,255,255,.85);
    font-weight: var(--font-body);
}

.adm-login:hover {
    background: rgba(255,255,255,.10);
}

/* Toggle */
.adm-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    cursor: pointer;
    justify-self: end;
}

.adm-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: #fff;
    margin: 5px auto;
    border-radius: 99px;
}

/* Responsivo */
@media (max-width: 900px) {

    :root {
        --header-y: 10px;
        --logo-h: 44px;
    }

    .adm-header__inner {
        grid-template-columns: auto auto;
        gap: 12px;
    }

    .adm-toggle {
        display: block;
    }

    .adm-right {
        display: none;
    }

    /* Overlay */
    .adm-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        opacity: 0;
        pointer-events: none;
        z-index: 250;
        transition: opacity .24s cubic-bezier(.22,.61,.36,1);
    }

    .adm-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    .adm-overlay.is-closing {
        opacity: 0;
        pointer-events: none;
    }
    /* Nav overlay */
    .adm-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 64px;
        height: 77vh;
        padding: 18px 18px 26px;
        background: linear-gradient( 180deg, rgba(0, 49, 99, 0.72), rgba(0, 66, 128, 0.55) );
        border: 1px solid rgba(255,255,255,.12);
        box-shadow: 0 26px 70px rgba(0,0,0,.35);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease;
        z-index: 260;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        transition: opacity .24s cubic-bezier(.22,.61,.36,1), transform .24s cubic-bezier(.22,.61,.36,1), filter .24s cubic-bezier(.22,.61,.36,1);
        filter: blur(0px);
    }

    .adm-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
        pointer-events: auto;
    }

    /* Lista centro */
    .adm-nav__list {
        display: grid;
        gap: 14px;
        padding: 18px 22px;
        justify-items: center;
        text-align: center;
    }
    /* Cerrando */
    .adm-nav.is-closing {
        opacity: 0;
        transform: translateY(-14px) scale(.985);
        filter: blur(2px);
        pointer-events: none;
    }
    /* Links */
    .adm-link {
        width: auto;
        padding: 6px 0;
        border-radius: 0;
        background: transparent !important;
        border: none !important;
        font-size: 1.05rem;
        font-weight: 700;
        color: rgba(255,255,255,.92);
        transform: none !important;
    }

    .adm-link:hover {
        background: transparent;
        color: #fff;
    }

    /* Dropdown */
    .adm-dd {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        display: grid;
        gap: 10px;
        margin-top: 10px;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }

    .adm-nav__item--dd.is-open > .adm-dd {
        max-height: 240px;
    }

    .adm-dd__link {
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        font-weight: 600;
        color: rgba(255,255,255,.78);
    }

    .adm-dd__link:hover {
        background: transparent;
        color: #fff;
    }

    /* CTA y login centro */
    .adm-postular {
        margin-top: 6px;
        padding: 12px 26px;
        border-radius: 999px;
    }

    .adm-nav__item--loginMobile {
        margin-top: 4px;
    }

    .adm-link--loginMobile {
        color: rgba(255,255,255,.85);
        font-weight: 600;
    }
}
/* Mega menú Propiedades */

.adm-mega {
    width: 720px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 22px;
}

.adm-mega__title {
    margin: 0 0 12px;
    color: #9dccff;
    font-size: 1rem;
    font-weight: 800;
}

.adm-mega__col {
    display: grid;
    gap: 4px;
}

.adm-mega .adm-dd__link {
    font-size: .9rem;
    line-height: 1.25;
}

/* Para que no se salga de pantalla en desktop */
@media (min-width: 901px) {
    .adm-nav__item--mega .adm-mega {
        left: 50%;
        transform: translate(-50%, 6px);
    }

    .adm-nav__item--mega:hover > .adm-mega {
        transform: translate(-50%, 0);
    }
}

/* Mobile */
@media (max-width: 900px) {
    .adm-mega {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 12px 0 0;
    }

    .adm-nav__item--dd.is-open > .adm-mega {
        max-height: 900px;
    }

    .adm-mega__title {
        color: #9dccff;
        font-size: .95rem;
        margin-top: 8px;
    }

    .adm-mega .adm-dd__link {
        padding: 4px 0;
        font-size: .92rem;
    }
}
/*CHATBOT*/
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Poppins;
}
.chat-hidden {
    display: none !important;
}
#chatbot-header {
    background: #0F1696;
    color: white;
    padding: 12px;
    font-weight: 600;
}
.chatbot-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
#chatbot-header {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0F1696;
    color: white;
    padding: 12px;
    font-weight: 600;
}

.chatbot-logo-header {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 6px;
}
#chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color:black;
}

.message {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.user {
    align-self: flex-end;
    background: #2563eb;
    color: white;
}

.bot {
    align-self: flex-start;
    background: #e5e7eb;
}

#chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
}

    #chatbot-input input {
        flex: 1;
        border: none;
        padding: 10px;
    }

    #chatbot-input button {
        border: none;
        background: #2563eb;
        color: white;
        padding: 10px 15px;
        cursor: pointer;
    }
/* BOTÓN DEL CHAT */

#chatbot-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #2563eb;
    color: white;
    padding: 12px 18px;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
}

    #chatbot-button:hover {
        transform: scale(1.05);
    }

/* VENTANA CHAT */

#chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}
#chatbot-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37,99,235,0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37,99,235,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37,99,235,0);
    }
}
/* OCULTO */

.chat-hidden {
    display: none;
}

/* HEADER */

#chatbot-header {
    background: #0f172a;
    color: white;
    padding: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

#chatbot-close {
    cursor: pointer;
}
/*Footer*/
:root {
    --primary-gradient: linear-gradient(to right, #004280, #003163);
    --accent-color: #ee7103;
    --text-light: rgba(255, 255, 255, 0.85);
}

.modern-footer {
    background: var(--primary-gradient);
    color: #ffffff;
    bottom:0;
    font-family: 'Poppins', sans-serif;
    padding: 70px 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

/* Tipografía y títulos */
.footer-title {
    font-weight: 800; /* ExtraBold */
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--accent-color); /* Naranja */
}

.footer-subtitle {
    font-weight: 600; /* SemiBold */
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 8px;
}

.tagline, .contact-info p {
    font-weight: 500; /* Medium */
    line-height: 1.6;
    color: var(--text-light);
}

/*Logo imagen*/
:root {
    --primary-gradient: linear-gradient(to right, #004280, #003163);
    --accent-color: #ee7103;
    --text-light: rgba(255, 255, 255, 0.85);
    --white: #ffffff;
}

body {
    margin: 0;
}

.modern-footer {
    background: var(--primary-gradient);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    padding: 80px 0 20px 0;
    border-top: 4px solid var(--accent-color);
    width: 100%;
    position: relative;
    margin-top: auto; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

/* Columna 1: Logo */
.footer-logo {
    width: 170px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.tagline {
    font-weight: 500; /* Medium */
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Títulos y subtítulos */
.footer-title {
    font-weight: 800; /* ExtraBold */
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-subtitle {
    font-weight: 600; /* SemiBold */
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-subtitle::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: var(--accent-color);
    margin-top: 8px;
}

/*  Enlaces de Navegación  */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(8px);
}

.btn-postular {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 22px;
    border-radius: 999px;
    margin-top: 5px;
    font-weight: 600 !important;
}

.btn-postular:hover {
    box-shadow: 0 4px 15px rgba(238, 113, 3, 0.4);
    transform: translateY(-2px) !important;
}

/*  Contacto  */
.contact-info p {
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 1.1rem;
}

/*  Redes Sociales  */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    color: white;
}

/*  Footer Bottom  */
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
}

.brand-name {
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsividad */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-subtitle::after {
        margin: 8px auto 0;
    }

    .contact-info p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }
}
.footer-web-link {
    color: var(--text-light);
    text-decoration: none;
    transition: 0.3s;
}

.footer-web-link:hover {
    color: var(--accent-color);
}
/*Botón flotante whatsapp*/
:root {
    --whatsapp-color: #25D366;
}

.whatsapp-flow-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    z-index: 9999;
}

/* El botón circular */
:root {
   --wa-green: #25D366;
   --wa-dark: #128C7E;
}

.whatsapp-layout-container {
     position: fixed;
     bottom: 30px;
     right: 30px;
     display: flex;
     align-items: center;
     z-index: 999999;
}

/* Botón */
.wa-btn-pulse {
     width: 65px;
     height: 65px;
     background-color: var(--wa-green);
     color: white;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 38px;
     text-decoration: none;
     position: relative;
     box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
     transition: transform 0.3s ease;
}

.wa-btn-pulse:hover {
     transform: scale(1.1);
     background-color: var(--wa-dark);
}
/*  Animación */
.pulse-ring, .pulse-ring2 {
     content: '';
     position: absolute;
     width: 100%;
     height: 100%;
     border-radius: 50%;
     background-color: var(--wa-green);
     opacity: 0.8;
     z-index: -1;
}

.pulse-ring {
     animation: wa-pulse 2s infinite;
 }

.pulse-ring2 {
     animation: wa-pulse 2s infinite 0.5s; 
}

@keyframes wa-pulse {
 0% {
      transform: scale(1);
      opacity: 0.8;
    }
 100% {
       transform: scale(1.8);
       opacity: 0;
      }
}

/*  Leyenda Tooltip   */
.wa-tooltip {
     background: white;
     color: #333;
     padding: 10px 20px;
     border-radius: 30px;
     margin-right: 15px;
     font-family: 'Poppins', sans-serif;
     font-weight: 500; /* Medium */
     font-size: 15px;
     box-shadow: 0 5px 15px rgba(0,0,0,0.15);
     opacity: 0;
     transform: translateX(20px);
     transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
     pointer-events: none;
     position: relative;
}

.wa-tooltip::after {
     content: '';
     position: absolute;
     right: -8px;
     top: 50%;
     transform: translateY(-50%);
     border-top: 8px solid transparent;
     border-bottom: 8px solid transparent;
     border-left: 10px solid white;
}

.wa-tooltip.active {
     opacity: 1;
     transform: translateX(0);
}

/*Botón Top*/
.back-to-top {
     position: fixed;
     bottom: 110px; 
     right: 37px;
     width: 45px;
     height: 45px;
     background-color: #ee7103; 
     color: white;
     border: none;
     border-radius: 12px; 
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 20px;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
/* Inicial oculto */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px); 
}

.back-to-top:hover {
    background-color: #004280; 
    transform: translateY(-15px);
}

/*a*/
.adm-link, .wa-btn-pulse, .footer-links a {
    text-decoration: none;
}

/* Enlaces del menú y botón WhatsApp, color blanco en hover */
.adm-link:hover, .wa-btn-pulse:hover, .footer-links a:hover {
    color: #fff;
    transform: translateY(-1px); 
}

/* Iconos de redes sociales */
.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    color: white;
}
