/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 3rem;
    color: #4a90e2;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Contenido principal */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: none;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.form-description {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Secciones del formulario */
.form-section {
    margin-bottom: 40px;
    padding: 35px;
    background: #ffffff;
    border-radius: 15px;
    border-left: 6px solid #dc2626;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #f3f4f6;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 30px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.form-section h3 i {
    color: #dc2626;
    font-size: 1.3rem;
}

/* Grid del formulario */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.form-group input:invalid {
    border-color: #e74c3c;
}

.form-group input:valid {
    border-color: #27ae60;
}

/* Radio buttons personalizados */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 18px 20px;
    background: white;
    border-radius: 12px;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    font-size: 1rem;
}

.radio-label:hover {
    background: #f9fafb;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 3px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #dc2626;
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.radio-label:has(input[type="radio"]:checked) {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
    font-weight: 600;
}

/* Contador de caracteres */
.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Botones */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e1e8ed;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Modal de Bienvenida - Estilo Gobierno de García */
.welcome-modal {
    display: block;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.5s ease;
}

.welcome-modal.hidden {
    display: none !important;
}

.welcome-modal-content {
    background: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease;
    position: relative;
}

.welcome-header {
    background: linear-gradient(135deg, #000000, #1f2937);
    color: white;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    position: relative;
    border-bottom: 4px solid #dc2626;
}

.header-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.close-welcome-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-welcome-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.welcome-body {
    padding: 0;
}

.program-card {
    background: linear-gradient(135deg, #000000, #1f2937);
    color: white;
    margin: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    border: 3px solid #dc2626;
}

.card-header {
    padding: 15px 20px;
    background: rgba(220, 38, 38, 0.2);
    border-bottom: 2px solid #dc2626;
}

.municipality-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.municipality-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.program-tag {
    font-size: 0.8rem;
    color: white;
    background: #dc2626;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.card-content {
    padding: 30px 20px;
    text-align: center;
}

.program-logo {
    margin-bottom: 20px;
}

.tinacos-image-container {
    width: 200px;
    height: 150px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid #dc2626;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.tinacos-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.water-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.water-icon i {
    font-size: 2.5rem;
    color: white;
    animation: wave 2s ease-in-out infinite;
}

.program-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.program-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

.heart-icon {
    margin: 20px 0;
}

.heart-icon i {
    font-size: 2rem;
    color: #dc2626;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.government-info {
    margin-bottom: 25px;
}

.government-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: white;
}

.mayor-name {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

.program-description {
    background: rgba(220, 38, 38, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.program-description p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.95);
}

.program-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.benefit-item i {
    font-size: 1.1rem;
    color: #dc2626;
    width: 20px;
    text-align: center;
}

.welcome-footer {
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    border-radius: 0 0 20px 20px;
    border-top: 3px solid #dc2626;
}

.btn-program {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: 3px solid #000000;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-program:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: #000000;
}

.btn-program:active {
    transform: translateY(0);
}

/* Modal */
.modal:not(.welcome-modal) {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal cuando está visible - FORZAR VISIBILIDAD */
.modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Forzar visibilidad del modal */
.modal[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000 !important;
}

/* Asegurar que el contenido del modal sea visible */
.modal.show .modal-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.modal-content {
    background: white;
    margin: 0 auto;
    padding: 0;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    /* Estilos del scroll - igual que el modal de bienvenida */
    scrollbar-width: thin;
    scrollbar-color: #dc2626 #f3f4f6;
}

/* Estilos del scroll para WebKit (Chrome, Safari, Edge) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
    border: 1px solid #f3f4f6;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Mejoras para móvil - scroll más suave */
@media (max-width: 768px) {
    .modal:not(.welcome-modal) {
        padding: 10px;
    }
    
    .modal-content {
        margin: 0 auto;
        width: 100%;
        max-height: calc(100vh - 20px);
        /* Scroll más suave en móvil */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Scrollbar más ancha en móvil para mejor usabilidad */
    .modal-content::-webkit-scrollbar {
        width: 12px;
    }
    
    .modal-content::-webkit-scrollbar-thumb {
        background: #dc2626;
        border-radius: 6px;
        border: 2px solid #f3f4f6;
    }
}

/* Responsive para móviles - contenido del modal */
@media (max-width: 768px) {
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 15px;
        top: 50%;
        transform: translateY(-50%);
        /* Scroll más visible en móviles */
        scrollbar-width: auto;
    }
    
    /* Scroll más ancho en móviles para mejor usabilidad táctil */
    .modal-content::-webkit-scrollbar {
        width: 12px;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    .modal:not(.welcome-modal) {
        padding: 5px;
    }
    
    .modal-content {
        max-height: calc(100vh - 10px);
        border-radius: 10px;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.folio-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.folio-info p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.folio-number {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc2626;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #dc2626;
    letter-spacing: 3px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
    display: inline-block;
    min-width: 200px;
}

.registro-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: left;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.registro-info p {
    margin: 12px 0;
    font-size: 1.1rem;
    color: #2c3e50;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.registro-info p:last-child {
    border-bottom: none;
}

.registro-info strong {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.2rem;
}

.motivacion-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: left;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.motivacion-info p {
    margin: 8px 0;
    font-size: 1rem;
    color: #2c3e50;
}

.motivacion-info strong {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
}

.motivacion-text {
    font-style: italic;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-top: 10px !important;
}

.fecha-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    border-left: 5px solid #dc2626;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fecha-info p {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.fecha-info strong {
    color: #dc2626;
    font-weight: 700;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .modal-body {
        padding: 20px;
    }
    
    .folio-info {
        padding: 20px;
        margin: 20px 0;
    }
    
    .folio-number {
        font-size: 1.4rem;
        padding: 15px;
        min-width: 150px;
        letter-spacing: 2px;
    }
    
    .registro-info {
        padding: 15px;
        margin: 15px 0;
    }
    
    .registro-info p {
        font-size: 1rem;
    }
    
    .registro-info strong {
        font-size: 1.1rem;
    }
    
    .motivacion-info {
        padding: 15px;
        margin: 15px 0;
    }
    
    .motivacion-text {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .fecha-info {
        padding: 12px;
        margin: 15px 0;
    }
    
    .fecha-info p {
        font-size: 0.95rem;
    }
}

.modal-note {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-style: italic;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.footer-content p {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.footer-content p:first-child {
    font-weight: 600;
    color: #4a90e2;
}

.footer-content p:first-child i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 20px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .main-content {
        padding: 20px;
    }

    .form-section {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .form-header h2 {
        font-size: 1.6rem;
    }

    .form-section h3 {
        font-size: 1.2rem;
    }

    /* Modal de bienvenida responsivo */
    .welcome-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }

    .welcome-header {
        padding: 15px 20px;
    }

    .header-text h2 {
        font-size: 1.2rem;
    }

    .card-content {
        padding: 25px 15px;
    }

    .water-icon {
        width: 70px;
        height: 70px;
    }

    .water-icon i {
        font-size: 2rem;
    }

    .program-logo h3 {
        font-size: 1.5rem;
    }

    .program-subtitle {
        font-size: 0.9rem;
    }

    .heart-icon i {
        font-size: 1.8rem;
    }

    .government-info h4 {
        font-size: 1.1rem;
    }

    .mayor-name {
        font-size: 0.8rem;
    }

    .program-description {
        padding: 15px;
    }

    .program-description p {
        font-size: 0.9rem;
    }

    .benefit-item {
        font-size: 0.85rem;
    }

    .welcome-footer {
        padding: 20px 15px;
    }

    .btn-program {
        padding: 12px 30px;
        font-size: 1rem;
        min-width: 180px;
    }
}

/* Estados de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn-primary {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Animaciones adicionales */
.form-section {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Validación visual */
.form-group input:invalid:not(:focus) {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.form-group input:valid:not(:focus) {
    border-color: #27ae60;
    background: #f0f9f0;
}

/* Mejoras de accesibilidad */
.btn:focus,
input:focus,
textarea:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Botón de administración */
.admin-link {
    position: absolute;
    top: 20px;
    right: 20px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
}

.admin-btn:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.admin-btn:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Responsive para el botón de administración */
@media (max-width: 768px) {
    .admin-link {
        top: 15px;
        right: 15px;
    }
    
    .admin-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}