
/* =========================================
   NEXA - ESTILOS PRINCIPALES
========================================= */


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0f19;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}


/* =========================================
   VARIABLES
========================================= */

:root {
    --primary: #6c63ff;
    --primary-dark: #5148e5;

    --background: #0b0f19;
    --background-secondary: #111827;
    --card: #151c2b;

    --text: #ffffff;
    --text-secondary: #a7afc2;

    --border: rgba(255, 255, 255, 0.08);

    --container: 1200px;

    --transition: 0.3s ease;
}
/* =====================================================
   SISTEMA DE REALIDADES — COLORES GLOBALES
===================================================== */

/* =========================
   CYBERPUNK
========================= */

body[data-reality="cyberpunk"] {

    --primary: #ff2bd6;
    --primary-dark: #c915a7;

    --background: #0d0612;
    --background-secondary: #16091d;
    --card: #211027;

    --text: #ffffff;
    --text-secondary: #d0a9cc;

    --border: rgba(255, 43, 214, 0.18);

    --reality-primary: #ff2bd6;
    --reality-secondary: #7b2cff;
}


/* =========================
   MATRIX
========================= */

body[data-reality="matrix"] {

    --primary: #00ff66;
    --primary-dark: #00b84a;

    --background: #020b05;
    --background-secondary: #04140a;
    --card: #071d0e;

    --text: #eafff0;
    --text-secondary: #8bc99f;

    --border: rgba(0, 255, 102, 0.16);

    --reality-primary: #00ff66;
    --reality-secondary: #00aa44;
}


/* =========================
   SYNTHWAVE
========================= */

body[data-reality="synthwave"] {

    --primary: #ff4fd8;
    --primary-dark: #b82cff;

    --background: #0b0618;
    --background-secondary: #140a2d;
    --card: #1c1038;

    --text: #ffffff;
    --text-secondary: #c6b6df;

    --border: rgba(255, 79, 216, 0.18);

    --reality-primary: #ff4fd8;
    --reality-secondary: #7047ff;
}


/* =========================
   ENERGY
========================= */

body[data-reality="energy"] {

    --primary: #00aaff;
    --primary-dark: #0066ff;

    --background: #03101c;
    --background-secondary: #061a2b;
    --card: #092238;

    --text: #ffffff;
    --text-secondary: #9dc9e8;

    --border: rgba(0, 170, 255, 0.18);

    --reality-primary: #00aaff;
    --reality-secondary: #0066ff;
}
/* =====================================================
   CAMBIO GLOBAL DE REALIDAD
===================================================== */

body[data-reality] {

    background-color: var(--background);

    color: var(--text);

    transition:
        background-color 0.6s ease,
        color 0.6s ease;
}


/* HEADER */

body[data-reality] .header {

    background:
        rgba(11, 15, 25, 0.82);

    border-color: var(--border);

    transition:
        background 0.6s ease,
        border-color 0.6s ease;
}


/* LOGO */

body[data-reality] .logo:hover {

    color: var(--primary);

    text-shadow:
        0 0 12px var(--primary);
}


/* NAV */

body[data-reality] .nav-list a:hover,
body[data-reality] .nav-list a.active {

    color: var(--primary);
}

body[data-reality] .nav-list a::after {

    background: var(--primary);

    box-shadow:
        0 0 10px var(--primary);
}


/* BOTONES */

body[data-reality] .btn-primary {

    background: var(--primary);

    box-shadow:
        0 0 15px color-mix(
            in srgb,
            var(--primary) 30%,
            transparent
        );
}

body[data-reality] .btn-primary:hover {

    background: var(--primary-dark);

    box-shadow:
        0 0 30px color-mix(
            in srgb,
            var(--primary) 55%,
            transparent
        );
}


/* LOGIN */

body[data-reality] .btn-login {

    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    border-color:
        color-mix(
            in srgb,
            var(--primary) 35%,
            transparent
        );
}

body[data-reality] .btn-login:hover {

    background: var(--primary);

    box-shadow:
        0 0 25px var(--primary);
}


/* TARJETAS */

body[data-reality] .service-card,
body[data-reality] .dashboard-card,
body[data-reality] .dashboard-info,
body[data-reality] .appointment-card,
body[data-reality] .login-container,
body[data-reality] .cta-content {

    background: var(--card);

    border-color: var(--border);

    transition:
        background 0.6s ease,
        border-color 0.6s ease,
        box-shadow 0.3s ease;
}


/* TARJETAS HOVER */

body[data-reality] .service-card:hover,
body[data-reality] .dashboard-card:hover {

    border-color: var(--primary);

    box-shadow:
        0 0 25px color-mix(
            in srgb,
            var(--primary) 18%,
            transparent
        );
}


/* ICONOS */

body[data-reality] .service-icon,
body[data-reality] .dashboard-card-icon {

    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    box-shadow:
        0 0 15px color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );
}


/* TEXTOS DESTACADOS */

body[data-reality] .section-header > span,
body[data-reality] .about-text > span,
body[data-reality] .dashboard-header span {

    color: var(--primary);
}


/* TITULOS CON SPAN */

body[data-reality] .hero h1 span,
body[data-reality] .dashboard-header h1 strong {

    color: var(--primary);

    text-shadow:
        0 0 20px color-mix(
            in srgb,
            var(--primary) 35%,
            transparent
        );
}


/* INPUTS */

body[data-reality] input:focus,
body[data-reality] textarea:focus,
body[data-reality] select:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        ),
        0 0 15px color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );
}


/* LINKS */

body[data-reality] .footer-links a:hover,
body[data-reality] .login-options a:hover,
body[data-reality] .login-register a {

    color: var(--primary);
}


/* ABOUT CARD */

body[data-reality] .about-card {

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--reality-secondary)
        );

    box-shadow:
        0 0 35px color-mix(
            in srgb,
            var(--primary) 25%,
            transparent
        );
}


/* CTA */

body[data-reality] .cta {

    background:
        radial-gradient(
            circle at center,
            color-mix(
                in srgb,
                var(--primary) 18%,
                transparent
            ),
            transparent 65%
        );
}


/* STATUS DE CITAS */

body[data-reality] .appointment-status {

    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    color: var(--primary);
}


/* PERFIL */

body[data-reality] .profile-button {

    border-color: var(--border);

    background: var(--card);
}

body[data-reality] .profile-button:hover {

    border-color: var(--primary);

    color: var(--primary);

    box-shadow:
        0 0 15px color-mix(
            in srgb,
            var(--primary) 20%,
            transparent
        );
}
/* =========================================
   UTILIDADES
========================================= */

.container {
    width: min(90%, var(--container));
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(11, 15, 25, 0.85);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}

.header .container {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    font-size: 1.8rem;
    font-weight: 800;

    letter-spacing: 2px;

    color: var(--text);

    transition: var(--transition);
}

.logo:hover {
    color: var(--primary);
}


/* NAVBAR */

.navbar {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    position: relative;

    color: var(--text-secondary);

    font-size: 0.95rem;

    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--text);
}


/* Línea debajo del enlace */

.nav-list a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}


/* =========================================
   BOTONES
========================================= */

.btn-primary,
.btn-secondary,
.btn-login {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    border-radius: 8px;

    font-weight: 600;

    transition: var(--transition);

    cursor: pointer;
}


/* BOTÓN PRINCIPAL */

.btn-primary {
    background: var(--primary);
    color: #ffffff;

    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.35);
}


/* BOTÓN SECUNDARIO */

.btn-secondary {
    border: 1px solid var(--border);

    color: var(--text);

    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);

    transform: translateY(-2px);
}


/* BOTÓN LOGIN */

