/* Variables de colores corporativos Colegal */
:root {
    --color-primary: #5ebfbc;      /* Color corporativo turquesa */
    --color-secondary: #333;       /* Color corporativo gris oscuro */
    --color-text-dark: #333;       /* Gris oscuro para textos principales */
    --color-text-light: #666;      /* Gris medio para subtextos */
    --color-background: #f8f9fa;   /* Fondo gris muy claro */
    --color-white: #ffffff;
    --shadow-soft: 0 15px 50px rgba(94, 191, 188, 0.15);
    --shadow-card: 0 8px 32px rgba(51, 51, 51, 0.1);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 40%, rgba(94, 191, 188, 0.05) 100%);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo sutil con colores corporativos */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(94, 191, 188, 0.03) 40px,
            rgba(94, 191, 188, 0.03) 80px
        );
    pointer-events: none;
}

/* Elementos decorativos flotantes */
body::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(94, 191, 188, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

/* Contenedor principal */
.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Contenido */
.content {
    background: linear-gradient(135deg,
        var(--color-primary) 0%,
        rgba(94, 191, 188, 0.8) 25%,
        rgba(94, 191, 188, 0.6) 50%,
        var(--color-secondary) 75%,
        rgba(51, 51, 51, 0.9) 100%);
    background-size: 200% 200%;
    padding: 3px;
    border-radius: 24px;
    box-shadow:
        var(--shadow-card),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(94, 191, 188, 0.3),
        0 4px 8px rgba(94, 191, 188, 0.25),
        0 8px 16px rgba(51, 51, 51, 0.15);
    position: relative;
    animation: fadeInUp 0.8s ease-out, borderShift 4s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.content:hover {
    transform: translateY(-2px) perspective(1000px) rotateX(2deg);
    box-shadow:
        var(--shadow-card),
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(94, 191, 188, 0.4),
        0 6px 12px rgba(94, 191, 188, 0.35),
        0 12px 24px rgba(51, 51, 51, 0.25);
}

.content::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--color-white);
    border-radius: 21px;
    z-index: 1;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(94, 191, 188, 0.1);
}

.content-inner {
    position: relative;
    z-index: 2;
    padding: 4rem 2.5rem;
}


/* Logo */
.logo-container {
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Título principal */
.main-title {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    animation: fadeIn 1.2s ease-out;
}

/* Subtítulo */
.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    position: relative;
    animation: fadeIn 1.4s ease-out;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* Puntos animados de carga */
.loading-dots {
    display: inline-flex;
    gap: 0.5rem;
    animation: fadeIn 1.6s ease-out;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    40% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes borderGlow {
    0% {
        opacity: 0.6;
        filter: brightness(1);
    }
    100% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

@keyframes borderShift {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 3rem 1.5rem;
        border-radius: 15px;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .content {
        padding: 2.5rem 1.25rem;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}


/* Accesibilidad - Focus visible */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* Mejoras de rendimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}