/* Variables globales */
:root {
    --primary-color: #00E5FF;
    --secondary-color: #FF1493;
    --gradient-start: #001E3C;
    --gradient-end: #0A0A2A;
    --text-color: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --hover-glow: 0 0 15px rgba(0, 229, 255, 0.6);
    --font-main: 'Poppins', sans-serif;
    --gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --premium-shadow: 0 10px 25px rgba(0, 229, 255, 0.2), 0 6px 12px rgba(255, 0, 170, 0.15);
    --premium-border: rgba(255, 255, 255, 0.15);
    --focus-outline: 3px solid #00E5FF;
    --focus-outline-offset: 3px;
}

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

/* Mejoras de accesibilidad - Indicadores de foco */
:focus {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Soporte para preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: translateY(0);
    }
    
    .shimmer {
        background: var(--gold-gradient);
        background-size: 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .custom-cursor {
        display: none !important;
    }
    
    #particles-js {
        display: none !important;
    }
    
    .ripple {
        display: none !important;
    }
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--gradient-start);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fondo con gradiente y efectos */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    z-index: -2;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Contenedor principal */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Perfil */
.profile {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out;
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    position: relative;
    animation: pulse 3s infinite alternate;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}

.profile h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), #f6d365, var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeIn 1s ease-out 0.2s both, shimmer 3s infinite linear;
}

.tagline {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 12px;
    opacity: 0.9;
}

.description {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0.8;
    line-height: 1.5;
}

/* Enlaces */
.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: var(--card-bg);
    border: 1px solid var(--premium-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--premium-shadow);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    justify-content: center;
}

/* Estilos para el contenedor del efecto ripple */
.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Mejora de accesibilidad - Efecto ripple en botones */
.link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.link:focus:not(:focus-visible) {
    outline: none;
}

.link:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--premium-shadow), 0 0 0 3px rgba(0, 229, 255, 0.5);
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.link:active::after {
    animation: ripple 0.6s ease-out;
}

.link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.link:hover {
    transform: translateY(-5px);
    box-shadow: var(--premium-shadow), 0 0 20px rgba(246, 211, 101, 0.3);
    border-color: rgba(246, 211, 101, 0.3);
}

.link:hover::before {
    transform: translateX(100%);
}

.link i {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.link span {
    font-weight: 500;
    font-size: 1rem;
}

.link .sub-text {
    display: none;
}

/* Estilos específicos para cada red social */
.whatsapp {
    border: 2px solid #25D366;
    animation: borderGlow 3s infinite;
}

.whatsapp i {
    color: #25D366;
}

.email {
    border: 2px solid #EA4335;
    animation: borderGlow 3s infinite 0.6s;
}

.email i {
    color: #EA4335;
}

.instagram {
    border: 2px solid #E1306C;
    animation: borderGlow 3s infinite 1.2s;
}

.instagram i {
    color: #E1306C;
}

.facebook {
    border: 2px solid #1877F2;
    animation: borderGlow 3s infinite 1.8s;
}

.facebook i {
    color: #1877F2;
}

.tiktok {
    border: 2px solid #EE1D52;
    animation: borderGlow 3s infinite 2.4s;
}

.tiktok i {
    color: #EE1D52;
}

/* Sección de servicios */
.services {
    margin-bottom: 50px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--premium-shadow);
    border: 1px solid var(--premium-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    animation: borderGlow 4s infinite;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--premium-shadow), 0 0 20px rgba(246, 211, 101, 0.3);
    border-color: rgba(246, 211, 101, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Sección CTA */
.cta-section {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow);
    animation: fadeIn 1s ease-out 0.6s both;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

.cta-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), #f6d365);
    background-size: 200% auto;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(246, 211, 101, 0.3);
    animation: shimmer 3s infinite linear;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(246, 211, 101, 0.5);
}

.cta-button:focus:not(:focus-visible) {
    outline: none;
}

.cta-button:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(0, 229, 255, 0.5);
}

/* Efecto ripple para CTA button */
.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.cta-button:active::after {
    animation: ripple 0.8s ease-out;
}

.cta-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Cursor personalizado */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px rgba(246, 211, 101, 0.3);
    background: radial-gradient(circle, rgba(246, 211, 101, 0.1) 0%, rgba(0, 229, 255, 0.1) 100%);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    border-color: #f6d365;
    background: radial-gradient(circle, rgba(246, 211, 101, 0.2) 0%, rgba(255, 0, 170, 0.2) 100%);
    box-shadow: 0 0 15px #f6d365, 0 0 30px rgba(255, 0, 170, 0.4);
    animation: pulse 1.5s infinite;
}

.custom-cursor.cursor-active {
    width: 15px;
    height: 15px;
    border-color: var(--secondary-color);
    background: radial-gradient(circle, rgba(255, 0, 170, 0.4) 0%, rgba(246, 211, 101, 0.2) 100%);
    box-shadow: 0 0 10px var(--secondary-color), 0 0 20px rgba(246, 211, 101, 0.3);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(246, 211, 101, 0); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(246, 211, 101, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(246, 211, 101, 0); }
}

@keyframes borderGlow {
    0% { border-color: var(--premium-border); }
    50% { border-color: rgba(246, 211, 101, 0.5); }
    100% { border-color: var(--premium-border); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* Media queries para responsividad optimizada */
@media (max-width: 1200px) {
    .container {
        max-width: 90%;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 95%;
        padding: 25px;
    }
    
    .profile h1 {
        font-size: 2rem;
    }
    
    .links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    
    .profile h1 {
        font-size: 2rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    /* Ajustes para mejorar la experiencia táctil en móviles */
    .link, .cta-button {
        min-height: 44px; /* Altura mínima para objetivos táctiles */
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    .profile h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .link {
        padding: 14px 20px;
    }
    
    .link i {
        font-size: 20px;
    }
    
    .link span {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
    }
    
    /* Ajustes adicionales para pantallas muy pequeñas */
    .service-card {
        padding: 15px;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 20px 15px;
    }
}