/* ============================= */
/* Estilos generales para ambas páginas */
/* ============================= */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Epilogue', sans-serif; /* Fuente general Epilogue */
    min-height: 100vh;
    height: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ============================= */
/* Estilos para reglog.php */
/* ============================= */
body.reglog {
    background: linear-gradient(to bottom, #001d37, #001d37);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

body.reglog .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 5vw;
}

body.reglog .form-box {
    background-color: #0099ff;
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin: 0 auto; 
    box-sizing: border-box;
    
    width: 100%;
    max-width: 50vw;
    min-width: 300px;

    height: 100%;
    max-height: 50vh;
    min-height: 500px;

    box-shadow: 0 0 15px rgba(0,0,0,0.3);

    overflow: hidden;
}


body.reglog .logo {
    text-align: center;
    margin-bottom: 20px;
}

body.reglog .logo img {
    max-width: 120px;
}

body.reglog h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #001d37;
}

body.reglog input[type="text"],
body.reglog input[type="email"],
body.reglog input[type="password"] {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
}

body.reglog input::placeholder {
    color: #aaa;
}

body.reglog button {
    width: 100%;
    padding: 12px;
    background-color: #d6ff03;
    color: #001d37;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 15px;
}

body.reglog button:hover {
    background-color: #00bcd4;
}

body.reglog .switch {
    color: #001d37;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

body.reglog .switch a {
    color: #d6ff03;
    text-decoration: none;
    font-weight: 600;
}

body.reglog .error-message {
    background-color: rgba(229, 57, 53, 0.2);
    color: #e53935;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid #e53935;
}


body.reglog .form-group.checkboxes {
    display: flex;
    flex-direction: column; /* pone los elementos uno debajo del otro */
    gap: 10px; /* espacio entre los checkboxes */
    margin-top: 15px;
}

body.reglog .form-group.checkboxes label {
    font-size: 14px;
    color: #001d37; /* mismo color del texto de tu formulario */
    cursor: pointer;
}

body.reglog .form-group.checkboxes input[type="checkbox"] {
    margin-right: 8px; /* separa el checkbox del texto */
    transform: scale(1.2); /* opcional, hace el checkbox un poco más grande */
}

body.reglog .form-group.checkboxes a {
    color: #d6ff03; /* mismo color que tus links en el formulario */
    text-decoration: underline;
}

body.reglog .form-group.checkboxes a:hover {
    color: #00bcd4; /* color al pasar el mouse */
}

body.reglog button:disabled {
    background-color: #999; /* gris apagado */
    color: #555; /* texto gris */
    cursor: not-allowed; /* cursor de prohibido */
    opacity: 0.6; /* opcional: más sutil */
}

/* ============================= */
/* Estilos para panel.php */
/* ============================= */
body.panel {
    font-family: 'Epilogue', sans-serif; /* Cambiado a Epilogue */
    background: linear-gradient(to bottom, #001d37, #001d37);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
}

body.panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #001d37;
    border-bottom: 3px solid #d6ff03;
}

body.panel .logo {
    display: flex;
    align-items: center;
}

body.panel .logo img {
    height: 40px;
    margin-right: 10px;
}

body.panel .logo h1 {
    font-size: 20px;
    color: #d6ff03;
    margin: 0;
}

body.panel .logout-btn {
    background-color: #e53935;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

body.panel .logout-btn:hover {
    background-color: #c62828;
}

body.panel .panel-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    backdrop-filter: blur(8px);
    background-color: #00000080;
    border-radius: 12px;
}

/* User Box con gradiente moderno */
body.panel .user-box {
    background: linear-gradient(135deg, #0099ff 0%, #001d37 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.4);
}

body.panel .welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

body.panel .user-box h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
}

body.panel .user-email {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
}

body.panel .status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

body.panel .status-badge.active {
    background: #d6ff03;
    color: #001d37;
    box-shadow: 0 2px 8px rgba(214, 255, 3, 0.5);
}

body.panel .status-badge.inactive {
    background: rgba(255, 152, 0, 0.9);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

body.panel .status-icon {
    font-size: 16px;
}

body.panel .subscription-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

body.panel .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

body.panel .info-icon {
    font-size: 24px;
}

body.panel .info-item > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.panel .info-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

body.panel .info-value {
    font-size: 16px;
    font-weight: 600;
}

/* Grid de tarjetas */
body.panel .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

body.panel .grid-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

body.panel .grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

body.panel .grid-item h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.panel .grid-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

body.panel .card-icon {
    font-size: 24px;
}

body.panel .delete-btn {
    background: #f44336;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

body.panel .delete-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Métodos de Pago */
body.panel .payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

body.panel .payment-option {
    display: flex;
    align-items: center;
    padding: 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

body.panel .payment-option:hover {
    border-color: #0099ff;
    background: #f5f7ff;
    transform: translateX(4px);
}

body.panel .payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

body.panel .payment-option:has(input[type="radio"]:checked) {
    border-color: #0099ff;
    background: linear-gradient(135deg, #e0f7ff 0%, #b3e5fc 100%);
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.25);
}

body.panel .payment-option:has(input[type="radio"]:checked) .payment-name {
    color: #001d37;
    font-weight: 600;
}

body.panel .payment-option:has(input[type="radio"]:checked) .payment-check {
    opacity: 1;
}

body.panel .payment-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}

body.panel .payment-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

body.panel .payment-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

body.panel .payment-check {
    color: #0099ff;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.panel #unified-checkout-btn {
    width: 100%;
    margin-top: 16px;
    background: #d6ff03;
    color: #001d37;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 255, 3, 0.4);
    position: relative;
    overflow: hidden;
}

body.panel #unified-checkout-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0099ff;
    transition: all 0.3s ease;
    z-index: 0;
}

body.panel #unified-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 255, 3, 0.6);
}

body.panel #unified-checkout-btn:hover::after {
    height: 100%;
}

