* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    position: relative;
}

.container {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px 20px;
    padding-top: max(60px, env(safe-area-inset-top) + 40px);
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(40px, env(safe-area-inset-bottom) + 20px);
    position: relative;
    z-index: 1;
    overflow-y: auto;
}

/* Logo y efectos */
.logo-container {
    position: relative;
    margin-bottom: 40px;
    margin-top: 20px;
    animation: float 3s ease-in-out infinite;
}

.logo {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(220, 38, 38, 0.4));
    transition: transform 0.3s ease;
}

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

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

/* Contenido principal */
.content {
    text-align: center;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #dc2626 0%, #ffffff 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #999999;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Barra de progreso */
.progress-container {
    margin: 40px 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    width: 0%;
    border-radius: 2px;
    animation: loading 3s ease-in-out infinite;
}

.progress-text {
    font-size: 0.9rem;
    color: #666666;
    display: block;
    margin-top: 10px;
}

/* Información de contacto */
.contact-info {
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.contact-info p {
    color: #666666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.contact-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999999;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
}

.contact-link:hover {
    color: #ffffff;
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

/* Créditos del desarrollador */
.developer-credits {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}

.developer-credits p {
    color: #666666;
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.developer-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.developer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: #dc2626;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.developer-link:hover {
    color: #ef4444;
    transform: translateY(-2px);
}

.developer-link:hover::after {
    width: 100%;
}

/* Servicios flotantes de fondo */
.services-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.service-item {
    position: absolute;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(220, 38, 38, 0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    animation: serviceFloat 50s infinite linear, glow 3s ease-in-out infinite;
    opacity: 0;
    font-family: 'Poppins', sans-serif;
}

/* Variaciones de estilo para algunos servicios */
.service-item:nth-child(odd) {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.25);
    animation-duration: 55s, 3.5s;
    animation-delay: 0s, 0s;
}

.service-item:nth-child(3n) {
    font-size: 1.2rem;
    color: rgba(220, 38, 38, 0.35);
    animation-duration: 48s, 4s;
    animation-delay: 0s, 1s;
}

.service-item:nth-child(5n) {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.2);
    animation-duration: 53s, 3.2s;
    animation-delay: 0s, 2s;
}

.service-item:nth-child(7n) {
    color: rgba(220, 38, 38, 0.3);
    animation-duration: 51s, 3.8s;
    animation-delay: 0s, 0.5s;
}

.service-item:nth-child(11n) {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.3);
    animation-duration: 49s, 3.3s;
    animation-delay: 0s, 1.5s;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

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

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

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

@keyframes loading {
    0% {
        width: 0%;
    }
    50% {
        width: 80%;
    }
    100% {
        width: 0%;
    }
}

@keyframes serviceFloat {
    0% {
        transform: translateY(120vh);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh);
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        filter: brightness(0.9);
        text-shadow: 0 0 5px rgba(220, 38, 38, 0.2);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3);
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.5),
                     0 0 30px rgba(220, 38, 38, 0.3),
                     0 0 40px rgba(220, 38, 38, 0.2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px 30px 20px;
    }

    .service-item {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .service-item:nth-child(3n) {
        font-size: 1rem;
    }

    .service-item:nth-child(5n) {
        font-size: 0.85rem;
    }

    .logo-container {
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo {
        width: 200px;
    }

    .glow {
        width: 250px;
        height: 250px;
    }

    .progress-bar {
        width: 280px;
    }

    .contact-info {
        margin-top: 40px;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
    }

    .developer-credits {
        margin-top: 60px;
        padding-top: 20px;
    }

    .developer-credits p {
        font-size: 0.7rem;
    }

    .developer-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 15px 25px 15px;
        justify-content: flex-start;
    }

    .service-item {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .service-item:nth-child(odd) {
        font-size: 0.7rem;
    }

    .service-item:nth-child(3n) {
        font-size: 0.8rem;
    }

    .logo-container {
        margin-top: 40px;
        margin-bottom: 25px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .logo {
        width: 160px;
    }

    .glow {
        width: 200px;
        height: 200px;
    }

    .progress-container {
        margin: 30px 0;
    }

    .progress-bar {
        width: 90%;
        max-width: 240px;
    }

    .progress-text {
        font-size: 0.85rem;
    }

    .contact-info {
        margin-top: 35px;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    .contact-link {
        font-size: 0.9rem;
        padding: 6px 14px;
    }

    .developer-credits {
        margin-top: 50px;
        padding-top: 15px;
    }

    .developer-credits p {
        font-size: 0.65rem;
    }

    .developer-link {
        font-size: 0.85rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .logo {
        width: 140px;
    }

    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .progress-bar {
        width: 95%;
    }
}

/* Ajustes para pantallas en landscape con altura limitada */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 20px 20px;
        min-height: auto;
    }

    .logo-container {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .logo {
        width: 150px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .progress-container {
        margin: 20px 0;
    }

    .contact-info {
        margin-top: 30px;
    }

    .developer-credits {
        margin-top: 40px;
        padding-top: 15px;
    }
}

/* Tablets en modo portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .logo {
        width: 220px;
    }

    .glow {
        width: 280px;
        height: 280px;
    }

    .title {
        font-size: 2.8rem;
    }

    .progress-bar {
        width: 350px;
    }
}