﻿/* ================================================= */
/* ESTILOS BASE (PARA DESKTOP Y PANTALLAS GRANDES)   */
/* ================================================= */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Arial, sans-serif;
}

body {
    background-color: #e0e0e0;
    background-image: url('/Images/fondo.png');
    background-size: cover;
    background-position: center;
    /* Evita que el fondo se mueva con el scroll en desktop */
    background-attachment: fixed;
}

/* Contenedor principal para Desktop */
.contenedor {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 4rem 5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    width: 90%;
    max-width: 850px;
    text-align: center;
    box-sizing: border-box;
}

    .contenedor h1 {
        color: #003366;
        margin-bottom: 2rem;
        font-size: 3rem;
    }

    .contenedor p {
        margin-bottom: 2.5rem;
        color: #555;
        font-size: 1.6rem;
    }

/* Contenedor del RUT + Botón */
.rut-container {
    display: flex;
    gap: 15px;
    margin-bottom: 2.5rem;
}

    .rut-container input,
    .captcha input {
        flex: 1;
        padding: 16px;
        border: 1px solid #ccc;
        border-radius: 10px;
        font-size: 1.8rem;
    }

    .rut-container button {
        padding: 16px 30px;
        font-size: 1.8rem;
    }

/* ============================================================== */
/* AJUSTES PARA CELULARES (DISEÑO ADAPTATIVO Y CON SCROLL)        */
/* ============================================================== */
/* ✅ En PC aplica el margen */
@media (min-width: 769px) {
    .caja-margen {
        margin: 0 25%;
    }
}

/* ❌ En celulares NO aplica el margen */
@media (max-width: 768px) {
    .caja-margen {
        margin: 0; /* o lo que necesites */
    }
}
@media (max-width: 768px) {
    body {
        /* Permitimos que el fondo se mueva con el contenido en móviles */
        background-attachment: scroll;
        background: #ffffff !important;
    }

    .contenedor {
        /* --- ESTA ES LA PARTE CLAVE DE LA SOLUCIÓN --- */
        /* 1. Cambiamos la posición para que forme parte de la página y permita scroll */
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        /* 2. Hacemos que ocupe todo el ancho y eliminamos bordes y sombras */
        width: 100%;
        max-width: 100%;
        min-height: 100vh; /* Ocupa como mínimo toda la altura de la pantalla */
        border-radius: 0;
        box-shadow: none;
        /* 3. Usamos Flexbox para centrar el contenido verticalmente si cabe */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* 4. Ajustamos el padding para móviles */
        padding: 2rem;
    }

        .contenedor h1 {
            font-size: 2.2rem;
        }

        .contenedor p {
            font-size: 1.4rem;
        }

    /* Apilamos verticalmente el campo RUT y el botón */
    .rut-container {
        flex-direction: column;
    }

        /* Ajustamos el tamaño de fuente para mejor lectura */
        .rut-container input,
        .rut-container button,
        .captcha input {
            font-size: 1.6rem;
        }
}

/* Títulos y textos */
.contenedor h1 {
    color: #003366;
    margin-bottom: 2rem;
    font-size: 3.5rem; /* más grande */
    line-height: 1.2;
}

.contenedor p {
    margin-bottom: 2.5rem;
    color: #555;
    font-size: 1.6rem; /* más grande */
    line-height: 1.4;
}

/* RUT + Botón */
.rut-container {
    display: flex;
    gap: 15px;
    margin-bottom: 2.5rem;
}

    .rut-container input {
        flex: 1;
        padding: 16px;
        border: 1px solid #ccc;
        border-radius: 10px;
        font-size: 2rem;
    }

    .rut-container button {
        padding: 16px 30px;
        font-size: 2rem;
    }

        .rut-container button:hover {
            background: #005a9e;
        }

/* Captcha */
.captcha-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 2.5rem 0;
}

#captchaCanvas {
    border: 1px solid #bbb;
    border-radius: 6px;
    background-color: #fafafa;
    padding: 15px;
}

.captcha input {
    width: 100%;
    padding: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 2rem;
}

label.small-label {
    font-size: 1.4rem;
    color: #444;
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    text-align: left;
}

/* Header */
.agenda-header img {
    height: 80px; /* más grande */
    vertical-align: middle;
    margin-right: 20px;
    float: left;
}

.agenda-header h1 {
    font-size: 3.8rem; /* más grande */
    margin: 10px 0 0;
    font-weight: bold;
}

.agenda-header p {
    margin: 5px 0 0;
    font-size: 1.6rem; /* más grande */
}







.form-group {
    margin-bottom: 0.5rem;
}

.fa-check {
    color: green;
}

.fa-check-circle-o {
    color: #007bff;
    font-size: 1.1rem;
}

.panel-title .trigger:before {
    float: right;
    content: "\e113";
    font-family: 'Glyphicons Halflings';
    vertical-align: text-bottom;
}

.panel-title .trigger.collapsed:before {
    content: "\e114";
}

.panel-anaranjado {
    border: 1px solid #f59806;
}

.swal2-html-container {
    font-size: 1.4em !important;
}
.swal2-confirm {
    background-color: #006AA9 !important;
    border: none !important;
}

.swal2-styled.swal2-confirm {
    background-color: #006AA9 !important;
    font-size: 1.5em !important;
}

.swal2-confirm:focus {
    outline: none !important;
    box-shadow: none !important;
}

.swal2-styled:focus {
    outline: none !important;
    box-shadow: none !important;
}

.swal2-icon.swal2-error {
    border-color: #DC2D43 !important;
    color: #DC2D43 !important;
}

    .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
        background-color: #DC2D43 !important;
    }

.swal2-icon.swal2-warning {
    border-color: #DC2D43 !important;
    color: #DC2D43 !important;
}

/* Estilo base para ambos botones */
.btn-custom {
    border: none !important;
    color: white !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background-color 0.15s ease-in-out !important;
}

/* Botón azul */
.btn-azul {
    background-color: #0066a1 !important;
}

    .btn-azul:hover {
        background-color: #004f7a !important;
    }

    .btn-azul:active {
        background-color: #003a59 !important;
    }

/* Botón rojo */
.btn-rojo {
    background-color: #d32f2f !important;
}

    .btn-rojo:hover {
        background-color: #a72828 !important;
    }

    .btn-rojo:active {
        background-color: #7f1f1f !important;
    }

/* Quitar borde de enfoque */
.btn-custom:focus {
    outline: none !important;
    box-shadow: none !important;
}