/* =====================================================
   GOOGLE FONT
===================================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* =====================================================
   RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;

    
}


/* ==============================
   OVERLAY OSCURO PREMIUM
============================== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgb(255, 255, 255),
        rgb(255, 245, 245)
    );
    z-index: -1;
}

/* =====================================================
   HEADER & NAVBAR (NEW PREMIUM)
===================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 12px 15px;
    background: rgb(255, 244, 252);
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.navbar {
    max-width: 1300px;
    margin: auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    background: rgb(255, 244, 252);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(219, 82, 107);
    box-shadow: 0 12px 45px rgba(5, 0, 5, 0.65);
    transition: 0.35s ease;
}

/* Hamburger icon */
.navbar .hamburger-btn {
    display: none;
    font-size: 2rem;
    color: rgba(219, 82, 107);
    cursor: pointer;
    transition: 0.25s;
}

.navbar .hamburger-btn:hover {
    transform: scale(1.08);
    color: #fff;
}

/* Logo */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar .logo img {
    width: 280px;
    transition: 0.3s ease;
}

.navbar .logo h2 {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Links */
.navbar .links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar .links a {
    color: rgb(0, 0, 0);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: 0.25s ease;
}

/* underline animation */
.navbar .links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0%;
    height: 2px;
    border-radius: 50px;
    background: linear-gradient(90deg, rgba(219, 82, 107), rgb(226, 45, 78));
    transition: 0.3s ease;
}

.navbar .links a:hover {
    color: rgba(219, 82, 107);
}

.nav-links a.active {
    color: rgba(219, 82, 107);
}


.navbar .links a:hover::after {
    width: 100%;
}

/* Navbar cuando se hace scroll */
header.scrolled {
    background: rgb(255, 252, 252);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.08);
}

/* Ocultar navbar suavemente */
header.hide-navbar {
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

/* =====================================================
   NAVBAR BUTTON (NEW PREMIUM)
===================================================== */
.navbar .login-btn {
    padding: 12px 22px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFD700, #ffb700);
    color: #111;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.25);
}

.navbar .login-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffc1f296, #FFD700);
    box-shadow: 0 18px 40px rgba(255, 215, 0, 0.35);
}

/* =====================================================
   RESPONSIVE NAVBAR
===================================================== */
@media (max-width: 950px) {
    .navbar .hamburger-btn {
        display: block;
    }

    .navbar .links {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(18px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transform: translateX(-100%);
        transition: 0.35s ease;
        z-index: 999;
    }

    .navbar .links.show-menu {
        transform: translateX(0);
    }

    .navbar .links a {
        color: #fff;
        font-size: 1.4rem;
        font-weight: 800;
    }

    .navbar .links a:hover {
        color: rgba(219, 82, 107);
    }
}

/* Mejoras para pantallas muy pequeñas */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar .logo h2 {
        font-size: 1.3rem;
    }

    .navbar .login-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .navbar .links a {
        font-size: 1.2rem;
    }
}


/* =====================================================
   FORM POPUP BACKGROUND
   ===================================================== */
.blur-bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 50;
}

.show-popup .blur-bg-overlay {
    opacity: 1;
    pointer-events: auto;
}
/* =====================================================
   FORM POPUP
===================================================== */
.form-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 720px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.65);
    transform: translate(-50%, -60%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 100;
}

.show-popup .form-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.form-popup .close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    transition: 0.25s;
    z-index: 10;
}

.form-popup .close-btn:hover {
    color: #e63946;
    transform: rotate(90deg);
}

/* =====================================================
   FORM STRUCTURE
===================================================== */
.form-box {
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    animation: fadeSlide 0.45s ease;
}

/* FORM DETAILS */
.form-box .form-details {
    max-width: 330px;
    width: 100%;
    padding: 40px 28px;
    text-align: center;
    color: #FFD700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    position: relative;
}

.form-box .form-details::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.form-box .form-details * {
    position: relative;
    z-index: 1;
}

.form-box .form-details h2 {
    font-size: 2.2rem;
    font-weight: 900;
}

.form-box .form-details p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
}

/* FORM CONTENT */
.form-content {
    width: 100%;
    padding: 45px;
}