.btn-login {
    background: rgba(108, 99, 255, 0.12);

    border: 1px solid rgba(108, 99, 255, 0.3);

    color: #ffffff;
}

.btn-login:hover {
    background: var(--primary);

    transform: translateY(-2px);
}


/* =========================================
   MENÚ MÓVIL
========================================= */

.menu-toggle {
    display: none;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 1.8rem;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    min-height: calc(100vh - 75px);

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(108, 99, 255, 0.18),
            transparent 35%
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    top: -150px;
    left: -150px;

    background: rgba(108, 99, 255, 0.08);

    border-radius: 50%;

    filter: blur(80px);
}

.hero-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;

    position: relative;

    z-index: 1;
}


/* HERO TEXTO */

.hero-text {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;

    margin-bottom: 20px;

    padding: 7px 14px;

    border-radius: 50px;

    background: rgba(108, 99, 255, 0.12);

    border: 1px solid rgba(108, 99, 255, 0.25);

    color: #a9a3ff;

    font-size: 0.85rem;

    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text p {
    max-width: 600px;

    color: var(--text-secondary);

    font-size: 1.1rem;

    margin-bottom: 35px;
}


/* HERO BOTONES */

.hero-buttons {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}


/* =========================================
   HERO CARD
========================================= */

.hero-image {
    display: flex;

    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 320px;
    min-height: 320px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(108, 99, 255, 0.2),
            rgba(21, 28, 43, 0.8)
        );

    border: 1px solid rgba(108, 99, 255, 0.25);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        inset 0 0 50px rgba(108, 99, 255, 0.05);

    animation: floating 5s ease-in-out infinite;
}

.hero-card-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100px;
    height: 100px;

    margin-bottom: 25px;

    border-radius: 25px;

    background: var(--primary);

    font-size: 2.5rem;

    font-weight: bold;

    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
}

.hero-card h2 {
    font-size: 2rem;

    letter-spacing: 4px;

    margin-bottom: 5px;
}

.hero-card p {
    color: var(--text-secondary);
}


/* ANIMACIÓN */

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


/* =========================================
   SECCIONES
========================================= */

.services-preview,
.about-preview {
    padding: 120px 0;
}

.section-header {
    max-width: 700px;

    margin: 0 auto 60px;

    text-align: center;
}

.section-header > span,
.about-text > span {
    color: var(--primary);

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 0.8rem;
}

.section-header h2 {
    margin: 15px 0;

    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.1;
}

.section-header p {
    color: var(--text-secondary);

    font-size: 1rem;
}


/* =========================================
   SERVICIOS
========================================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.service-card {
    padding: 35px;

    border-radius: 18px;

    background: var(--card);

    border: 1px solid var(--border);

    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);

    border-color: rgba(108, 99, 255, 0.4);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.service-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin-bottom: 25px;

    border-radius: 15px;

    background: rgba(108, 99, 255, 0.12);

    font-size: 1.6rem;
}

.service-card h3 {
    margin-bottom: 12px;

    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);

    font-size: 0.95rem;
}


/* =========================================
   SOBRE NEXA
========================================= */

.about-preview {
    background: var(--background-secondary);
}

.about-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}

.about-image {
    display: flex;

    justify-content: center;
}

.about-card {
    width: 350px;
    height: 350px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #302b8f
        );

    font-size: 3rem;

    font-weight: 800;

    letter-spacing: 8px;

    box-shadow: 0 30px 70px rgba(108, 99, 255, 0.25);

    transform: rotate(-3deg);

    transition: var(--transition);
}

.about-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-text h2 {
    margin: 15px 0 20px;

    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.1;
}

.about-text p {
    color: var(--text-secondary);

    margin-bottom: 18px;
}


/* =========================================
   CTA
========================================= */

.cta {
    padding: 100px 0;

    background:
        radial-gradient(
            circle at center,
            rgba(108, 99, 255, 0.18),
            transparent 60%
        );
}

.cta-content {
    padding: 70px 30px;

    text-align: center;

    border-radius: 25px;

    background: var(--card);

    border: 1px solid var(--border);
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 10px;
}

.cta p {
    color: var(--text-secondary);

    margin-bottom: 30px;

    font-size: 1.1rem;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #080b12;

    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 50px;

    padding: 70px 0;
}

.footer-brand p {
    max-width: 300px;

    margin-top: 15px;

    color: var(--text-secondary);
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-links h3 {
    margin-bottom: 10px;

    font-size: 1rem;
}

.footer-links a {
    color: var(--text-secondary);

    font-size: 0.9rem;

    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);

    transform: translateX(4px);
}

.footer-bottom {
    padding: 20px;

    text-align: center;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);

    font-size: 0.85rem;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .navbar {
        gap: 15px;
    }

    .nav-list {
        gap: 15px;
    }

    .hero-content,
    .about-content {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 50px;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: 2;
    }

    .about-text {
        order: 1;
    }

    .about-text .btn-primary {
        margin-top: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================
   MÓVILES
========================================= */

@media (max-width: 650px) {

    .header .container {
        min-height: 65px;
    }

     .navbar {
        position: absolute;
        top: 65px;
        left: 0;

        width: 100%;

        padding: 25px;

        display: none;

        flex-direction: column;
        align-items: stretch;

        background: #0b0f19;

        border-bottom: 1px solid var(--border);

        z-index: 999;
    }

    .navbar.active {
        display: flex !important;
    }

    .nav-list {
        display: flex;

        flex-direction: column;
        align-items: flex-start;

        gap: 20px;

        margin-bottom: 20px;
    }

    .btn-login {
        text-align: center;
    }

    .menu-toggle {
        display: block;

        position: relative;

        z-index: 1001;
    }

    .hero {
        min-height: auto;

        padding: 100px 0;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-card {
        width: 270px;
        height: 270px;
        min-height: 270px;
    }

    .services-preview,
    .about-preview {
        padding: 80px 0;
    }

    .about-card {
        width: 280px;
        height: 280px;

        font-size: 2.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* =========================================
   LOGIN
========================================= */

.login-section {
    min-height: calc(100vh - 140px);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 80px 20px;

    background:
        radial-gradient(
            circle at center,
            rgba(108, 99, 255, 0.12),
            transparent 55%
        );
}


/* CONTENEDOR */

.login-container {
    width: 100%;
    max-width: 450px;

    padding: 45px;

    border-radius: 20px;

    background: var(--card);

    border: 1px solid var(--border);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);
}


/* CABECERA */

.login-header {
    text-align: center;

    margin-bottom: 35px;
}

.login-header span {
    color: var(--primary);

    font-size: 0.8rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 2px;
}

.login-header h1 {
    margin-top: 12px;

    margin-bottom: 10px;

    font-size: 2.2rem;
}

.login-header p {
    color: var(--text-secondary);

    font-size: 0.95rem;
}


/* FORMULARIO */

.login-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* GRUPO */

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;

    font-weight: 600;
}


/* INPUTS */

.form-group input {
    width: 100%;

    padding: 14px 16px;

    border-radius: 9px;

    border: 1px solid var(--border);

    outline: none;

    background: #0b0f19;

    color: #ffffff;

    font-size: 0.95rem;

    transition: var(--transition);
}

.form-group input::placeholder {
    color: #687187;
}

.form-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(108, 99, 255, 0.12);
}


/* OPCIONES */

.login-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    font-size: 0.85rem;
}

.remember-me {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text-secondary);

    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary);

    cursor: pointer;
}

.login-options a {
    color: var(--primary);

    transition: var(--transition);
}

.login-options a:hover {
    color: #918bff;

    text-decoration: underline;
}


/* BOTÓN LOGIN */

.login-button {
    width: 100%;

    border: none;

    margin-top: 5px;

    font-size: 1rem;
}


/* REGISTRO */

