/* --- Reseteo y configuración global --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    /* Aplicamos el fondo aquí para que sea la base de todo */
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    min-height: 100vh;
    /* Aseguramos que el body también ocupe el 100% de la altura del html */
    min-height: 100%; 
    overflow-x: hidden;
    opacity: 0;
    animation: fadeInBody 1s ease 0.2s forwards;
    
    /* Padding para las áreas seguras de iOS */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

@keyframes fadeInBody {
    to { opacity: 1; }
}

/* --- Fondo de estrellas animadas --- */
#stars, #stars2, #stars3 {
    position: fixed; top: 0; left: 0; width: 1px; height: 1px;
    background: transparent; animation-name: animStar;
    animation-timing-function: linear; animation-iteration-count: infinite;
}
#stars { width: 1px; height: 1px; animation-duration: 50s; }
#stars2 { width: 2px; height: 2px; animation-duration: 100s; }
#stars3 { width: 3px; height: 3px; animation-duration: 150s; }
#stars::after, #stars2::after, #stars3::after {
    content: " "; position: absolute; top: 2000px;
    background: transparent; box-shadow: inherit;
}
#stars::after { width: 1px; height: 1px; }
#stars2::after { width: 2px; height: 2px; }
#stars3::after { width: 3px; height: 3px; }
@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

/* --- Cursor personalizado --- */
.cursor {
    width: 40px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%; position: fixed; pointer-events: none;
    transform: translate(-50%, -50%); transition: all 0.1s ease;
    z-index: 9999; backdrop-filter: blur(2px);
}
.cursor-dot {
    width: 4px; height: 4px; background: #fff; border-radius: 50%;
    position: fixed; pointer-events: none;
    transform: translate(-50%, -50%); z-index: 9999;
}
.cursor.hover {
    width: 60px; height: 60px; background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
}

/* --- Contenedor principal --- */
.container {
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Lo volvemos a añadir para centrar verticalmente */
    padding: 40px 20px; 
    position: relative; 
    z-index: 10;
}

/* --- Logo --- */
.logo-container {
    margin-bottom: 60px; position: relative;
    animation: logoFloat 6s ease-in-out infinite;
}
.logo-container h1 { font-size: inherit; font-weight: inherit; margin: 0; }
.logo {
    width: 280px; height: auto; transition: all 0.5s ease; opacity: 0.9;
}
.logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(255,255,255,0.5));
    opacity: 1;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.logo-container:hover .logo {
    animation: glitch 0.3s ease-in-out, logoFloat 6s ease-in-out infinite;
}
@keyframes glitch {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(10% 0 85% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(50% 0 30% 0); transform: translate(-1px, 1px); }
    80% { clip-path: inset(5% 0 90% 0); transform: translate(1px, -1px); }
}

/* --- Lista de servicios --- */
.services {
    list-style: none; margin: 40px 0 60px 0;
    position: relative; text-align: center;
}
.services li {
    margin: 20px 0; opacity: 0; position: relative;
    padding: 5px 0; animation: slideInLeft 0.8s ease forwards;
    transition: all 0.3s ease;
}
.services li::after {
    content: ''; position: absolute; bottom: 0;
    left: 50%;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: all 0.4s ease-out;
    transform: translateX(-50%);
}
.services li:hover {
    transform: translateX(10px);
}
.services li:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}
.services a {
    color: rgba(255, 255, 255, 0.8); font-size: 14px;
    font-weight: 400; letter-spacing: 0.2em;
    text-transform: uppercase; text-decoration: none;
    display: inline-block; transition: all 0.3s ease; position: relative;
}
.services li:nth-child(1) { animation-delay: 0.1s; }
.services li:nth-child(2) { animation-delay: 0.2s; }
.services li:nth-child(3) { animation-delay: 0.3s; }
.services li:nth-child(4) { animation-delay: 0.4s; }
.services li:nth-child(5) { animation-delay: 0.5s; }
.services a:hover {
    transform: none; color: #fff; font-weight: 600;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Botón de contacto --- */
.contact-btn {
    position: relative; display: inline-block; padding: 16px 48px;
    background: transparent; color: rgba(255, 255, 255, 0.9);
    text-decoration: none; font-size: 12px; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    border: 1.5px solid rgba(255, 255, 255, 0.5); overflow: hidden;
    transition: all 0.3s ease; animation: fadeIn 1s ease 0.6s both;
    backdrop-filter: blur(5px); border-radius: 2px;
}
.contact-btn::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%; background: rgba(255, 255, 255, 0.9);
    transition: left 0.3s ease; z-index: -1;
}
.contact-btn:hover::before { left: 0; }
.contact-btn:hover {
    color: #090A0F; border-color: #fff; transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255,255,255,0.1);
}

/* --- Información de pie de página (Footer) --- */
.footer-info {
    margin-top: 60px; /* Reducimos un poco el margen para que no quede tan abajo */
    padding-bottom: 30px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}
.social-link {
    display: inline-block; color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px; transition: all 0.3s ease;
}
.social-link:hover {
    color: rgba(255, 255, 255, 0.9); transform: scale(1.1);
}
.social-link svg { width: 20px; height: 20px; }
.location-info {
    font-size: 11px; font-weight: 400; letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4); text-transform: uppercase;
}
.services a:focus-visible, .contact-btn:focus-visible, .social-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor, .cursor-dot { display: none; }
    .logo { width: 200px; }
    .services a { font-size: 12px; color: rgba(255, 255, 255, 0.9); }
}