/**
 * Estilos nativos y minimalistas para el módulo de información
 * Sin dependencias externas (no Tailwind)
 */

/* === MODALES === */
.info-modal {
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.info-modal.flex {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 42rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    margin: 0 1rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content.wide {
    max-width: 56rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    margin-top: 1rem;
}

/* === VIDEO CONTAINER === */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

/* === BOTONES === */
.info-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.info-btn:hover {
    transform: translateY(-2px);
}

.info-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.375rem;
}

.info-btn i {
    font-size: 1.25rem;
    color: #3b82f6;
    margin-bottom: 0.25rem;
    transition: color 0.2s;
}

.info-btn:hover i {
    color: #1d4ed8;
}

.info-btn span {
    font-size: 0.75rem;
    color: #374151;
}

.info-btn.btn-disabled {
    cursor: not-allowed;
    opacity: 0.6;
    border: 2px solid #ef4444;
    border-radius: 0.5rem;
}

/* === CAMPOS PENDIENTES === */
.campo-pendiente {
    color: #ef4444;
    background: #fee2e2;
    padding: 0.125rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
}

/* === LISTAS === */
.info-list {
    list-style: disc;
    list-style-position: inside;
    color: #4b5563;
}

.info-list li {
    margin: 0.5rem 0;
}

/* === PREGUNTAS === */
.info-faq {
    margin-bottom: 1rem;
}

.info-faq h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.info-faq p {
    color: #4b5563;
    line-height: 1.5;
}

/* === FORMULARIO RESERVA === */
.reservation-form {
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    max-height: 70vh;
    overflow-y: auto;
    background: #f9fafb;
    border-radius: 0.375rem;
}

.reservation-form.hidden {
    display: none;
}

.form-title {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-reserva-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    font-size: 0.8125rem;
}

/* Responsive móvil */
@media (max-width: 639px) {
    .reservation-form {
        padding: 0.625rem;
    }
    
    .form-title {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .modal-reserva-form {
        gap: 0.4375rem;
        font-size: 0.6875rem;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

/* Forzar dos columnas SIEMPRE, incluso en móviles */
.form-row.two-cols {
    grid-template-columns: 1fr 1fr !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
}

.form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.5rem;
    background: white;
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-input.border-red {
    border-color: #ef4444;
}

.form-label {
    display: block;
    color: #374151;
    font-weight: 500;
    font-size: 0.8125rem;
    margin-bottom: 0;
}

.form-textarea {
    min-height: 4rem;
    resize: vertical;
    font-family: inherit;
}

/* Responsive móvil: dos columnas más compactas */
@media (max-width: 639px) {
    .form-row.two-cols {
        gap: 0.3125rem;
    }
    
    .form-group {
        gap: 0.125rem;
    }
    
    .form-label {
        font-size: 0.6875rem;
    }
    
    .form-input {
        padding: 0.3125rem 0.375rem;
        font-size: 0.6875rem;
        border-radius: 0.1875rem;
    }
    
    .form-textarea {
        min-height: 3rem;
        padding: 0.375rem;
    }
}

.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0;
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.form-checkbox-label {
    color: #374151;
    font-size: 0.8125rem;
    line-height: 1.3;
    cursor: pointer;
}

.form-checkbox-label a {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive móvil */
@media (max-width: 639px) {
    .form-checkbox-wrapper {
        gap: 0.25rem;
        padding: 0.25rem 0;
    }
    
    .form-checkbox {
        width: 0.8125rem;
        height: 0.8125rem;
    }
    
    .form-checkbox-label {
        font-size: 0.6875rem;
        line-height: 1.2;
    }
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.625rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.form-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-submit svg {
    width: 0.9375rem;
    height: 0.9375rem;
    flex-shrink: 0;
}

/* Responsive móvil */
@media (max-width: 639px) {
    .form-submit {
        padding: 0.4375rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .form-submit svg {
        width: 0.8125rem;
        height: 0.8125rem;
    }
}

.reserva-exito {
    margin-top: 0.625rem;
    padding: 0.625rem;
    background: #d1fae5;
    border: 1px solid #059669;
    border-radius: 0.25rem;
    color: #065f46;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
}

.reserva-exito.hidden {
    display: none;
}

.reserva-error {
    margin-top: 0.625rem;
    padding: 0.625rem;
    background: #fee2e2;
    border: 1px solid #dc2626;
    border-radius: 0.25rem;
    color: #991b1b;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Responsive móvil */
@media (max-width: 639px) {
    .reserva-exito,
    .reserva-error {
        padding: 0.4375rem;
        font-size: 0.6875rem;
        margin-top: 0.5rem;
    }
}

.reserva-error.hidden {
    display: none;
}

/* === BOTONES DEL MODAL === */
.modal-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-buttons.hidden {
    display: none;
}

.btn-primary {
    color: white;
    background: #1d4ed8;
    border: none;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f3f4f6;
    color: #1d4ed8;
}

.btn-secondary:focus {
    outline: none;
}

/* === FEEDBACK FORMULARIO === */
.form-feedback {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

.form-feedback.text-green {
    color: #059669;
}

.form-feedback.text-red {
    color: #dc2626;
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row.two-cols {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 639px) {
    .form-row.two-cols {
        grid-template-columns: 1fr;
    }
}

/* === SECCIÓN PRINCIPAL === */
.info-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border: 1px solid #e5e7eb;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.info-title {
    color: #1e40af;
    font-weight: 700;
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.info-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 1rem;
}

.info-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .info-buttons-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* === IMAGEN DEL MAPA === */
.map-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