.login-register {
    margin-top: 30px;

    padding-top: 25px;

    text-align: center;

    border-top: 1px solid var(--border);
}

.login-register p {
    display: inline;

    color: var(--text-secondary);

    font-size: 0.9rem;
}

.login-register a {
    margin-left: 5px;

    color: var(--primary);

    font-weight: 600;

    transition: var(--transition);
}

.login-register a:hover {
    color: #918bff;
}


/* =========================================
   LOGIN RESPONSIVE
========================================= */

@media (max-width: 500px) {

    .login-section {
        padding: 50px 15px;
    }

    .login-container {
        padding: 30px 22px;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .login-options {
        flex-direction: column;

        align-items: flex-start;
    }

}

/* =========================================
   DASHBOARD
========================================= */

.dashboard {
    min-height: calc(100vh - 140px);

    padding: 70px 20px;
}


.dashboard-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}


/* HEADER */

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header span {
    color: var(--primary);

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 2px;
}

.dashboard-header h1 {
    margin-top: 10px;

    margin-bottom: 10px;

    font-size: 2.4rem;
}

.dashboard-header h1 strong {
    color: var(--primary);
}

.dashboard-header p {
    color: var(--text-secondary);
}


/* GRID */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 30px;
}


/* CARDS */

.dashboard-card {
    display: flex;

    gap: 18px;

    padding: 25px;

    border-radius: 16px;

    background: var(--card);

    border: 1px solid var(--border);

    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-4px);

    border-color: var(--primary);
}

.dashboard-card-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(108, 99, 255, 0.12);

    font-size: 1.3rem;
}

.dashboard-card h3 {
    margin-bottom: 8px;
}

.dashboard-card p {
    margin-bottom: 12px;

    color: var(--text-secondary);

    font-size: 0.9rem;

    line-height: 1.5;
}

.dashboard-card a {
    color: var(--primary);

    font-size: 0.9rem;

    font-weight: 600;
}


/* INFORMACIÓN */

.dashboard-info {
    padding: 30px;

    margin-bottom: 25px;

    border-radius: 16px;

    background: var(--card);

    border: 1px solid var(--border);
}

.dashboard-info h2 {
    margin-bottom: 20px;
}

.user-info {
    display: grid;

    gap: 12px;
}

.user-info p {
    color: var(--text-secondary);
}

.user-info strong {
    color: var(--text);
}


/* LOGOUT */

.logout-button {
    padding: 12px 25px;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

}

/* =========================================
   CITAS
========================================= */

.appointments-page {
    min-height: calc(100vh - 140px);

    padding: 70px 20px;
}


.appointments-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}


.appointment-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 25px;
}


.appointment-card {
    padding: 30px;

    border-radius: 16px;

    background: var(--card);

    border: 1px solid var(--border);
}


.appointment-card h2 {
    margin-bottom: 25px;
}


.appointment-card form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.appointment-card input,
.appointment-card textarea {
    width: 100%;

    padding: 13px 15px;

    border-radius: 9px;

    border: 1px solid var(--border);

    outline: none;

    background: #0b0f19;

    color: #ffffff;

    font-family: inherit;

    font-size: 0.95rem;

    transition: var(--transition);
}


.appointment-card textarea {
    resize: vertical;
}


.appointment-card input:focus,
.appointment-card textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(108, 99, 255, 0.12);
}


/* CITA */

.appointment-item {
    padding: 18px;

    margin-bottom: 15px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid var(--border);
}


.appointment-item:last-child {
    margin-bottom: 0;
}


.appointment-item h3 {
    margin-bottom: 8px;
}


.appointment-item p {
    margin-bottom: 6px;

    color: var(--text-secondary);

    font-size: 0.9rem;
}


.appointment-status {
    display: inline-block;

    margin-top: 8px;

    padding: 5px 10px;

    border-radius: 20px;

    background: rgba(108, 99, 255, 0.12);

    color: var(--primary);

    font-size: 0.75rem;

    font-weight: 700;

    text-transform: uppercase;
}


.appointments-loading,
.no-appointments {
    color: var(--text-secondary);
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .appointment-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================
   MENU DE PERFIL
========================================= */

.auth-buttons {
    display: flex;
    align-items: center;
    margin-left: 25px;
}

.profile-menu {
    position: relative;
    display: inline-block;
}


/* BOTÓN PERFIL */

.profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 42px;
    padding: 0 16px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--card);
    color: var(--text);

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

.profile-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-button span {
    font-size: 14px;
}


/* MENU DESPLEGABLE */

.profile-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    width: 200px;

    padding: 8px;

    background: #151927;

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);

    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 9999;
}


/* CUANDO SE ABRE */

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* OPCIONES */

.profile-dropdown a,
.profile-dropdown button {
    display: flex;

    align-items: center;

    width: 100%;

    padding: 11px 12px;

    margin: 0;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: var(--text);

    font-family: inherit;
    font-size: 0.9rem;

    text-decoration: none;

    text-align: left;

    cursor: pointer;

    box-sizing: border-box;
}


/* HOVER */

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: rgba(108, 99, 255, 0.12);

    color: var(--primary);
}


/* CERRAR SESIÓN */

.profile-dropdown button {
    color: #ff6b6b;
}

.profile-dropdown button:hover {
    color: #ff8585;
    background: rgba(255, 80, 80, 0.08);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .auth-buttons {
        margin-left: 0;
        width: 100%;
    }

    .profile-menu {
        width: 100%;
    }

    .profile-button {
        width: 100%;
    }

    .profile-dropdown {
        position: static;

        width: 100%;

        margin-top: 10px;
    }

}

/* =========================================
   BOTÓN CANCELAR CITA
========================================= */

.cancel-appointment-btn {

    margin-top: 15px;

    padding: 10px 18px;

    border: none;

    border-radius: 8px;

    background-color: #dc3545;

    color: white;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;

}


.cancel-appointment-btn:hover {

    background-color: #b02a37;

    transform: translateY(-1px);

}


.cancel-appointment-btn:active {

    transform: translateY(0);

}


.cancel-appointment-btn:focus {

    outline: 2px solid #dc3545;

    outline-offset: 2px;

}


/* =========================================
   MENSAJE CITA CANCELADA
========================================= */

.appointment-cancelled {

    margin-top: 15px;

    font-size: 14px;

    font-weight: 600;

    color: #dc3545;

}
/* =====================================================
   NOVA WEBSITES — SISTEMA CAMBIAR DE REALIDAD
===================================================== */


/* =====================================================
   VARIABLES DE REALIDAD
===================================================== */

:root {

    --reality-primary: #00e5ff;
    --reality-secondary: #0077ff;
    --reality-accent: #ffffff;

    --reality-bg: #050816;

    --reality-glow:
        0 0 15px rgba(0, 229, 255, 0.35),
        0 0 40px rgba(0, 119, 255, 0.15);

}


/* =====================================================
   BOTÓN FLOTANTE
===================================================== */

.reality-system {

    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 9999;

}


.reality-button {

    display: flex;

    align-items: center;
    gap: 10px;

    padding: 13px 18px;

    border: 1px solid
        color-mix(
            in srgb,
            var(--reality-primary) 50%,
            transparent
        );

    border-radius: 14px;

    background:
        rgba(5, 8, 22, 0.85);

    backdrop-filter: blur(15px);

    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        var(--reality-glow);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

}


.reality-button:hover {

    transform:
        translateY(-4px)
        scale(1.03);

    box-shadow:
        0 0 20px
        color-mix(
            in srgb,
            var(--reality-primary) 60%,
            transparent
        ),
        0 0 60px
        color-mix(
            in srgb,
            var(--reality-secondary) 30%,
            transparent
        );

}


/* =====================================================
   PANEL
===================================================== */

