/* --- FUENTES Y ESTILOS GENERALES --- */
@font-face {
    font-family: 'Gilam';
    src: url('fonts/GilamHeavy.otf') format('truetype');
    font-weight: 900;
}
@font-face {
    font-family: 'Gilam';
    src: url('fonts/GilamBold.otf') format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'Gilam';
    src: url('fonts/GilamBook.otf') format('truetype');
    font-weight: normal;
}

:root {
    --primary-color: #e64a8a;
    --secondary-color: #d13574;
    --accent-color: #007bff;
    --light-color: #ffffff;
    --dark-color: #333;
    --grey-color: #f0f0f0;
    --border-color: #ddd;
    --footer-bg-color: #004A7C;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- LAYOUT PRINCIPAL (STICKY FOOTER) --- */
html, body {
    height: 100%;
}

body {
    font-family: 'Gilam', sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer {
    width: 100%;
    background-color: var(--footer-bg-color);
    color: var(--light-color);
    padding: 30px 20px;
    flex-shrink: 0;
}

/* --- CONTENEDOR PRINCIPAL DEL FORMULARIO (CAMBIO PRINCIPAL) --- */
.form-container {
    background: var(--light-color);
    border-radius: 20px; /* Bordes m��s suaves */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    /* ===== ANCHO AUMENTADO PARA PC ===== */
    max-width: 950px; 
    overflow: hidden;
}

form {
    /* ===== PADDING AUMENTADO PARA M�0�9S ESPACIO INTERNO ===== */
    padding: 40px 50px; 
}

.form-outer {
    width: 100%;
    overflow: hidden;
}

.form-step {
    display: none;
    transition: all 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

.step-title {
    text-align: center;
    font-size: 26px; /* Un poco m��s grande */
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* --- BARRA DE PROGRESO --- */
.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background: var(--grey-color);
    z-index: 1;
}

.progress-bar .step {
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 2;
}

.progress-bar .step p {
    font-size: 16px; /* M��s legible */
    color: #acacac;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.progress-bar .step .bullet {
    height: 35px; /* Un poco m��s grande */
    width: 35px;
    border: 2px solid #acacac;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--light-color);
    transition: all 0.3s;
}

.progress-bar .step .bullet span {
    font-weight: bold;
    color: #acacac;
}

.progress-bar .step .check {
    display: none;
}

/* Estilos de la barra de progreso activa */
.progress-bar .step.active p,
.progress-bar .step.active .bullet span {
    color: var(--primary-color);
}

.progress-bar .step.active .bullet {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.progress-bar .step.active .bullet span {
    display: none;
}

.progress-bar .step.active .check {
    display: block;
    color: var(--light-color);
    font-size: 14px; /* Ajustado al nuevo tama�0�9o */
}

/* --- ESTILOS DE CAMPOS (INPUTS) --- */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    transition: color 0.3s;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px 15px 15px 50px; /* M��s padding */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Gilam', sans-serif;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-group input:focus ~ i,
.input-group select:focus ~ i,
.input-group textarea:focus ~ i {
    color: var(--primary-color);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 15px;
}

.input-group input.invalid,
.input-group select.invalid,
.input-group textarea.invalid {
    border-color: #dc3545;
}

/* --- GRIDS PARA DIRECCI�0�7N Y HORARIOS --- */
.address-grid {
    display: grid;
    /* ===== GRID MEJORADO PARA DIRECCI�0�7N ===== */
    grid-template-columns: repeat(6, 1fr); /* 6 columnas para m��s flexibilidad */
    gap: 20px;
    margin-bottom: 20px;
}
/* Asignar columnas a cada campo */
.address-grid .input-group:nth-child(1) { grid-column: 1 / 4; } /* CP */
.address-grid .input-group:nth-child(2) { grid-column: 4 / 7; } /* Colonia */
.address-grid .input-group:nth-child(3) { grid-column: 1 / 5; } /* Calle */
.address-grid .input-group:nth-child(4) { grid-column: 5 / 6; } /* N�� Ext */
.address-grid .input-group:nth-child(5) { grid-column: 6 / 7; } /* N�� Int */


.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.dia {
    display: flex;
    align-items: center;
    background: var(--grey-color);
    padding: 8px;
    border-radius: 8px;
}

.dia span {
    font-weight: bold;
    color: var(--dark-color);
    margin-right: 10px;
}

.dia input[type="time"] {
    border: none;
    padding: 5px;
    flex-grow: 1;
    background-color: transparent;
}

/* --- SUBIDA DE ARCHIVOS --- */
.file-upload-group {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}
.file-upload-group:hover {
    border-color: var(--primary-color);
}
.file-upload-group label {
    font-weight: bold;
    color: var(--dark-color);
    display: block;
    margin-bottom: 10px;
}
.file-upload-group input[type="file"] {
    width: 100%;
}
.info-link {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
}
.info-text {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin: 10px 0 20px 0;
}

/* --- MAPA --- */
#mapa {
    height: 350px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* --- BOTONES DE NAVEGACI�0�7N --- */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-navigation button {
    padding: 12px 35px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.prev-btn {
    background-color: #6c757d;
    color: var(--light-color);
}
.prev-btn:hover {
    background-color: #5a6268;
}

.next-btn, .submit-btn {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--light-color);
}
.next-btn:hover, .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 74, 138, 0.4);
}

.secondary-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: var(--light-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 15px 0;
    font-weight: bold;
}
.secondary-btn:hover {
    background-color: #0056b3;
}

/* --- T�0�7RMINOS Y CONDICIONES --- */
.terminos-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
    padding: 15px;
    background-color: var(--grey-color);
    border-radius: 8px;
}
.terminos-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.terminos-container label {
    font-size: 14px;
    color: var(--dark-color);
}
.terminos-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
.terminos-container a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    main {
        padding: 20px 10px;
    }
    form {
        padding: 20px;
    }
    .address-grid {
        grid-template-columns: 1fr; /* Todos los campos de direcci��n en una columna */
    }
    .address-grid .input-group {
        grid-column: auto; /* Resetear asignaci��n de columnas */
    }
    .progress-bar .step p {
        display: none; /* Ocultar texto en m��vil */
    }
}


.info-pre-registro {
    background-color: #f8f9fa; /* Fondo gris muy suave */
    border-left: 5px solid #0056b3; /* Borde azul a la izquierda */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.info-pre-registro .info-icon {
    font-size: 24px;
    color: #0056b3;
    padding-top: 5px;
}

.info-pre-registro h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

.info-pre-registro p {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.requisitos-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requisitos-lista li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
    display: flex;
    flex-direction: column;
}

.requisitos-lista li strong {
    color: #000;
}

/* Estilos de los enlaces */
.link-cus {
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.link-cus:hover {
    color: #0043a8;
    text-decoration: underline;
}

.link-info-cus {
    color: #6c757d;
    font-size: 13px;
    margin-top: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-info-cus:hover {
    color: #0056b3;
}

