/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #000000 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Contenedor principal */
.contact-section {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Cabecera */
.contact-intro {
    background: linear-gradient(135deg, #4facfe 0%, #000000 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.contact-title {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 300;
}

.contact-description {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Formulario */
.contact-form {
    padding: 30px;
}

.form-group-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 0.95em;
}

.form-input,
.form-textarea {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4facfe;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Botón de enviar */
.form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mensaje de estado */
#statusMessage {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

/* Sección de donación */
.donation-section {
    margin: 0 30px 30px;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.donation-text {
    margin: 0;
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
}

.donation-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.donation-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .contact-section {
        margin: 20px auto;
        border-radius: 10px;
    }
    
    .contact-intro {
        padding: 20px;
    }
    
    .contact-title {
        font-size: 1.8em;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .donation-section {
        margin: 0 20px 20px;
    }
    
    .form-input,
    .form-textarea {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.5em;
    }
    
    .contact-description {
        font-size: 0.95em;
    }
    
    .donation-text {
        font-size: 0.9rem;
    }
    
    .form-submit {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-section {
    animation: fadeIn 0.6s ease-out;
}

/* Estados de validación */
.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #fc8181;
}

.form-input:valid:not(:focus):not(:placeholder-shown),
.form-textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #68d391;
}

/* Loading state */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estilos para la página de política de privacidad */
.privacy-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.privacy-header {
    background: linear-gradient(135deg, #4facfe 0%, #000000 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.privacy-title {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 300;
}

.last-updated {
    opacity: 0.9;
    font-size: 0.9em;
}

.privacy-content {
    padding: 30px;
}

.privacy-content h2 {
    color: #4facfe;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.privacy-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.privacy-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.privacy-content li {
    margin-bottom: 8px;
}

.privacy-contact-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid #667eea;
}

.privacy-footer {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {
    .privacy-container {
        margin: 20px auto;
        border-radius: 10px;
    }
    
    .privacy-header {
        padding: 20px;
    }
    
    .privacy-title {
        font-size: 1.8em;
    }
    
    .privacy-content {
        padding: 20px;
    }
}