.reality-panel {

    position: absolute;

    right: 0;
    bottom: 65px;

    width: 330px;

    padding: 22px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 15, 35, 0.97),
            rgba(3, 6, 18, 0.97)
        );

    border: 1px solid
        color-mix(
            in srgb,
            var(--reality-primary) 35%,
            transparent
        );

    backdrop-filter: blur(20px);

    box-shadow:

        0 20px 70px
        rgba(0, 0, 0, 0.55),

        0 0 35px
        color-mix(
            in srgb,
            var(--reality-primary) 15%,
            transparent
        );

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px)
        scale(0.96);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

}


.reality-panel.active {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);

}


/* =====================================================
   HEADER DEL PANEL
===================================================== */

.reality-panel-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

}


.reality-label {

    display: block;

    margin-bottom: 5px;

    color:
        var(--reality-primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}


.reality-panel-header h3 {

    margin: 0;

    color: white;

    font-size: 21px;

}


.reality-close {

    width: 32px;
    height: 32px;

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.06);

    color: white;

    font-size: 22px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.reality-close:hover {

    background:
        rgba(255,255,255,0.14);

    transform:
        rotate(90deg);

}


/* =====================================================
   DESCRIPCIÓN
===================================================== */

.reality-description {

    margin: 15px 0 20px;

    color:
        rgba(255,255,255,0.6);

    font-size: 13px;

    line-height: 1.5;

}


/* =====================================================
   OPCIONES
===================================================== */

.reality-options {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.reality-option {

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 12px;

    border: 1px solid
        rgba(255,255,255,0.06);

    border-radius: 12px;

    background:
        rgba(255,255,255,0.025);

    color: white;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.reality-option:hover {

    transform:
        translateX(5px);

    background:
        rgba(255,255,255,0.06);

    border-color:
        color-mix(
            in srgb,
            var(--reality-primary) 40%,
            transparent
        );

}


/* OPCIÓN ACTIVA */

.reality-option.active {

    background:
        color-mix(
            in srgb,
            var(--reality-primary) 10%,
            transparent
        );

    border-color:
        color-mix(
            in srgb,
            var(--reality-primary) 55%,
            transparent
        );

    box-shadow:

        inset 3px 0
        var(--reality-primary),

        0 0 20px
        color-mix(
            in srgb,
            var(--reality-primary) 10%,
            transparent
        );

}


/* =====================================================
   ICONOS
===================================================== */

.reality-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        rgba(255,255,255,0.06);

    font-size: 20px;

}


.reality-info {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.reality-info strong {

    font-size: 13px;

}


.reality-info small {

    color:
        rgba(255,255,255,0.45);

    font-size: 11px;

}


/* =====================================================
   ESTADO
===================================================== */

.reality-status {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 18px;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(255,255,255,0.07);

    color:
        rgba(255,255,255,0.45);

    font-size: 11px;

}


.reality-status strong {

    color:
        var(--reality-primary);

}


.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--reality-primary);

    box-shadow:
        0 0 10px
        var(--reality-primary);

    animation:
        realityPulse 1.5s infinite;

}


@keyframes realityPulse {

    0%,
    100% {

        opacity: 1;

        transform: scale(1);

    }

    50% {

        opacity: 0.45;

        transform: scale(0.75);

    }

}


/* =====================================================
   PANTALLA DE TRANSICIÓN
===================================================== */

.reality-transition {

    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        #03050d;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}


.reality-transition.active {

    opacity: 1;

    visibility: visible;

    animation:
        realityTransition 1.4s ease;

}


.transition-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 14px;

    color: white;

}


.transition-icon {

    font-size: 55px;

    color:
        var(--reality-primary);

    text-shadow:

        0 0 15px
        var(--reality-primary),

        0 0 45px
        var(--reality-primary);

    animation:
        realitySpin 1s linear infinite;

}


.transition-content span {

    color:
        rgba(255,255,255,0.65);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 4px;

}


.transition-content strong {

    color:
        var(--reality-primary);

    font-size: 24px;

    letter-spacing: 3px;

}


.transition-loader {

    width: 260px;

    height: 4px;

    overflow: hidden;

    border-radius: 10px;

    background:
        rgba(255,255,255,0.08);

}


.transition-loader div {

    width: 0%;

    height: 100%;

    background:
        var(--reality-primary);

    box-shadow:
        0 0 15px
        var(--reality-primary);

    animation:
        realityLoading 1.1s ease forwards;

}


@keyframes realityLoading {

    from {
        width: 0%;
    }

    to {
        width: 100%;
    }

}


@keyframes realitySpin {

    to {
        transform: rotate(360deg);
    }

}


@keyframes realityTransition {

    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}


/* =====================================================
   REALIDAD CYBERPUNK
===================================================== */

body[data-reality="cyberpunk"] {

    --reality-primary: #ff2bd6;
    --reality-secondary: #7b2cff;

}


body[data-reality="cyberpunk"] .hero {

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(255,43,214,0.12),
            transparent 40%
        );

}


/* =====================================================
   REALIDAD MATRIX
===================================================== */

body[data-reality="matrix"] {

    --reality-primary: #00ff66;
    --reality-secondary: #00aa44;

}


body[data-reality="matrix"] {

    background-color:
        #020b05;

}


/* =====================================================
   REALIDAD SYNTHWAVE
===================================================== */

body[data-reality="synthwave"] {

    --reality-primary: #ff4fd8;
    --reality-secondary: #7047ff;

}


body[data-reality="synthwave"] .hero {

    background:

        linear-gradient(
            180deg,
            rgba(255,79,216,0.08),
            transparent
        );

}


/* =====================================================
   REALIDAD ENERGY
===================================================== */

body[data-reality="energy"] {

    --reality-primary: #00aaff;
    --reality-secondary: #0066ff;

}


body[data-reality="energy"] .hero {

    background:

        radial-gradient(
            circle at 50% 20%,
            rgba(0,170,255,0.15),
            transparent 45%
        );

}


/* =====================================================
   EFECTO GENERAL EN ELEMENTOS
===================================================== */

body[data-reality] .btn-primary {

    box-shadow:

        0 0 15px
        color-mix(
            in srgb,
            var(--reality-primary) 20%,
            transparent
        );

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;

}


body[data-reality] .btn-primary:hover {

    box-shadow:

        0 0 25px
        color-mix(
            in srgb,
            var(--reality-primary) 45%,
            transparent
        );

}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 600px) {

    .reality-system {

        right: 15px;
        bottom: 15px;

    }


    .reality-button span {

        display: none;

    }


    .reality-button {

        width: 50px;
        height: 50px;

        padding: 0;

        justify-content: center;

        border-radius: 50%;

        font-size: 20px;

    }


    .reality-panel {

        right: 0;

        bottom: 62px;

        width:
            min(
                330px,
                calc(100vw - 30px)
            );

    }

}
/* =====================================================
   NEXA — CAMBIO COMPLETO DE REALIDAD
   ===================================================== */

/* =====================================================
   REALIDAD CYBERPUNK
   ===================================================== */

body[data-reality="cyberpunk"] {

    --primary: #ff2bd6;
    --primary-dark: #b915a0;

    --background: #0b0612;
    --background-secondary: #160b1d;
    --card: #211027;

    --text-secondary: #d09bc8;

    --border: rgba(255, 43, 214, 0.18);

    --reality-primary: #ff2bd6;
    --reality-secondary: #7b2cff;
}

body[data-reality="cyberpunk"] .hero {

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(255, 43, 214, 0.25),
            transparent 40%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(123, 44, 255, 0.18),
            transparent 35%
        );
}

body[data-reality="cyberpunk"] .hero::before {

    background: rgba(255, 43, 214, 0.12);
}

