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

/* Screen Reader Only - Para accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a1f44 0%, #1e3a5f 50%, #2a5298 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Previene el zoom en iOS al hacer tap en inputs */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Canvas para las animaciones de fondo */
#background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Optimización para móviles */
    will-change: transform;
}

/* Contenedor principal */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 800px;
}

/* Logo SignAI */
.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 120px;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    letter-spacing: -2px;
    animation: fadeInDown 1s ease-out;
}

/* Eslogan */
.tagline {
    font-size: 28px;
    color: #e8f0ff;
    font-weight: 300;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Coming Soon texto */
.coming-soon {
    font-size: 48px;
    color: #4a9eff;
    font-weight: 600;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

/* Descripción */
.description {
    font-size: 18px;
    color: #b8d4ff;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Formulario de notificación */
.notify-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.notify-form input {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    color: #0a1f44;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    /* Previene zoom en iOS */
    -webkit-appearance: none;
    appearance: none;
}

.notify-form input::placeholder {
    color: #6b7280;
}

.notify-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.4);
    /* Previene zoom en iOS */
    font-size: 16px;
}

.notify-form button {
    width: 100%;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #4a9eff 0%, #2563eb 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}

.notify-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
}

.notify-form button:active {
    transform: translateY(0);
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: rgba(74, 158, 255, 0.3);
    transform: translateY(-5px);
}

/* Logo Recpeck en la esquina */
.recpeck-badge {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    animation: fadeIn 1.5s ease-out 1.5s both;
}

.recpeck-badge span {
    font-weight: 300;
}

.recpeck-badge img {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.recpeck-badge:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Imagen decorativa del documento */
.document-decoration {
    position: fixed;
    right: 80px;
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    z-index: 2;
    animation: floatAnimation 6s ease-in-out infinite;
    opacity: 0.18;
}

.document-decoration img {
    width: 350px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

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

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(-50%) rotate(5deg) translateX(0);
    }
    50% {
        transform: translateY(-50%) rotate(8deg) translateX(-15px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 700px;
        padding: 30px;
    }

    .logo {
        font-size: 90px;
    }

    .tagline {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .coming-soon {
        font-size: 42px;
    }

    .description {
        font-size: 17px;
        max-width: 550px;
    }

    .document-decoration {
        right: 40px;
        opacity: 0.12;
    }

    .document-decoration img {
        width: 280px;
    }
}

/* Tablets en vertical y móviles grandes (481px - 768px) */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .container {
        padding: 40px 20px;
        max-width: 100%;
    }

    .logo {
        font-size: 64px;
        margin-bottom: 15px;
        letter-spacing: -1px;
    }

    .tagline {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .coming-soon {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .description {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 35px;
        padding: 0 10px;
    }

    .notify-form {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }

    .notify-form input {
        padding: 16px 20px;
        font-size: 15px;
    }

    .notify-form button {
        width: 100%;
        padding: 16px 30px;
        font-size: 15px;
    }

    .social-links {
        gap: 15px;
        margin-top: 30px;
    }

    .social-links a {
        width: 45px;
        height: 45px;
    }

    .recpeck-badge {
        bottom: 20px;
        left: 20px;
        font-size: 12px;
    }

    .recpeck-badge img {
        height: 32px;
    }

    .document-decoration {
        display: none;
    }
}

/* Móviles pequeños (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }

    .logo {
        font-size: 48px;
        margin-bottom: 10px;
    }

    .tagline {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .coming-soon {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .description {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 30px;
    }

    .notify-form {
        gap: 10px;
    }

    .notify-form input {
        padding: 14px 18px;
        font-size: 14px;
    }

    .notify-form button {
        padding: 14px 25px;
        font-size: 14px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .recpeck-badge {
        bottom: 15px;
        left: 15px;
        font-size: 11px;
    }

    .recpeck-badge img {
        height: 28px;
    }
}

/* Móviles muy pequeños (hasta 360px) */
@media (max-width: 360px) {
    .container {
        padding: 25px 10px;
    }

    .logo {
        font-size: 42px;
    }

    .tagline {
        font-size: 15px;
    }

    .coming-soon {
        font-size: 24px;
    }

    .description {
        font-size: 13px;
    }

    .notify-form input,
    .notify-form button {
        font-size: 13px;
        padding: 12px 15px;
    }
}

/* Pantallas extra grandes (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 900px;
    }

    .logo {
        font-size: 140px;
    }

    .tagline {
        font-size: 32px;
    }

    .coming-soon {
        font-size: 56px;
    }

    .description {
        font-size: 20px;
        max-width: 700px;
    }

    .document-decoration img {
        width: 400px;
    }
}

/* Landscape mode para móviles */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        overflow-y: auto;
    }

    .container {
        padding: 20px;
    }

    .logo {
        font-size: 36px;
        margin-bottom: 5px;
    }

    .tagline {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .coming-soon {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .description {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .notify-form {
        flex-direction: row;
        gap: 10px;
    }

    .notify-form input {
        padding: 10px 15px;
        font-size: 13px;
    }

    .notify-form button {
        padding: 10px 20px;
        font-size: 13px;
        white-space: nowrap;
    }

    .recpeck-badge {
        bottom: 10px;
        left: 10px;
        font-size: 10px;
    }

    .recpeck-badge img {
        height: 24px;
    }

    .social-links {
        display: none;
    }
}
