/* === ESTILOS ESPECÍFICOS PARA LA PÁGINA DE BÚSQUEDA === */

.index-body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #444;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.viewer-container {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    flex-grow: 1;
    overflow-x: hidden;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.viewer-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.viewer-header .logo h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.viewer-header .logo svg {
    color: #ffffff;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.admin-link {
    text-decoration: none;
    background-color: #e9ecef;
    color: #495057;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.admin-link:hover {
    background-color: #dce1e6;
    color: #212529;
}

.viewer-main {
    width: 100%;
}

/* === SHAKE ANIMATION FOR VALIDATION === */
@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .viewer-container {
        margin: 15px auto;
        padding: 0 15px;
    }

    .viewer-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .viewer-header .logo h1 {
        font-size: 22px;
    }

    .admin-link span {
        display: none;
    }

    .admin-link {
        padding: 8px;
        background-color: transparent;
        border-radius: 50%;
    }

    .admin-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .admin-link svg {
        color: #ffffff;
        width: 28px;
        height: 28px;
    }

    .search-card {
        padding: 20px;
    }

    #search-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
        margin-left: 0;
    }

    .email-details {
        grid-template-columns: 1fr;
    }

    .promo-footer p {
        font-size: 16px;
    }

    .promo-footer a {
        display: block;
        margin-top: 15px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .platform-item label {
        padding: 10px;
    }

    .platform-item img {
        width: 48px;
        height: 48px;
        margin-bottom: 5px;
    }

    .platform-item span {
        font-size: 12px;
    }

    .search-card {
        padding: 20px;
    }
}