body[data-reality="cyberpunk"] .hero-card {

    background:
        linear-gradient(
            145deg,
            rgba(255, 43, 214, 0.25),
            rgba(123, 44, 255, 0.2)
        );

    border-color: rgba(255, 43, 214, 0.35);

    box-shadow:
        0 0 40px rgba(255, 43, 214, 0.2),
        0 30px 80px rgba(0, 0, 0, 0.45);
}

body[data-reality="cyberpunk"] .about-card {

    background:
        linear-gradient(
            135deg,
            #ff2bd6,
            #7b2cff
        );

    box-shadow:
        0 0 50px rgba(255, 43, 214, 0.35);
}

body[data-reality="cyberpunk"] .service-card:hover {

    box-shadow:
        0 0 35px rgba(255, 43, 214, 0.18);
}


/* =====================================================
   REALIDAD MATRIX
   ===================================================== */

body[data-reality="matrix"] {

    --primary: #00ff66;
    --primary-dark: #00aa44;

    --background: #020b05;
    --background-secondary: #04150a;
    --card: #071d0d;

    --text-secondary: #8ed8a8;

    --border: rgba(0, 255, 102, 0.15);

    --reality-primary: #00ff66;
    --reality-secondary: #00aa44;
}

body[data-reality="matrix"] .hero {

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(0, 255, 102, 0.18),
            transparent 40%
        ),
        linear-gradient(
            180deg,
            rgba(0, 255, 102, 0.04),
            transparent
        );
}

body[data-reality="matrix"] .hero::before {

    background: rgba(0, 255, 102, 0.08);
}

body[data-reality="matrix"] .about-card {

    background:
        linear-gradient(
            135deg,
            #00ff66,
            #006b2c
        );

    color: #001b08;

    box-shadow:
        0 0 50px rgba(0, 255, 102, 0.3);
}

body[data-reality="matrix"] .service-card:hover {

    box-shadow:
        0 0 35px rgba(0, 255, 102, 0.15);
}


/* =====================================================
   REALIDAD SYNTHWAVE
   ===================================================== */

body[data-reality="synthwave"] {

    --primary: #ff4fd8;
    --primary-dark: #7047ff;

    --background: #0b0618;
    --background-secondary: #140b29;
    --card: #1d1038;

    --text-secondary: #c8a9e8;

    --border: rgba(255, 79, 216, 0.18);

    --reality-primary: #ff4fd8;
    --reality-secondary: #7047ff;
}

body[data-reality="synthwave"] .hero {

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(112, 71, 255, 0.2),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 30%,
            rgba(255, 79, 216, 0.2),
            transparent 40%
        );
}

body[data-reality="synthwave"] .about-card {

    background:
        linear-gradient(
            135deg,
            #ff4fd8,
            #7047ff
        );

    box-shadow:
        0 0 60px rgba(255, 79, 216, 0.3),
        0 0 100px rgba(112, 71, 255, 0.2);
}

body[data-reality="synthwave"] .service-card:hover {

    box-shadow:
        0 0 40px rgba(255, 79, 216, 0.2);
}


/* =====================================================
   REALIDAD ENERGY
   ===================================================== */

body[data-reality="energy"] {

    --primary: #00aaff;
    --primary-dark: #0066ff;

    --background: #03101c;
    --background-secondary: #061a2b;
    --card: #09233a;

    --text-secondary: #9bc9e8;

    --border: rgba(0, 170, 255, 0.18);

    --reality-primary: #00aaff;
    --reality-secondary: #0066ff;
}

body[data-reality="energy"] .hero {

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(0, 170, 255, 0.25),
            transparent 45%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(0, 102, 255, 0.15),
            transparent 35%
        );
}

body[data-reality="energy"] .about-card {

    background:
        linear-gradient(
            135deg,
            #00aaff,
            #0066ff
        );

    box-shadow:
        0 0 60px rgba(0, 170, 255, 0.35);
}

body[data-reality="energy"] .service-card:hover {

    box-shadow:
        0 0 40px rgba(0, 170, 255, 0.2);
}


/* =====================================================
   ELEMENTOS GENERALES DE TODAS LAS REALIDADES
   ===================================================== */

body[data-reality] .logo:hover {

    color: var(--primary);
}

body[data-reality] .nav-list a::after {

    background: var(--primary);
}

body[data-reality] .hero h1 span {

    color: var(--primary);
}

body[data-reality] .hero-badge {

    background: color-mix(
        in srgb,
        var(--primary) 12%,
        transparent
    );

    border-color: color-mix(
        in srgb,
        var(--primary) 35%,
        transparent
    );

    color: var(--primary);
}

body[data-reality] .btn-primary {

    background: var(--primary);

    box-shadow:
        0 0 20px
        color-mix(
            in srgb,
            var(--primary) 30%,
            transparent
        );
}

body[data-reality] .btn-primary:hover {

    background: var(--primary-dark);

    box-shadow:
        0 0 35px
        color-mix(
            in srgb,
            var(--primary) 45%,
            transparent
        );
}

body[data-reality] .btn-login {

    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    border-color:
        color-mix(
            in srgb,
            var(--primary) 35%,
            transparent
        );
}

body[data-reality] .btn-login:hover {

    background: var(--primary);
}

body[data-reality] .section-header > span,
body[data-reality] .about-text > span {

    color: var(--primary);
}

body[data-reality] .service-icon {

    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );
}

body[data-reality] .service-card:hover {

    border-color:
        color-mix(
            in srgb,
            var(--primary) 45%,
            transparent
        );
}

body[data-reality] .login-header span {

    color: var(--primary);
}

body[data-reality] .form-group input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--primary) 15%,
            transparent
        );
}

body[data-reality] .login-options a,
body[data-reality] .login-register a {

    color: var(--primary);
}

body[data-reality] .dashboard-header span,
body[data-reality] .dashboard-header h1 strong {

    color: var(--primary);
}

body[data-reality] .dashboard-card:hover {

    border-color: var(--primary);
}

body[data-reality] .dashboard-card-icon {

    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );
}

body[data-reality] .dashboard-card a {

    color: var(--primary);
}

body[data-reality] .appointment-status {

    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    color: var(--primary);
}

body[data-reality] .profile-button:hover {

    border-color: var(--primary);

    color: var(--primary);
}

body[data-reality] .profile-dropdown a:hover {

    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    color: var(--primary);
}

body[data-reality] .cta {

    background:
        radial-gradient(
            circle at center,
            color-mix(
                in srgb,
                var(--primary) 20%,
                transparent
            ),
            transparent 60%
        );
}
/* =====================================================
   NEXA — CAMBIO GLOBAL DE REALIDAD
===================================================== */

/* Transición general */
body {
    transition:
        background-color 0.6s ease,
        color 0.6s ease;
}

/* =====================================================
   CYBERPUNK
===================================================== */

body[data-reality="cyberpunk"] {
    --primary: #ff2bd6;
    --primary-dark: #c915a7;

    --background: #0d0612;
    --background-secondary: #16091d;
    --card: #211027;

    --text: #ffffff;
    --text-secondary: #d0a9cc;

    --border: rgba(255, 43, 214, 0.18);

    --reality-primary: #ff2bd6;
    --reality-secondary: #7b2cff;
}

body[data-reality="cyberpunk"] .hero {
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(255, 43, 214, 0.20),
            transparent 40%
        ),
        radial-gradient(
            circle at 20% 70%,
            rgba(123, 44, 255, 0.12),
            transparent 40%
        );
}

/* =====================================================
   MATRIX
===================================================== */