.form-content h2 {
    text-align: center;
    margin-bottom: 26px;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(219, 82, 107);
}

/* INPUTS */
.input-field {
    position: relative;
    margin-bottom: 22px;
}

.input-field input {
    width: 100%;
    padding: 16px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 0.95rem;
    outline: none;
    transition: 0.25s;
}

.input-field input:focus {
    border-color: rgba(219, 82, 107);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 0, 106, 0.15);
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 14px;
    font-size: 0.85rem;
    color: #777;
    background: #fff;
    padding: 0 6px;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.25s;
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
    top: -8px;
    font-size: 0.75rem;
    color: rgba(219, 82, 107);
}

/* PASSWORD TOGGLE */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(219, 82, 107);
    transition: 0.2s;
}

.toggle-password:hover {
    color: #111;
}

/* BUTTONS */
form button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #000, #222);
    color: #FFD700;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
}

form button:hover {
    background: linear-gradient(135deg, #FFD700, #e6c200);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* BOTTOM LINKS */
.bottom-link {
    margin-top: 22px;
    text-align: center;
    font-size: 0.9rem;
}

.bottom-link a {
    color: rgba(219, 82, 107);
    font-weight: 600;
    text-decoration: none;
}

/* LOGIN / SIGNUP VISIBILITY */
.form-popup .login { display: flex; }
.form-popup .signup { display: none; }

.form-popup.show-signup .login { display: none; }
.form-popup.show-signup .signup { display: flex; }

/* BACKGROUNDS */
.login .form-details {
    background: url("../images/login-img.jpg") center/cover no-repeat;
}

.signup .form-details {
    background: url("../images/signupimg.png") center/cover no-repeat;
}

/* ANIMATIONS */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* FIX LABELS SUPERPUESTOS */
.registro-page .input-field {
    position: static;
}

.registro-page .input-field label {
    position: static;
    transform: none;
    margin-bottom: 6px;
    display: block;
    color: #ddd;
    font-size: 14px;
}

.registro-page .input-field input {
    padding: 12px;
}

/* RULE CARD ANIMATION */
.rule-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease;
}

.rule-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   MEDIA QUERIES MOVILES
===================================================== */
@media (max-width: 768px) {
    .form-popup {
        max-width: 90%;
        padding: 20px;
    }

    .form-box {
        flex-direction: column;
    }

    .form-box .form-details {
        max-width: 100%;
        padding: 20px;
    }

    .form-content {
        padding: 20px;
    }

    .input-field input {
        padding: 12px;
        font-size: 0.9rem;
    }

    form button {
        padding: 12px;
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.8rem;
        text-align: center;
        padding: 10px;
    }

    body {
        background-position: top center;
    }
}

/* ========== NUEVO: RESPONSIVE MEJORADO PARA MÓVIL ========== */
/* Este bloque unifica y optimiza la experiencia en dispositivos móviles */

@media (max-width: 950px) {
    /* ===== MENÚ HAMBURGUESA ===== */
    .navbar .hamburger-btn {
        display: block;
        font-size: 2.2rem; /* Un poco más grande para mejor toque */
        order: 1; /* Asegura que esté a la izquierda si es necesario */
    }

    /* Reorganizamos la barra para móvil: logo a la izquierda, botón login a la derecha */
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .navbar .logo {
        order: 0; /* Logo al inicio */
    }

    .navbar .login-btn {
        order: 2; /* Botón login a la derecha */
        margin-left: auto; /* Empuja el botón a la derecha si hay espacio */
        margin-right: 10px; /* Espacio antes del hamburguesa */
        padding: 8px 16px; /* Ligeramente más pequeño en móvil */
        font-size: 0.85rem;
    }

    /* ===== PANEL DESLIZANTE ===== */
    .navbar .links {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%; /* Ocupa el 80% de la pantalla */
        height: 100vh;
        background: rgba(10, 10, 10, 0.98); /* Fondo más sólido */
        backdrop-filter: blur(18px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Suavizado */
        z-index: 9999;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.7);
        border-right: 1px solid rgba(255, 215, 0, 0.2);
        list-style: none;
        padding: 20px 0;
    }

    /* Cuando el menú está abierto */
    .navbar .links.show-menu {
        transform: translateX(0);
    }

    /* Estilo de los enlaces dentro del panel */
    .navbar .links a {
        color: #fff;
        font-size: 1.6rem; /* Más grandes para móvil */
        font-weight: 700;
        display: inline-block;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    /* Aseguramos que la línea dorada se vea bien en móvil */
    .navbar .links a::after {
        bottom: -2px;
        height: 3px;
        background: #FFD700;
    }

    .navbar .links a:hover {
        color: #FFD700;
    }
}

/* ===== MEJORAS PARA PANTALLAS PEQUEÑAS ( < 768px ) ===== */
@media (max-width: 768px) {
    /* ===== HEADER Y NAVBAR ===== */
    header {
        padding: 8px 10px;
    }

    .navbar {
        padding: 8px 12px;
        border-radius: 8px;
    }

    .navbar .logo img {
        width: 50px; /* Logo más pequeño */
    }

    .navbar .logo h2 {
        font-size: 1.1rem; /* Texto del logo más pequeño */
        letter-spacing: 0.5px;
    }

    .navbar .login-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .navbar .hamburger-btn {
        font-size: 2rem;
    }

    /* ===== POPUP DE FORMULARIO ===== */
    .form-popup {
        max-width: 92%;
        width: 92%;
        border-radius: 24px; /* Bordes más redondeados */
        background: rgba(255,255,255,0.98);
    }

    .form-box {
        flex-direction: column; /* Apilar elementos verticalmente */
        border-radius: 24px;
    }

    /* Detalles decorativos arriba */
    .form-box .form-details {
        max-width: 100%;
        width: 100%;
        padding: 35px 20px 25px 20px;
        min-height: 170px; /* Altura fija para la parte decorativa */
    }

    .form-box .form-details h2 {
        font-size: 1.8rem;
    }

    .form-box .form-details p {
        font-size: 0.9rem;
    }

    /* Contenido del formulario abajo */
    .form-content {
        padding: 30px 20px 35px 20px;
    }

    .form-content h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    /* Inputs más cómodos para tocar */
    .input-field input {
        padding: 15px 12px; /* Mayor área táctil */
        font-size: 1rem;
    }

    .input-field label {
        font-size: 0.9rem;
    }

    /* Botón más grande y fácil de pulsar */
    form button {
        padding: 16px 12px;
        font-size: 1rem;
        margin-top: 15px;
        border-radius: 14px;
    }

    /* Ajustes para el toggle de contraseña */
    .toggle-password {
        font-size: 1.2rem;
        right: 12px;
    }

    /* Enlaces inferiores */
    .bottom-link {
        margin-top: 18px;
        font-size: 0.95rem;
    }

    /* ===== BOTÓN DE CERRAR POPUP ===== */
    .form-popup .close-btn {
        top: 12px;
        right: 15px;
        font-size: 26px;
        background: rgba(255,255,255,0.3);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #333;
    }

    .form-popup .close-btn:hover {
        transform: rotate(90deg);
        background: rgba(255,255,255,0.8);
    }

    /* ===== FIX PARA BACKGROUND EN MÓVIL ===== */
    body {
        background-attachment: fixed; /* Mejora en iOS */
        background-position: center;
    }

    /* ===== PÁGINA DE REGISTRO ===== */
    .registro-page .input-field label {
        font-size: 13px;
        margin-bottom: 5px;
    }
}

/* ===== PANTALLAS MUY PEQUEÑAS ( < 480px ) ===== */
@media (max-width: 480px) {
    .navbar .logo h2 {
        display: none; /* Ocultamos el texto del logo en pantallas muy pequeñas para ahorrar espacio */
    }

    .navbar .logo img {
        width: 45px;
    }

    .navbar .login-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .navbar .hamburger-btn {
        font-size: 1.8rem;
    }

    /* Menú deslizante más compacto */
    .navbar .links a {
        font-size: 1.3rem;
    }

    /* Popup aún más ajustado */
    .form-popup {
        max-width: 95%;
    }

    .form-box .form-details {
        padding: 25px 15px 20px 15px;
        min-height: 140px;
    }

    .form-box .form-details h2 {
        font-size: 1.5rem;
    }

    .form-box .form-details p {
        font-size: 0.8rem;
    }

    .form-content {
        padding: 25px 15px;
    }

    .form-content h2 {
        font-size: 1.4rem;
    }

    .input-field {
        margin-bottom: 18px;
    }
}


@media (min-width: 951px) and (max-width: 1200px) {
    .navbar {
        max-width: 95%;
        padding: 10px 18px;
    }

    .navbar .links {
        gap: 20px;
    }

    .navbar .links a {
        font-size: 0.95rem;
    }
}


/* =====================================================
   CONTACTO
===================================================== */

.contacto-section {
    padding: 150px 20px 100px;
    text-align: center;
    color: white;
}

.contacto-container {
    max-width: 1100px;
    margin: auto;
}

.contacto-title {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(219, 82, 107);
    margin-bottom: 20px;
}


.contacto-subtitle {
    font-size: 1rem;
    color: #111 !important;
    margin-bottom: 15px; 
    line-height: 1.6;
}

/* GRID */

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

/* CARD */

.contacto-card {
    background: rgb(0, 0, 0);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px 25px;
    border: 1px solid rgba(219, 82, 107, 0.753);;
    transition: 0.4s ease;
    box-shadow: 0 20px 50px rgb(0, 0, 0);
}

.contacto-card:hover {
    transform: translateY(-10px);
    border-color: rgba(219, 82, 107);;
    box-shadow: 0 30px 70px rgba(255, 0, 200, 0.25);
}

.contacto-card span {
    font-size: 3rem;
    color: rgba(219, 82, 107);;
    margin-bottom: 18px;
}

.contacto-card h3 {
    margin-bottom: 12px;
    font-weight: 800;
}

.contacto-card p {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}
/* =====================================================
   CONTACTO CORPORATIVO – PORTAL EMPRESARIAL
===================================================== */

.contacto-corporativo {
    padding: 160px 20px 100px;
    background: #0a0a0a;
    color: #fff;
    text-align: center;
}

.contacto-container {
    max-width: 1200px;
    margin: auto;
}

.contacto-title {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(219, 82, 107);
    margin-bottom: 15px;
}

.contacto-subtitle {
    font-size: 1rem;
    color: #d6d6d6;
    margin-bottom: 60px;
    line-height: 1.6;
}

/* GRID */

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* TARJETAS */

.contacto-card {

    /* amarillo bonito */
    background: #ffd0001a;

    border-radius: 18px;
    padding: 35px 25px;

    /* borde rosado grueso */
    border: 4px solid rgba(219, 82, 107);

    box-shadow: 0 15px 40px rgba(0,0,0,0.4);

    transition: 0.35s ease;
}

.contacto-card:hover {

    transform: translateY(-8px);

    /* borde dorado al hover */
    border-color: #FFD700;

    box-shadow: 0 20px 55px rgba(255,215,0,0.35);
}

/* ICONOS */

.icono-card {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 18px;
}

/* TARJETA PERSONA */

.persona-card {

    border: 4px solid rgba(219, 82, 107);

    background: #fff3b09c;
}

.persona-card .persona-icon {

    font-size: 3.5rem;

    color: #ffd90000;

    background: rgba(219, 82, 107, 0.219);

    width: 70px;
    height: 70px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;
}

/* TEXTOS */

.contacto-card h3 {

    margin-bottom: 10px;

    font-weight: 800;
    font-size: 1.2rem;

    color: rgba(219, 82, 107);
}

.contacto-card p {

    font-size: 0.95rem;
    line-height: 1.6;

    /* texto negro para contraste */
    color: #111;
}
/* =====================================================
   FONDO CORPORATIVO CONTACTO
===================================================== */

.contacto-corporativo {
    padding: 160px 20px 100px;

    /* Fondo sutil visible */
        background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5),
        rgba(255, 245, 245, 0.5)
    ),
        url("../images/contacto.jpeg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
    text-align: center;
}

/* Pequeño detalle extra elegante */

.contacto-corporativo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(255,215,0,0.08),
        transparent 60%
    );
    pointer-events: none;
}

/* Para que el contenido esté por encima */
.contacto-container {
    position: relative;
    z-index: 2;
}

