/* Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #8bc34a;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--light-gray);
    line-height: 1.6;
}

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

/* Header */
header {
    margin-bottom: 30px;
}

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

.logo img {
    width: 40px;
    height: 40px;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Intro */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #555;
}

/* Main content */
.qr-generator {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow: hidden;
    margin-bottom: 40px;
}

.form-container {
    flex: 1;
    padding: 30px;
    border-right: 1px solid var(--border-color);
}

.qr-result {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: var(--light-gray);
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--primary-color);
}

h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #444;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    cursor: help;
    position: relative;
}

.tooltip-text {
    display: none;
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    width: 200px;
    z-index: 100;
    margin-left: 10px;
}

.tooltip:hover + .tooltip-text {
    display: block;
}

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-transform: uppercase;
}

.generate-btn:hover {
    background-color: #7cb342;
}

.generate-btn img {
    width: 20px;
    height: 20px;
}

/* QR code display */
#qr-code-container {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#qr-code-img {
    max-width: 100%;
    max-height: 100%;
}

.qr-instructions {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    width: 100%;
}

.qr-instructions h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.qr-instructions ol {
    padding-left: 20px;
}

.qr-instructions li {
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ccc;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
}

.download-btn.active {
    background-color: var(--primary-color);
    cursor: pointer;
}

.download-btn.active:hover {
    background-color: #0055aa;
}

.download-btn img {
    width: 20px;
    height: 20px;
}

/* Benefits Section */
.benefits {
    margin-bottom: 40px;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 30px;
}

.benefits-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.benefit-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* FAQ Section */
.faq {
    margin-bottom: 40px;
}

.faq h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

/* Aquí está la corrección para el archivo CSS */

/* Paso 1: Eliminar los estilos de páginas legales y contacto de la media query */
@media (max-width: 768px) {
    .qr-generator {
        flex-direction: column;
    }
    
    .form-container {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .benefits-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
    }

    /* Aquí debes eliminar todo el contenido de estilos legales y contacto */
    
    /* Responsive específico para páginas legales y contacto */
    .contact-container {
        flex-direction: column;
    }
    
    .legal-content, 
    .contact-form-container,
    .contact-info,
    .faq-section {
        padding: 20px;
    }
}

/* Paso 2: Añadir los estilos de páginas legales y contacto fuera de la media query */

/* Contenido legal */
.legal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.legal-content h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

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

.legal-content section {
    margin-bottom: 30px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Página de contacto */
.contact-content {
    margin-bottom: 40px;
}

.contact-content h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #555;
}

.contact-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-form-container {
    flex: 2;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

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

.contact-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form .checkbox-group input {
    width: auto;
}

.contact-form .checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #0055aa;
}

.contact-info {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin: 25px 0 15px;
}

.contact-method {
    margin-bottom: 20px;
}

.contact-method strong {
    display: block;
    margin-bottom: 5px;
    color: #444;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #0055aa;
    text-decoration: underline;
}

.faq-section {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-content .faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.contact-content .faq-item h3 {
    padding: 15px;
    margin: 0;
    background-color: #f9f9f9;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    color: #444;
}

.contact-content .faq-item h3:hover {
    background-color: #f0f0f0;
}

.contact-content .faq-item p {
    padding: 15px;
    margin: 0;
    border-top: 1px solid #eee;
}

/* Logo con enlace en header */
.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}