/* =========================
CONFIGURACIÓN GENERAL
========================= */
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
color: #e2e8f0;
text-align: center;
min-height: 100vh;
line-height: 1.6;
}

/* =========================
ENCABEZADOS
========================= */
h1, h2, h3 {
text-align: center;
font-weight: 600;
margin-bottom: 20px;
}

h1 {
font-size: 2.5em;
background: linear-gradient(45deg, #3b82f6, #06b6d4);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

h2 {
color: #f1f5f9;
border-bottom: 2px solid #3b82f6;
padding-bottom: 10px;
}

h3 {
color: #cbd5e1;
font-size: 1.4em;
}

/* =========================
BOTONES
========================= */
button {
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
color: white;
padding: 12px 24px;
margin: 10px;
border: none;
border-radius: 25px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 16px;
font-weight: 500;
box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
background: linear-gradient(135deg, #2563eb, #1e40af);
}

button:active {
transform: translateY(0);
}

/* BOTONES ESPECIALES */
.btn-salir {
background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-salir:hover {
background: linear-gradient(135deg, #dc2626, #b91c1c);
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-pro {
width: 100%;
margin-top: 20px;
padding: 16px;
border-radius: 12px;
background: linear-gradient(90deg, #3b82f6, #1d4ed8);
font-size: 18px;
font-weight: bold;
box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-principal {
flex: 1;
padding: 12px;
background: linear-gradient(135deg, #06b6d4, #0891b2);
border-radius: 8px;
font-weight: bold;
box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-secundario {
flex: 1;
padding: 12px;
background: linear-gradient(135deg, #64748b, #475569);
border-radius: 8px;
box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.btn-secundario:hover {
background: linear-gradient(135deg, #475569, #334155);
}

/* =========================
TARJETAS
========================= */
.card {
max-width: 700px;
margin: 40px auto;
background: rgba(30, 41, 59, 0.9);
padding: 40px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
backdrop-filter: blur(10px);
border: 1px solid rgba(59, 130, 246, 0.2);
transition: transform 0.3s ease;
}

.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* =========================
FORMULARIOS
========================= */
label {
display: block;
margin-top: 15px;
font-weight: 600;
color: #cbd5e1;
font-size: 14px;
text-align: left;
}

input, select {
width: 100%;
padding: 12px;
margin-top: 8px;
border-radius: 10px;
border: 1px solid rgba(59, 130, 246, 0.3);
background-color: rgba(51, 65, 85, 0.8);
color: #e2e8f0;
font-size: 16px;
transition: all 0.3s ease;
}

input:focus, select:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
background-color: rgba(51, 65, 85, 0.9);
}

/* =========================
RADIO BUTTONS
========================= */
.radio-group {
margin: 15px 0;
text-align: left;
}

.radio-group label {
display: inline-block;
margin-right: 20px;
font-weight: normal;
cursor: pointer;
}

.radio-group input[type="radio"] {
margin-right: 8px;
accent-color: #3b82f6;
}

/* =========================
MENSAJES
========================= */
.error {
color: #f87171;
font-size: 14px;
margin-top: 8px;
background: rgba(239, 68, 68, 0.1);
padding: 8px;
border-radius: 5px;
border-left: 3px solid #ef4444;
}

/* =========================
RESUMEN
========================= */
.resumen-box {
margin-top: 20px;
padding: 20px;
background: rgba(255,255,255,0.05);
border-radius: 15px;
border: 1px solid rgba(59, 130, 246, 0.2);
}

.info {
text-align: left;
margin-bottom: 20px;
}

.info p {
margin: 8px 0;
font-size: 16px;
}

.total {
font-size: 24px;
font-weight: bold;
color: #06b6d4;
margin: 20px 0;
}

/* =========================
PANEL (DASHBOARD)
========================= */
.panel {
width: 95%;
margin: auto;
padding: 20px;
}

.panel-box {
background: rgba(30, 41, 59, 0.8);
padding: 25px;
border-radius: 15px;
margin-top: 20px;
backdrop-filter: blur(10px);
border: 1px solid rgba(59, 130, 246, 0.2);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lista {
list-style: none;
padding: 0;
}

.lista li {
padding: 8px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================
TABLAS
========================= */
.tabla-pro {
width: 100%;
border-collapse: collapse;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tabla-pro th {
padding: 15px;
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
color: white;
text-align: left;
font-weight: 600;
}

.tabla-pro td {
padding: 15px;
border-bottom: 1px solid rgba(59, 130, 246, 0.2);
background: rgba(51, 65, 85, 0.5);
transition: background 0.3s ease;
}

.tabla-pro tr:hover td {
background: rgba(59, 130, 246, 0.1);
}

/* =========================
CAPTCHA
========================= */
.captcha-row {
display: flex;
justify-content: center;
margin-top: 15px;
}

.captcha-row input {
width: 150px;
text-align: center;
font-size: 18px;
font-weight: bold;
}

.captcha-pregunta {
font-size: 20px;
font-weight: bold;
color: #f1f5f9;
background: rgba(59, 130, 246, 0.1);
padding: 15px;
border-radius: 10px;
margin: 15px 0;
border: 1px solid rgba(59, 130, 246, 0.3);
}

/* =========================
ACCIONES (BOTONES PASO 3)
========================= */
.acciones {
margin-top: 30px;
display: flex;
gap: 15px;
justify-content: center;
}

/* =========================
GALERÍA
========================= */
.galeria {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 20px;
}

.galeria img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 15px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
border: 2px solid transparent;
}

.galeria img:hover {
transform: scale(1.05);
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
border-color: #3b82f6;
}

/* =========================
VIDEO LANDING
========================= */
.video-container {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
}

.video-container video {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
transform: translate(-50%, -50%);
object-fit: cover;
filter: brightness(0.7);
}

.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(0,0,0,0.5);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 20px;
}

.overlay h1 {
font-size: 3.5em;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.overlay p {
margin: 10px 0;
font-size: 1.2em;
color: #e2e8f0;
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.overlay button {
padding: 15px 30px;
font-size: 18px;
border-radius: 30px;
background: linear-gradient(135deg, #06b6d4, #0891b2);
box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.overlay button:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(6, 182, 212, 0.5);
}

/* ANIMACIÓN */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

.card, .panel-box {
animation: fadeIn 0.5s ease;
}

/* =========================
FOOTER
========================= */
.footer {
background: linear-gradient(135deg, #0f172a, #1e293b);
padding: 30px;
color: #94a3b8;
text-align: center;
border-top: 1px solid rgba(59, 130, 246, 0.2);
}

/* =========================
TOP HEADER
========================= */
.top-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 30px;
background: linear-gradient(135deg, #1e293b, #334155);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.logo {
height: 60px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* =========================
MENU CONTAINER
========================= */
.menu-container {
padding: 20px;
}

.menu-container h3 {
color: #f1f5f9;
margin-bottom: 20px;
}

.menu-container button {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin: 10px 0;
padding: 15px;
font-size: 16px;
}

.menu-container img {
border-radius: 5px;
}

/* =========================
PRINT STYLES
========================= */
@media print {
body {
background: white !important;
color: black !important;
}
.card, .panel, .panel-box {
background: white !important;
color: black !important;
box-shadow: none !important;
border: 1px solid #ccc !important;
}
button {
display: none !important;
}
.galeria img {
page-break-inside: avoid;
}
.tabla-pro th, .tabla-pro td {
border: 1px solid #000 !important;
}
}

input, select {
width: 100%;
padding: 10px;
margin-top: 5px;
border-radius: 8px;
border: none;
background-color: #334155;
color: white;
}

input:focus, select:focus {
outline: 2px solid #3b82f6;
}

/* =========================
RADIO BUTTONS
========================= */
.radio-group {
margin: 10px 0;
}

.radio-group label {
display: block;
}

/* =========================
MENSAJES
========================= */
.error {
color: #ff4d4d;
font-size: 13px;
margin-top: 5px;
}

/* =========================
RESUMEN
========================= */
.resumen-box {
margin-top: 20px;
padding: 15px;
background: rgba(255,255,255,0.05);
border-radius: 10px;
}

/* =========================
PANEL (DASHBOARD)
========================= */
.panel {
width: 90%;
margin: auto;
}

.panel-box {
background: rgba(30, 41, 59, 0.6);
padding: 20px;
border-radius: 14px;
margin-top: 20px;
backdrop-filter: blur(10px);
}

.lista {
list-style: none;
padding: 0;
}

/* =========================
TABLAS
========================= */
.tabla-pro {
width: 100%;
border-collapse: collapse;
}

.tabla-pro th {
padding: 15px;
background: rgba(59,130,246,0.15);
text-align: left;
}

.tabla-pro td {
padding: 15px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* =========================
CAPTCHA
========================= */
.captcha-row {
display: flex;
justify-content: flex-end;
}

.captcha-row input {
width: 180px;
}

.captcha-pregunta {
font-size: 18px;
font-weight: bold;
}

/* =========================
ACCIONES (BOTONES PASO 3)
========================= */
.acciones {
margin-top: 20px;
display: flex;
gap: 10px;
}

/* =========================
GALERÍA
========================= */
.galeria {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin-top: 20px;
}

.galeria img {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 10px;
cursor: pointer;
transition: 0.3s;
}

.galeria img:hover {
transform: scale(1.05);
box-shadow: 0 0 15px rgba(59,130,246,0.5);
}

/* =========================
VIDEO LANDING
========================= */
.video-container {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
}

.video-container video {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
transform: translate(-50%, -50%);
object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    background: rgba(0,0,0,0.6);

    display: flex;
    flex-direction: column;
    justify-content: center;   /* CENTRA VERTICAL */
    align-items: center;       /* CENTRA HORIZONTAL */

    text-align: center;
}

.overlay h1 {
    font-size: 52px;
    margin-bottom: 10px;
}

.overlay p {
    margin: 5px 0;
    color: #ccc;
}

.overlay button:hover {
transform: scale(1.1);
}

/* ANIMACIÓN */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

/* =========================
FOOTER
========================= */
.footer {
background: #020617;
padding: 20px;
color: #94a3b8;
}

/* =========================
TOP HEADER
========================= */
.top-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background: #1e293b;
}

.logo {
height: 50px;
}

/* =========================
PRINT STYLES
========================= */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .card, .panel, .panel-box {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    button {
        display: none !important;
    }
    .galeria img {
        page-break-inside: avoid;
    }
}

.copy {
font-size: 12px;
color: #64748b;
}
.card {
    text-align: center;
}
body {
    overflow-y: auto;
}
.card {
    max-width: 900px; /* más ancho */
    margin: 40px auto;
    background: #1e293b;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0px 0px 25px rgba(0,0,0,0.5);
    text-align: left; /* 🔥 clave */
}
.card p {
    line-height: 1.6;
    color: #cbd5f5;
}

.card h3 {
    margin-top: 25px;
    color: #60a5fa;
}
.grid-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}