body[data-reality="matrix"] {
    --primary: #00ff66;
    --primary-dark: #00b84a;

    --background: #020b05;
    --background-secondary: #04140a;
    --card: #071d0e;

    --text: #eafff0;
    --text-secondary: #8bc99f;

    --border: rgba(0, 255, 102, 0.16);

    --reality-primary: #00ff66;
    --reality-secondary: #00aa44;
}

body[data-reality="matrix"] .hero {
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(0, 255, 102, 0.15),
            transparent 40%
        );
}

/* =====================================================
   SYNTHWAVE
===================================================== */

body[data-reality="synthwave"] {
    --primary: #ff4fd8;
    --primary-dark: #b82cff;

    --background: #0b0618;
    --background-secondary: #140a2d;
    --card: #1c1038;

    --text: #ffffff;
    --text-secondary: #c6b6df;

    --border: rgba(255, 79, 216, 0.18);

    --reality-primary: #ff4fd8;
    --reality-secondary: #7047ff;
}

body[data-reality="synthwave"] .hero {
    background:
        linear-gradient(
            180deg,
            rgba(255, 79, 216, 0.10),
            transparent
        );
}

/* =====================================================
   ENERGY
===================================================== */

body[data-reality="energy"] {
    --primary: #00aaff;
    --primary-dark: #0066ff;

    --background: #03101c;
    --background-secondary: #061a2b;
    --card: #092238;

    --text: #ffffff;
    --text-secondary: #9dc9e8;

    --border: rgba(0, 170, 255, 0.18);

    --reality-primary: #00aaff;
    --reality-secondary: #0066ff;
}

body[data-reality="energy"] .hero {
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(0, 170, 255, 0.18),
            transparent 45%
        );
}

/* =====================================================
   CAMBIO GLOBAL
===================================================== */

body[data-reality] .header {
    border-color: var(--border);
}

body[data-reality] .logo:hover {
    color: var(--primary);

    text-shadow:
        0 0 15px var(--primary);
}

body[data-reality] .nav-list a:hover,
body[data-reality] .nav-list a.active {
    color: var(--primary);
}

body[data-reality] .nav-list a::after {
    background: var(--primary);

    box-shadow:
        0 0 10px var(--primary);
}

/* =====================================================
   BOTONES
===================================================== */

body[data-reality] .btn-primary {
    background: var(--primary);

    box-shadow:
        0 0 20px color-mix(
            in srgb,
            var(--primary) 30%,
            transparent
        );
}

body[data-reality] .btn-primary:hover {
    background: var(--primary-dark);

    box-shadow:
        0 0 35px color-mix(
            in srgb,
            var(--primary) 55%,
            transparent
        );
}

body[data-reality] .btn-login {
    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    border-color:
        color-mix(
            in srgb,
            var(--primary) 35%,
            transparent
        );
}

body[data-reality] .btn-login:hover {
    background: var(--primary);

    box-shadow:
        0 0 25px var(--primary);
}

/* =====================================================
   TARJETAS
===================================================== */

body[data-reality] .service-card,
body[data-reality] .dashboard-card,
body[data-reality] .dashboard-info,
body[data-reality] .appointment-card,
body[data-reality] .login-container,
body[data-reality] .cta-content {
    background: var(--card);

    border-color: var(--border);

    transition:
        background 0.6s ease,
        border-color 0.6s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

body[data-reality] .service-card:hover,
body[data-reality] .dashboard-card:hover {
    border-color: var(--primary);

    box-shadow:
        0 0 30px color-mix(
            in srgb,
            var(--primary) 20%,
            transparent
        );
}

/* =====================================================
   ICONOS
===================================================== */

body[data-reality] .service-icon,
body[data-reality] .dashboard-card-icon {
    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    box-shadow:
        0 0 18px color-mix(
            in srgb,
            var(--primary) 15%,
            transparent
        );
}

/* =====================================================
   TEXTOS
===================================================== */

body[data-reality] .section-header > span,
body[data-reality] .about-text > span,
body[data-reality] .dashboard-header span {
    color: var(--primary);
}

body[data-reality] .hero h1 span,
body[data-reality] .dashboard-header h1 strong {
    color: var(--primary);

    text-shadow:
        0 0 20px color-mix(
            in srgb,
            var(--primary) 40%,
            transparent
        );
}

/* =====================================================
   ABOUT
===================================================== */

body[data-reality] .about-card {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--reality-secondary)
        );

    box-shadow:
        0 0 45px color-mix(
            in srgb,
            var(--primary) 30%,
            transparent
        );
}

/* =====================================================
   CTA
===================================================== */

body[data-reality] .cta {
    background:
        radial-gradient(
            circle at center,
            color-mix(
                in srgb,
                var(--primary) 18%,
                transparent
            ),
            transparent 65%
        );
}

/* =====================================================
   INPUTS
===================================================== */

body[data-reality] input:focus,
body[data-reality] textarea:focus,
body[data-reality] select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        ),
        0 0 20px color-mix(
            in srgb,
            var(--primary) 15%,
            transparent
        );
}

/* =====================================================
   PERFIL
===================================================== */

body[data-reality] .profile-button:hover {
    border-color: var(--primary);

    color: var(--primary);

    box-shadow:
        0 0 20px color-mix(
            in srgb,
            var(--primary) 20%,
            transparent
        );
}

body[data-reality] .profile-dropdown a:hover {
    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    color: var(--primary);
}

/* =====================================================
   CITAS
===================================================== */

body[data-reality] .appointment-status {
    background:
        color-mix(
            in srgb,
            var(--primary) 12%,
            transparent
        );

    color: var(--primary);
}

/* =====================================================
   FOOTER
===================================================== */

body[data-reality] .footer-links a:hover {
    color: var(--primary);

    text-shadow:
        0 0 10px color-mix(
            in srgb,
            var(--primary) 40%,
            transparent
        );
}
/* =====================================================
   NOVA PARTICLES
===================================================== */

#novaParticles {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 0;
}
/* =====================================================
   TRANSICIÓN DE REALIDAD
===================================================== */

#realityTransition {

    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 229, 255, 0.15),
            rgba(0, 0, 0, 0.98) 70%
        );

    backdrop-filter: blur(12px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    z-index: 99999;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;

}


/* ACTIVA */

#realityTransition.active {

    opacity: 1;

    visibility: visible;

}


/* =====================================================
   CONTENIDO
===================================================== */

.reality-transition-content {

    text-align: center;

    transform:
        scale(0.75);

    opacity: 0;

}


#realityTransition.active
.reality-transition-content {

    animation:
        realityEnter
        0.8s
        cubic-bezier(.16,1,.3,1)
        forwards;

}


/* =====================================================
   TEXTO PEQUEÑO
===================================================== */