body.panel #unified-checkout-btn:hover {
    color: white;
}

body.panel #unified-checkout-btn:active {
    transform: translateY(0);
}

body.panel #unified-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================= */
/* Estilos para solicitar_eliminacion.php */
/* ============================= */
body.solicitar {
    font-family: 'Epilogue', sans-serif; /* Fuente consistente */
    margin: 0;
    background: linear-gradient(to bottom, #001d37, #001d37); /* Fondo consistente con panel y reglog */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
}

body.solicitar header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #0099ff; /* Consistente con panel */
    border-bottom: 1px solid #000;
}

body.solicitar .logo {
    display: flex;
    align-items: center;
}

body.solicitar .logo img {
    height: 40px;
    margin-right: 10px;
}

body.solicitar .logo h1 {
    font-size: 20px;
    color: #001d37;
    margin: 0;
}

body.solicitar .container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    backdrop-filter: blur(8px);
    background-color: #00000080; /* Fondo semitransparente consistente con panel */
    border-radius: 12px;
}

body.solicitar .container h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

body.solicitar .instructions,
body.solicitar .data-info {
    background-color: #0099ff; /* Ajustado al estilo panel */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

body.solicitar .instructions h3,
body.solicitar .data-info h3 {
    color: #001d37; /* Color destacado consistente con reglog */
    margin-top: 0;
}

body.solicitar .instructions ol {
    padding-left: 20px;
}

body.solicitar .form-group {
    margin-bottom: 15px;
}

body.solicitar .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

body.solicitar .form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #1f1f1f; /* Consistente con input de reglog */
    color: #fff;
    box-sizing: border-box;
}

body.solicitar .submit-btn {
    background-color: #e53935; /* Consistente con botones de reglog */
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    font-size: 16px;
}

body.solicitar .submit-btn:hover {
    background-color: #c62828;
}

body.solicitar .back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #d6ff03;
    text-decoration: none;
}

body.solicitar .error-message {
    color: #e53935;
    background-color: rgba(229, 57, 53, 0.2);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/* ============================= */
/* Media queries para responsive */
/* ============================= */
@media (max-width: 500px) {
    body.reglog .form-box {
        padding: 30px 20px;
    }

    body.panel .logo h1 {
        font-size: 16px;
    }

    body.solicitar .container {
        padding: 20px;
    }

    body.solicitar .logo h1 {
        font-size: 16px;
    }
}