/* Portal Cautivo — Hospital MEDICASA */

body {
    font-family: 'Raleway', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 28px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 16px;
}

h1 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 0 0 8px;
}

h2 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 8px 0;
}

p {
    color: #555;
    font-size: 14px;
    margin: 6px 0;
}

/* ─── Campos del formulario ─────────────────────────────────────── */
.field {
    margin: 10px 0;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 11px 12px;
    margin: 0;
    border: 1px solid #d0d0d0;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: #06adbf;
    background: #fff;
}

select {
    height: 44px;
    cursor: pointer;
}

/* ─── Checkbox de términos ──────────────────────────────────────── */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin: 12px 0;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #06adbf;
    cursor: pointer;
}

.checkbox-field label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-field label a {
    color: #06adbf;
    text-decoration: none;
}

/* ─── Botón principal ───────────────────────────────────────────── */
button,
.btn-navegar {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background-color: #06adbf;
    color: #fff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 8px;
}

button:hover,
.btn-navegar:hover {
    background-color: #0596a6;
}

button:active,
.btn-navegar:active {
    transform: scale(0.98);
}

button:disabled {
    background-color: #a0d4da;
    cursor: not-allowed;
}

/* ─── Caja de error ─────────────────────────────────────────────── */
.error-box {
    background: #fff0f0;
    border: 1px solid #ffb3b3;
    border-left: 4px solid #ff4444;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 10px 0;
    font-size: 14px;
    color: #c0392b;
    text-align: left;
}

/* ─── Página de éxito ───────────────────────────────────────────── */
.success-container {
    padding: 32px 24px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #00c87a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 16px auto;
}

.timer-bar {
    background: #e0e0e0;
    border-radius: 4px;
    height: 6px;
    margin: 16px 0;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: #06adbf;
    width: 100%;
    transition: width 0.1s linear;
    border-radius: 4px;
}

.info-text {
    font-size: 12px;
    color: #888;
    margin-top: 14px;
    line-height: 1.5;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 480px) {
    body { padding: 12px; align-items: flex-start; padding-top: 24px; }
    .container { padding: 20px 16px; }
    .logo { max-width: 120px; }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select { font-size: 14px; padding: 9px 10px; }
    button, .btn-navegar { font-size: 15px; padding: 12px; }
}