.reality-transition-label {

    font-size: 12px;

    letter-spacing: 7px;

    color:
        var(--reality-primary, #00e5ff);

    margin-bottom: 20px;

    text-transform: uppercase;

}


/* =====================================================
   NOMBRE DE REALIDAD
===================================================== */

#transitionReality {

    font-size:
        clamp(45px, 9vw, 110px);

    font-weight: 900;

    letter-spacing: 12px;

    color: white;

    text-shadow:

        0 0 10px
        var(--reality-primary, #00e5ff),

        0 0 30px
        var(--reality-primary, #00e5ff),

        0 0 80px
        var(--reality-primary, #00e5ff);

}


/* =====================================================
   LÍNEA
===================================================== */

.reality-transition-line {

    width: 0;

    height: 2px;

    margin:
        25px auto;

    background:
        var(--reality-primary, #00e5ff);

    box-shadow:
        0 0 15px
        var(--reality-primary, #00e5ff);

}


#realityTransition.active
.reality-transition-line {

    animation:
        realityLine
        1s
        ease
        forwards;

}


/* =====================================================
   LOADING
===================================================== */

.reality-transition-loading {

    display: flex;

    justify-content: center;

    gap: 7px;

}


.reality-transition-loading span {

    width: 5px;

    height: 5px;

    border-radius: 50%;

    background:
        var(--reality-primary, #00e5ff);

    box-shadow:
        0 0 10px
        var(--reality-primary, #00e5ff);

    animation:
        realityDots
        0.8s
        infinite
        alternate;

}


.reality-transition-loading span:nth-child(2) {
    animation-delay: .1s;
}

.reality-transition-loading span:nth-child(3) {
    animation-delay: .2s;
}

.reality-transition-loading span:nth-child(4) {
    animation-delay: .3s;
}

.reality-transition-loading span:nth-child(5) {
    animation-delay: .4s;
}


/* =====================================================
   ANIMACIONES
===================================================== */

@keyframes realityEnter {

    0% {

        transform:
            scale(0.65);

        opacity: 0;

        filter:
            blur(15px);

    }

    50% {

        opacity: 1;

    }

    100% {

        transform:
            scale(1);

        opacity: 1;

        filter:
            blur(0);

    }

}


@keyframes realityLine {

    0% {

        width: 0;

    }

    100% {

        width: 180px;

    }

}


@keyframes realityDots {

    from {

        transform:
            translateY(0);

        opacity: .3;

    }

    to {

        transform:
            translateY(-5px);

        opacity: 1;

    }

}


/* =====================================================
   FLASH
===================================================== */

#realityTransition::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        var(--reality-primary, #00e5ff);

    opacity: 0;

    pointer-events: none;

}


#realityTransition.active::after {

    animation:
        realityFlash
        1.2s
        ease
        forwards;

}


@keyframes realityFlash {

    0% {

        opacity: 0;

    }

    70% {

        opacity: 0;

    }

    85% {

        opacity: .08;

    }

    100% {

        opacity: 0;

    }

}
/* =========================================
   NOVA — PANTALLA DE BIENVENIDA
========================================= */

#novaLoader {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    justify-content: center;

    align-items: center;

    background: #05070d;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;

}


/* CONTENIDO */

.nova-loader-content {

    text-align: center;

    animation:
        novaLoaderAppear 1s ease forwards;

}


/* LOGO */

.nova-loader-logo {

    width: 80px;

    height: 80px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 42px;

    font-weight: 800;

    color: #ffffff;

    border: 2px solid
        var(--reality-primary, #00e5ff);

    box-shadow:

        0 0 20px
        var(--reality-primary, #00e5ff),

        0 0 60px
        rgba(0,229,255,.25);

    animation:
        novaLogoPulse 2s infinite;
}


/* TITULO */

.nova-loader-content h1 {

    margin: 0;

    font-size: 30px;

    letter-spacing: 6px;

    color: #ffffff;

}


/* SUBTITULO */

.nova-loader-content p {

    margin-top: 12px;

    font-size: 11px;

    letter-spacing: 4px;

    opacity: .55;

    color: #ffffff;

}


/* LINEA */

.nova-loader-line {

    width: 180px;

    height: 2px;

    margin: 30px auto 0;

    background: rgba(255,255,255,.08);

    overflow: hidden;

}


.nova-loader-line span {

    display: block;

    width: 0%;

    height: 100%;

    background:
        var(--reality-primary, #00e5ff);

    box-shadow:
        0 0 12px
        var(--reality-primary, #00e5ff);

    animation:
        novaLoaderProgress 1.5s ease forwards;

}


/* =========================================
   ANIMACIONES
========================================= */

@keyframes novaLoaderAppear {

    from {

        opacity: 0;

        transform: scale(.9);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}


@keyframes novaLogoPulse {

    0%,
    100% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.05);

    }

}


@keyframes novaLoaderProgress {

    from {

        width: 0%;

    }

    to {

        width: 100%;

    }

}


/* =========================================
   OCULTAR
========================================= */

#novaLoader.hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

}
    /* =========================================================
   PORTAFOLIO — ESTILOS ESPECÍFICOS
========================================================= */

/* HERO */

.portfolio-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    padding: 150px 20px 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(139, 92, 246, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(99, 102, 241, 0.10),
            transparent 28%
        );
}

.hero-background::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent
    );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(100%, 920px);
    margin: auto;

    text-align: center;
}

.hero-label,
.section-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 24px;

    color: var(--accent-light);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.18em;
}

.hero-content h1 {
    max-width: 900px;
    margin: auto;

    font-size: clamp(3rem, 7vw, 6.7rem);

    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-content h1 span,
.portfolio-cta h2 span {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        var(--accent-light) 50%,
        #6366f1 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    max-width: 650px;
    margin: 30px auto 0;

    color: var(--text-secondary);

    font-size: 1.05rem;
}

.hero-button,
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    margin-top: 38px;
    padding: 15px 22px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.hero-button:hover,
.cta-button:hover {
    transform: translateY(-3px);

    background: rgba(139, 92, 246, 0.16);

    border-color: rgba(167, 139, 250, 0.4);
}

.hero-button span,
.cta-button span {
    color: var(--accent-light);
}

.hero-decoration {
    position: absolute;

    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 50%;

    pointer-events: none;
}

.hero-decoration-one {
    width: 500px;
    height: 500px;

    top: 8%;
    left: -280px;
}

.hero-decoration-two {
    width: 700px;
    height: 700px;

    right: -420px;
    bottom: -300px;
}


/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio-section {
    width: min(100% - 40px, var(--container));

    margin: auto;

    padding: 110px 0 140px;
}

.section-heading {
    display: grid;

    grid-template-columns: 1fr 380px;

    gap: 50px;

    align-items: end;

    margin-bottom: 55px;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);

    line-height: 1;

    letter-spacing: -0.04em;
}

.section-heading p {
    color: var(--text-secondary);

    font-size: 0.98rem;
}


/* FILTROS */

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 40px;
}

.filter-button {
    padding: 10px 18px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: transparent;

    color: var(--text-secondary);

    cursor: pointer;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.filter-button:hover,
.filter-button.active {
    color: white;

    background: rgba(139, 92, 246, 0.14);

    border-color: rgba(139, 92, 246, 0.35);
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;
}

.project-card {
    min-width: 0;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--bg-card);

    overflow: hidden;

    opacity: 1;

    transform: translateY(0);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: var(--border-hover);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(139, 92, 246, 0.06);
}

.project-card.project-hidden {
    opacity: 0;
    transform: translateY(10px);
}

.project-featured {
    grid-column: span 2;

    display: grid;

    grid-template-columns: 1.35fr 0.65fr;
}


/* IMAGEN */

.project-image {
    position: relative;

    min-height: 360px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #161925,
            #0b0c11
        );
}

.project-card:not(.project-featured) .project-image {
    aspect-ratio: 16 / 10;

    min-height: auto;
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);

    filter: brightness(0.72);
}

.project-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(5, 6, 10, 0.38);

    opacity: 0;

    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.22);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(12px);

    font-size: 1.5rem;

    transition:
        transform var(--transition),
        background var(--transition);
}

.project-view:hover {
    transform: scale(1.08);

    background: rgba(139, 92, 246, 0.5);
}

.project-number {
    position: absolute;

    top: 20px;
    left: 20px;

    padding: 7px 11px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    background: rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(12px);

    color: rgba(255, 255, 255, 0.75);

    font-size: 0.7rem;
    font-weight: 700;
}


/* CONTENIDO */

.project-content {
    display: flex;
    flex-direction: column;

    padding: 30px;
}

.project-meta {
    display: flex;
    justify-content: space-between;

    margin-bottom: 16px;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.13em;
}

.project-content h3 {
    margin-bottom: 12px;

    font-size: 1.65rem;

    line-height: 1.15;

    letter-spacing: -0.03em;
}

