/*
Theme Name: Tema Base Cápsula
Description: Tema oscuro premium con header y footer estilo cápsula preparado para contenido de WordPress.
Author: Pablo Federico
Version: 1.5
*/

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Afacad Flux', 'Afacad Flux', Afacad Flux, sans-serif;
    background-color: #0b0b0b;
    color: #d0d0d0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-bar body {
    min-height: calc(100vh - 32px);
}
@media screen and (max-width: 782px) {
    .admin-bar body {
        min-height: calc(100vh - 46px);
    }
}

.page-container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

header.capsule-header {
    background-color: #1a1a1a;
    border-radius: 50px;
    padding: 15px 0;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.top-logo {
    max-height: 40px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.2s;
}

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

footer.capsule-footer {
    background-color: #1a1a1a;
    border-radius: 50px;
    padding: 20px 5%;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer.capsule-footer p { font-size: 0.95rem; margin: 0; color: #a0a0a0; }
footer.capsule-footer a { color: #d0d0d0; text-decoration: none; transition: color 0.3s; }
footer.capsule-footer a:hover { color: #ffffff; text-decoration: underline; }
.social-links { display: flex; gap: 20px; }
.social-links a { font-size: 1.2rem; color: #d0d0d0; transition: color 0.3s; }
.social-links a:hover { color: #ffffff; }

main.content-area {
    flex: 1;
    width: 100%;
    color: #d0d0d0;
}

main.content-area a {
    color: #4a90e2;
    text-decoration: none;
}
main.content-area a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .page-container { width: 95%; }
    header.capsule-header, footer.capsule-footer { border-radius: 20px; }
    footer.capsule-footer { flex-direction: column; text-align: center; gap: 15px; }
    .top-logo { max-height: 35px; }
}

/* ===================================================
   VENTANAS MODALES ESTILO TARJETA CAP 4
=================================================== */

.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.otp-modal-overlay.active {
    display: flex; /* Se muestra únicamente vía JavaScript */
}

.otp-card {
    background-color: #161616;
    border-radius: 28px;
    width: 90%;
    max-width: 440px;
    padding: 40px 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    text-align: center;
    box-sizing: border-box;
    border: 1px solid #222222;
}

.otp-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.otp-subtitle {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 28px 0;
}

.otp-form-group {
    text-align: left;
    margin-bottom: 20px;
}

.otp-form-group label {
    display: block;
    color: #a0a0a0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.otp-input {
    width: 100%;
    background-color: #0d0d0d;
    border: 1px solid #282828;
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.otp-input:focus {
    border-color: #e67e22;
}

/* Recuadro punteado estilo CAP 4 */
.pin-box-container {
    border: 2px dashed #e67e22;
    background-color: #0d0d0d;
    border-radius: 20px;
    padding: 28px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.pin-box-container .pin-label {
    color: #a0a0a0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.pin-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pin-digit {
    width: 52px;
    height: 60px;
    background-color: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #e67e22;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
}

.pin-digit:focus {
    border-color: #e67e22;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.3);
}

.pin-expiration {
    color: #808080;
    font-size: 0.85rem;
    margin: 0 0 25px 0;
}

.otp-btn {
    width: 100%;
    background-color: #262626;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.otp-btn:hover {
    background-color: #383838;
}