* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(to bottom, #f3f4f6, #e5e7eb);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */

.header-gob {
    background: #611232; /* Guinda institucional */
    color: white;
    padding: 15px 40px;
}

.header-content {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content img {
    height: 50px;
}

.header-text {
    text-align: center;
}

.header-text h2 {
    margin: 0;
    font-size: 16px;
}

.header-text p {
    margin: 5px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

/* MAIN */

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* CARD */

.card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    padding: 35px;
    display: none;
}

.card.active {
    display: block;
}

.title {
    text-align: center;
    margin-bottom: 25px;
}

.title h1,
.title h2 {
    margin: 0;
    color: #1f2937;
}

.title p {
    margin-top: 10px;
    color: #6b7280;
    font-size: 14px;
}

/* FORM */

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

input:focus {
    outline: none;
    border-color: #611232;
}

/* BUTTONS */

button {
    width: 100%;
    background: #611232;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #7a1b42;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* INFO */

.info-box,
.error-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    display: none;
}

/* FOOTER */

.footer-gob {
    background: #111827;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 13px;
}

/* Spinning */
.loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-card {
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    border-radius: 22px;
    padding: 28px 24px;
    text-align: center;
    animation: fadeUp 0.25s ease;
}

.loading-card h3 {
    margin: 18px 0 8px;
    font-size: 20px;
    color: #111827;
}

.loading-card p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.loader-orb {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.ring-1 {
    border-top-color: #2563eb;
    border-right-color: #2563eb;
    animation: spinClockwise 1s linear infinite;
}

.ring-2 {
    inset: 8px;
    border-bottom-color: #60a5fa;
    border-left-color: #60a5fa;
    animation: spinCounterClockwise 1.2s linear infinite;
}

.loader-core {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #93c5fd, #2563eb);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.35);
    animation: pulseCore 1.4s ease-in-out infinite;
}

@keyframes spinClockwise {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinCounterClockwise {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes pulseCore {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}