.project-content p {
    margin-bottom: 24px;

    color: var(--text-secondary);

    font-size: 0.92rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: auto;
}

.project-technologies span {
    padding: 6px 9px;

    border: 1px solid var(--border);

    border-radius: 7px;

    color: var(--text-muted);

    font-size: 0.67rem;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    width: fit-content;

    margin-top: 25px;

    color: white;

    font-size: 0.86rem;
    font-weight: 600;

    transition: color var(--transition);
}

.project-link span {
    color: var(--accent-light);

    transition: transform var(--transition);
}

.project-link:hover {
    color: var(--accent-light);
}

.project-link:hover span {
    transform: translateX(5px);
}


/* =========================================================
   CTA
========================================================= */

.portfolio-cta {
    position: relative;

    padding: 150px 20px;

    overflow: hidden;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(139, 92, 246, 0.18),
            transparent 40%
        ),
        var(--bg-secondary);
}

.cta-content {
    position: relative;

    max-width: 760px;

    margin: auto;

    text-align: center;
}

.portfolio-cta h2 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);

    line-height: 1;

    letter-spacing: -0.05em;
}

.portfolio-cta p {
    max-width: 600px;

    margin: 25px auto 0;

    color: var(--text-secondary);
}


/* =========================================================
   RESPONSIVE DEL PORTAFOLIO
========================================================= */

@media (max-width: 900px) {

    .project-featured {
        grid-column: span 1;

        display: block;
    }

    .section-heading {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .project-image {
        min-height: 300px;
    }
}

@media (max-width: 700px) {

    .portfolio-hero {
        min-height: 680px;

        padding-top: 120px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 13vw, 5rem);
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .portfolio-section {
        padding-top: 80px;
        padding-bottom: 90px;
    }

    .projects-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .project-featured {
        grid-column: span 1;
    }

    .project-image {
        min-height: 240px;
    }

    .project-content {
        padding: 24px;
    }

    .portfolio-cta {
        padding: 100px 20px;
    }
}

@media (max-width: 450px) {

    .portfolio-section {
        width: min(100% - 28px, var(--container));
    }

    .portfolio-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .portfolio-filters {
        gap: 7px;
    }

    .filter-button {
        padding: 9px 13px;

        font-size: 0.8rem;
    }

    .project-content h3 {
        font-size: 1.4rem;
    }
}
/* =========================================================
   NOVA WEBSITES - EDITAR PERFIL
========================================================= */

.edit-profile-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(90, 100, 255, 0.12),
            transparent 45%
        );
}


/* CONTENEDOR */

.edit-profile-container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}


/* TARJETA */

.edit-profile-card {
    position: relative;
    padding: 45px;
    border-radius: 24px;

    background: rgba(15, 18, 30, 0.88);

    border: 1px solid rgba(255, 255, 255, 0.09);

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35),
        0 0 50px rgba(80, 90, 255, 0.05);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    overflow: hidden;
}


/* BRILLO SUPERIOR */

.edit-profile-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 10%;
    right: 10%;

    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
}


/* HEADER */

.edit-profile-header {
    text-align: center;
    margin-bottom: 38px;
}


/* AVATAR */

.profile-avatar {
    width: 82px;
    height: 82px;

    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 34px;

    background:
        linear-gradient(
            135deg,
            rgba(100, 110, 255, 0.25),
            rgba(70, 80, 180, 0.08)
        );

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(100, 110, 255, 0.12);
}


/* TITULO */

.edit-profile-header h1 {
    margin: 0;

    font-size: clamp(28px, 5vw, 36px);

    font-weight: 700;

    letter-spacing: -0.5px;

    color: #ffffff;
}


/* DESCRIPCIÓN */

.edit-profile-header p {
    margin: 10px 0 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 15px;

    line-height: 1.6;
}


/* FORMULARIO */

#editProfileForm {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


/* GRUPOS */

#editProfileForm .form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


/* LABELS */

#editProfileForm label {
    font-size: 14px;

    font-weight: 600;

    color: rgba(255, 255, 255, 0.88);
}


/* INPUTS */

#editProfileForm input {
    width: 100%;

    box-sizing: border-box;

    padding: 15px 16px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.10);

    outline: none;

    background: rgba(7, 10, 18, 0.75);

    color: #ffffff;

    font-size: 15px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}


/* PLACEHOLDER */

#editProfileForm input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}


/* FOCUS */

#editProfileForm input:focus {
    border-color: rgba(110, 120, 255, 0.7);

    background: rgba(8, 11, 22, 0.95);

    box-shadow:
        0 0 0 3px rgba(100, 110, 255, 0.10),
        0 8px 25px rgba(0, 0, 0, 0.15);
}


/* AUTOCOMPLETE */

#editProfileForm input:-webkit-autofill,
#editProfileForm input:-webkit-autofill:hover,
#editProfileForm input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    transition:
        background-color 9999s ease-in-out 0s;
}


/* ACCIONES */

.form-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 14px;

    margin-top: 12px;

    padding-top: 8px;
}


/* BOTÓN CANCELAR */

.btn-cancel {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 50px;

    padding: 0 22px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.10);

    background: rgba(255, 255, 255, 0.04);

    color: rgba(255, 255, 255, 0.78);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.18);

    transform: translateY(-2px);
}


/* BOTÓN GUARDAR */

.btn-save {
    min-height: 50px;

    padding: 0 24px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            #6672ff,
            #4f5bea
        );

    box-shadow:
        0 10px 25px rgba(79, 91, 234, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}


.btn-save:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 32px rgba(79, 91, 234, 0.35);
}


.btn-save:active {
    transform: translateY(0);
}


.btn-save:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* FOOTER */

body > footer {
    text-align: center;

    padding: 25px 20px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 13px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .edit-profile-page {
        min-height: auto;

        padding: 45px 16px;
    }

    .edit-profile-card {
        padding: 32px 22px;

        border-radius: 20px;
    }

    .edit-profile-header {
        margin-bottom: 30px;
    }

    .profile-avatar {
        width: 72px;
        height: 72px;

        font-size: 30px;
    }

    .form-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .btn-cancel,
    .btn-save {
        width: 100%;

        box-sizing: border-box;
    }
}


/* PANTALLAS MUY PEQUEÑAS */

@media (max-width: 380px) {

    .edit-profile-card {
        padding: 28px 18px;
    }

    .edit-profile-page {
        padding-left: 12px;
        padding-right: 12px;
    }

}
/* =========================================================
   FOTO DE PERFIL
========================================================= */

.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}


/* AVATAR */

.profile-avatar {
    position: relative;

    width: 110px;
    height: 110px;

    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(100, 110, 255, 0.25),
            rgba(70, 80, 180, 0.08)
        );

    border: 2px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(100, 110, 255, 0.12);
}


/* ICONO */

#avatarPlaceholder {
    font-size: 42px;
}


/* IMAGEN */

#profilePreview {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}


/* BOTÓN CAMBIAR */

.photo-upload-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.12);

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.photo-upload-btn:hover {
    background: rgba(255, 255, 255, 0.10);

    border-color: rgba(110, 120, 255, 0.5);

    transform: translateY(-2px);
}


/* ELIMINAR FOTO */

.remove-photo-btn {
    margin-top: 10px;

    border: none;

    background: transparent;

    color: rgba(255, 120, 120, 0.8);

    font-size: 12px;

    cursor: pointer;

    transition:
        color 0.2s ease;
}


.remove-photo-btn:hover {
    color: #ff6f6f;
}


/* AYUDA */

.photo-help {
    margin: 8px 0 0;

    color: rgba(255, 255, 255, 0.38);

    font-size: 11px;
}
