/* Google Font: Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

/* Animación de desvanecimiento (Fade-in) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Animación para los puntos del cargador */
@keyframes loading-dots {
    0%, 20% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Estilos Generales */
html { scroll-behavior: smooth; }
body {
    background-color: #f9f9f9;
    font-family: 'Montserrat', sans-serif;
    color: #4f4f4f;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.content-container {
    flex: 1 0 auto;
}

/* Encabezado */
.header-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-top: 2rem;
}
.header-logo { width: 55px; height: 100px; flex-shrink: 0; }
.header-title { text-align: left; }
.header-title h2 { margin: 0; font-size: 1.5rem; color: #9e1c3c; font-weight: 700; }
.header-title p { margin: 0; font-size: 1rem; color: #333; font-weight: 500; }

/* Título Principal */
.main-title {
    text-align: center; color: #9e1c3c; font-weight: 500; font-size: 1.4rem;
    padding-bottom: 10px; border-bottom: 2px solid #9e1c3c; margin-bottom: 25px;
}

/* Formulario */
.validation-form { padding: 30px; border: 1px solid #ddd; margin-bottom: 30px; background-color: #fff; }
.validation-form .form-label { font-size: 0.9rem; font-weight: 700; color: #333; text-transform: uppercase; }
.validation-form .form-control { border-color: #adadad; padding: 0.75rem; }

/* Botón con Indicador de Carga */
.btn-custom {
    background-color: #9e1c3c; border-color: #9e1c3c; color: white; padding: 12px;
    font-size: 1.1rem; font-weight: bold; transition: background-color 0.3s ease;
    position: relative; overflow: hidden;
}
.btn-custom:hover { background-color: #7a1c34; border-color: #7a1c34; color: white; }

.loading-indicator {
    display: none; align-items: center; justify-content: center;
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.loading-indicator span {
    display: inline-block; width: 8px; height: 8px; margin: 0 3px;
    background-color: white; border-radius: 50%;
}
.loading-indicator span:nth-child(1) { animation: loading-dots 1.4s infinite ease-in-out 0s; }
.loading-indicator span:nth-child(2) { animation: loading-dots 1.4s infinite ease-in-out 0.2s; }
.loading-indicator span:nth-child(3) { animation: loading-dots 1.4s infinite ease-in-out 0.4s; }

.btn-custom.loading .button-text {
    visibility: hidden;
}
.btn-custom.loading .loading-indicator {
    display: flex;
}

/* Cajas de Información */
.info-box {
    background-color: #f7f7f7; border: 1px solid #e1e1e1; padding: 25px;
    margin-bottom: 25px; font-size: 0.9rem; color: #444;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: justify;
}
.info-box:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.info-box h5 { font-size: 1rem; text-transform: uppercase; font-weight: 700; }

/* Contenedor de Resultados */
.result-container {
    border: 1px solid #d1d1d1; background-color: #fdfdfd; padding: 30px 40px;
    border-left: 5px solid #198754; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.result-container:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); }
.result-container.error { border-left-color: #dc3545; }
.result-header { margin-bottom: 25px; text-align: left; }
.result-header h3 { color: #198754; font-weight: 700; font-size: 1.6rem; }
.result-header.error h3 { color: #dc3545; }
.result-header .fa-check-circle, .result-header .fa-times-circle { margin-right: 15px; }
.result-section-title { color: #9e1c3c; font-weight: 500; margin-top: 25px; margin-bottom: 15px; font-size: 1.2rem; }
.result-data-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 1.05rem; }
.result-data-row i { color: #6c757d; width: 20px; text-align: center; margin-top: 4px; }
.result-data-row strong { margin-right: 5px; font-weight: 700; }
.result-footer-text { font-size: 0.95rem; color: #6c757d; text-align: center; margin-top: 30px; }

/* Footer */
.site-footer {
    background-color: #f8f9fa; padding-top: 40px; font-size: 0.9rem;
    color: #555; border-top: 1px solid #e7e7e7; flex-shrink: 0;
}
.footer-logos img { max-width: 170px; height: auto; }
.footer-links h5 { font-weight: bold; color: #333; text-transform: uppercase; margin-bottom: 20px; font-size: 1rem; }
.footer-links ul { list-style: none; padding-left: 0; }
.footer-links ul li a { color: #555; text-decoration: none; line-height: 2; transition: color 0.2s ease; }
.footer-links ul li a:hover { color: #9e1c3c; text-decoration: underline; }
.footer-bottom-bar {
    background-color: #9e1c3c; color: white; padding: 15px 0;
    margin-top: 30px; text-align: center; font-weight: 500;
    font-size: 0.8rem; text-transform: uppercase;
}

/* Diseño Responsivo */
@media (max-width: 768px) {
    .header-section { flex-direction: column; text-align: center; gap: 15px; padding-top: 1rem; }
    .header-title h2 { font-size: 1.1rem; }
    .header-title p { font-size: 0.85rem; }
    .main-title { font-size: 1.1rem; }
    .validation-form, .result-container { padding: 20px; }
    .result-header h3 { font-size: 1.3rem; }
    .result-data-row { font-size: 1rem; }
    .site-footer { text-align: center; }
    .footer-logos, .footer-links { margin-bottom: 30px; }
}

@media (max-width: 576px) {
    .header-title h2 { font-size: 1rem; }
    .main-title { font-size: 1rem; }
    .info-box { padding: 20px; }
}