:root {
    --bg-start: #0f0c29;
    --bg-mid: #302b63;
    --bg-end: #24243e;
    --coral-orbion: #ff7e67;
    --celeste-tech: #00d4ff;
    --wsp-grad: linear-gradient(45deg, #25D366 0%, #128C7E 50%, #00d4ff 100%);
    --insta-grad: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --white: #ffffff;
}

/* --- FUENTES LOCALES --- */
@font-face {
    font-family: 'GeistCustom';
    src: url('fonts/Geist-Regular.otf') format('opentype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GeistCustom';
    src: url('fonts/Geist-Bold.otf') format('opentype');
    font-weight: bold;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'GeistCustom', sans-serif;
}

/* --- ANIMACIONES --- */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes modalIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.5);
    }

    100% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* --- BASE --- */
body {
    background: linear-gradient(-45deg, var(--bg-start), var(--bg-mid), var(--bg-end), #1a1a2e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--white);
    overflow-x: hidden;
}

/* --- NAVEGACIÓN --- */
nav {
    height: 85px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-logo-img {
    width: 65px;
    height: 65px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
}



/* --- ICONOS SVG (GENERAL) --- */
.icon-clases{
   height: 65px;
    margin-bottom: 15px;
    /* Filtro para color Coral Orbion */
    filter: invert(72%) sepia(97%) saturate(3500%) hue-rotate(165deg) brightness(102%) contrast(103%);
}

.icon-tecnico{
   height: 65px;
    margin-bottom: 15px;
    /* Filtro para color Coral Orbion */
    filter: invert(61%) sepia(52%) saturate(485%) hue-rotate(315deg) brightness(101%) contrast(101%);
}



.modal-icon {
    height: 65px;
    margin-bottom: 15px;
}

.emogi {
    font-size: 2.5rem;
}

.user-profile {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 15px;
    /* Espacio interno para que parezca un botón */
    border-radius: 16px;
    /* Bordes redondeados */
    background: rgba(255, 255, 255, 0.05);
    /* Un fondo sutil */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    /* Transición suave para todos los cambios */
}

.user-profile:hover {
    transform: translateY(-3px) scale(1.05);
    /* Sube un poquito y crece */
    background: rgba(255, 255, 255, 0.12);
    /* Brilla más al pasar el mouse */
    border-color: var(--celeste-tech);
    /* Cambia el borde al celeste de tu marca */
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
    /* Sombra celeste suave */
}

/* Efecto de "Click" (Presión) */
.user-profile:active {
    transform: scale(0.95);
    /* Se encoge un poquito al hacer click */
    background: rgba(255, 255, 255, 0.2);
}

/* --- CUERPO PRINCIPAL --- */
.services-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 30px 6% 120px 6%;
    align-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 35px;
    text-align: center;
    position: relative;
    transition: 0.4s ease;
    cursor: pointer;
}

.card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: var(--coral-orbion);
    color: white;
    padding: 12px 25px;
    /* Aumentado */
    font-size: 1.8rem;
    /* Texto más grande */
    font-weight: 900;
    border-radius: 12px;
    border: 3px solid white;
    /* Borde más grueso para resaltar */
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Sombra para dar profundidad */
}

.soon-card {
    opacity: 0.7;
    cursor: default;
}

/* --- FOOTER Y GPS --- */
.fixed-footer {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 900;
}

.footer-content {
    display: flex;
    color: var(--white);
    align-items: center;
    gap: 20px;
}

/* --- ICONO GPS VISTOSO (Ubicación) --- */
.fa-location-dot {
    width: 20px;
    /* Ajusta el tamaño si es necesario */
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;

    /* Este filtro convierte el negro en #ff7e67 (Coral Orbion) */
    filter: invert(65%) sepia(49%) saturate(600%) hue-rotate(315deg) brightness(101%) contrast(102%) drop-shadow(0 0 5px rgba(255, 126, 103, 0.8));

    transition: 0.3s ease;
}

.btn-insta,
.btn-wsp {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    transition: 0.3s;
}

.btn-insta {
    background: var(--insta-grad);
}

.btn-wsp {
    background: var(--wsp-grad);
}

.btn-insta img,
.btn-wsp img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* --- BURBUJAS MÓVILES --- */
.mobile-actions {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: 0.3s;
}

.fab-btn img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.btn-insta.fab-btn {
    background: var(--insta-grad);
}

.btn-wsp.fab-btn {
    background: var(--wsp-grad);
}

.pulse-wsp {
    animation: pulse-animation 2s infinite;
}

/* --- MODALES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(145deg, #1e1e3f, #16162d);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 35px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: modalIn 0.4s ease;
    max-height: 90vh;
    /* Evita que el modal sea más alto que la pantalla */
    overflow-y: auto;
    /* Agrega scroll interno si hay mucho texto */
}

.modal-content .emogi {
    font-size: 4rem;
}

.modal-content h4 {
    font-size: 1.5rem;
}


.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    opacity: 0.5;
}

.modal-list {
    text-align: left;
    list-style: none;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.modal-list img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.btn-modal-wsp {
    display: inline-block;
    width: 100%;
    padding: 18px;
    background: var(--coral-orbion);
    color: white;
    text-decoration: none;
    border-radius: 18px;
    font-weight: bold;
    transition: 0.3s;
}

/* Esto asegura que el icono del modal de clases siempre sea celeste */
#modal-clases .icon-main {
    filter: invert(62%) sepia(94%) saturate(4051%) hue-rotate(159deg) brightness(103%) contrast(101%) !important;
}

/* --- CONFIGURACIÓN DE COLORES POR TARJETA --- */
.tech-card {
    --card-color: var(--coral-orbion);
}

.clase-card {
    --card-color: var(--celeste-tech);
}

.web-card {
    --card-color: #6464ff;
}

.video-card {
    --card-color: #bc1888;
}

/* --- EFECTO HOVER UNIVERSAL (Súper limpio) --- */
.card {
    position: relative;
    overflow: hidden;
    /* Para que el brillo no se salga */
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-color) !important;
    box-shadow: 0 10px 30px -10px var(--card-color);
    /* Sombra del color de la tarjeta */
    transform: translateY(-10px);
    opacity: 1 !important;
}

/* El icono pasa a blanco y el texto brilla al hacer hover */
.card:hover .icon-main {
    filter: brightness(0) invert(1) !important;
    transform: scale(1.1) rotate(5deg);
}

.card:hover h2 {
    color: var(--card-color);
    text-shadow: 0 0 15px var(--card-color);
}

/* Efecto de cristal reflectante (Glassmorphism avanzado) */
.card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.card:hover::before {
    left: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        padding-bottom: 180px;
    }

    .fixed-footer .btn-insta,
    .fixed-footer .btn-wsp {
        display: none;
    }

    .footer-content {
        justify-content: center;
        width: 100%;
        padding: 15px 0;
    }

}

@media (min-width: 769px) {
    .mobile-actions {
        display: none;
    }
}