* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}
 
.toast-container{position:fixed;right:20px;top:20px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.toast{min-width:260px;max-width:360px;padding:14px 16px;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,.12);display:flex;align-items:center;gap:10px;color:#1b1b1b;background:#ffffff;border:1px solid #e6e6e6;opacity:0;transform:translateY(-8px);transition:opacity .18s ease,transform .18s ease;pointer-events:auto}
.toast.show{opacity:1;transform:translateY(0)}
.toast .icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%}
.toast.success .icon{background:#e7f6e9;color:#2e7d32}
.toast.info .icon{background:#e8f1ff;color:#1e5bd7}
.toast.error .icon{background:#fdecea;color:#c62828}
.toast .msg{flex:1;font-size:14px;line-height:1.35}
.toast .close{background:transparent;border:0;color:#666;font-size:16px;cursor:pointer;padding:4px}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(139, 197, 63, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(33, 150, 243, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

.editor-section, .preview-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.editor-section::before, .preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8BC53F, #4CAF50, #2196F3, #9C27B0, #FF9800);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.editor-section:hover, .preview-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), 
                0 0 0 1px rgba(255, 255, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 36px;
    text-align: center;
    background: linear-gradient(135deg, #8BC53F 0%, #4CAF50 50%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 28px;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8BC53F, #4CAF50);
    border-radius: 2px;
}

h3 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 18px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    border-left: 4px solid #8BC53F;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 197, 63, 0.1);
    transition: all 0.3s ease;
}

h3:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(139, 197, 63, 0.15);
}

.form-section {
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(139, 197, 63, 0.1);
    box-shadow: 0 4px 20px rgba(139, 197, 63, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8BC53F, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-section:hover::before {
    opacity: 1;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 197, 63, 0.1);
}

.button-container {
    text-align: center;
    padding: 20px 0;
}

label i {
    margin-right: 8px;
    color: #8BC53F;
    width: 20px;
    display: inline-block;
}

button i {
    margin-right: 8px;
}

.modo-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px;
    border-radius: 9999px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.modo-switch .modo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 9999px;
    border: none;
    background: #f7f7f7;
    color: #666;
    font-weight: 600;
    box-shadow: none;
    margin: 0;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.modo-switch .modo-btn:hover {
    background: #ededed;
    transform: translateY(-1px);
}

.modo-switch .modo-btn.activo {
    background: linear-gradient(135deg, #8BC53F 0%, #7CB342 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(139, 197, 63, 0.4);
}

.modo-switch .modo-btn i {
    margin-right: 8px;
}

.modo-switch .modo-btn.blue {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,153,255,0.35);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="url"],
input[type="email"],
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(139, 197, 63, 0.2);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #8BC53F;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(139, 197, 63, 0.1), 
                0 4px 20px rgba(139, 197, 63, 0.1);
    transform: translateY(-2px);
}

input.invalid {
    border-color: #e74c3c;
    background: #fff5f5;
}

.error {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button {
    background: linear-gradient(135deg, #8BC53F 0%, #4CAF50 50%, #66BB6A 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    margin-top: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(139, 197, 63, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

button:hover::before {
    left: 100%;
}

button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 197, 63, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

button:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

#guardar-qr-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

#guardar-qr-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Tarjeta estilo CEMGI mejorado */
.tarjeta {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 10px 40px rgba(139, 197, 63, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    position: relative;
}

.tarjeta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8BC53F, #4CAF50, #2196F3, #9C27B0, #FF9800);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.tarjeta:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 100px rgba(0,0,0,0.2), 
                0 0 0 1px rgba(255, 255, 255, 0.2) inset,
                0 15px 50px rgba(139, 197, 63, 0.15);
}

.tarjeta-header-green {
    background: linear-gradient(135deg, #8BC53F 0%, #4CAF50 50%, #66BB6A 100%);
    padding: 20px 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.tarjeta-header-green::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tarjeta-header-green img {
    width: 95%;
    max-width: 450px;
    height: auto;
}

#preview-logo {
    width: 95%;
    max-width: 450px;
    height: auto;
}

.tarjeta-nombre-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px 30px;
    text-align: center;
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
}

.tarjeta-nombre-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 197, 63, 0.2), transparent);
}

#preview-nombre {
    color: #666;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}

#preview-puesto {
    color: #999;
    font-size: 20px;
    font-weight: 300;
    font-style: normal;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.tarjeta-contacto-section {
    background: linear-gradient(135deg, #8BC53F 0%, #4CAF50 50%, #66BB6A 100%);
    padding: 30px 30px;
    color: white;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tarjeta-contacto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.tarjeta-contacto-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.contacto-item:hover {
    transform: translateX(8px);
}

.contacto-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contacto-item:hover::before {
    opacity: 1;
}

.contacto-item:last-of-type {
    margin-bottom: 0;
}

.contacto-item i {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8BC53F;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 19px;
    margin-top: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), 
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: all 0.3s ease;
}

.contacto-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15), 
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.contacto-item span {
    line-height: 1.5;
    font-weight: 300;
    padding-top: 4px;
}

.contacto-item a {
    color: white !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.contacto-item a:visited {
    color: white !important;
}

.contacto-item a:hover {
    color: white !important;
    border-bottom: none !important;
}

.contacto-item-doble {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}

.contacto-subitem {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.contacto-subitem i {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8BC53F;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 19px;
    margin-top: 2px;
    box-shadow: none;
}

.contacto-subitem span {
    line-height: 1.5;
    font-weight: 300;
    padding-top: 4px;
}

.contacto-subitem a {
    color: white !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.contacto-subitem a:visited {
    color: white !important;
}

.contacto-subitem a:hover {
    color: white !important;
    border-bottom: none !important;
}

.empresa-nombre {
    font-weight: 500;
    font-size: 18px;
    margin: 0;
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 0;
}

.red-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 21px;
    color: #8BC53F;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), 
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
}

.red-social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #8BC53F 0%, #4CAF50 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.red-social-btn i {
    line-height: 1;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.red-social-btn:hover::before {
    opacity: 1;
}

.red-social-btn:hover i {
    color: white;
}

.red-social-btn:hover {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: 0 12px 30px rgba(139, 197, 63, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.tarjeta-footer-white {
    background: #f5f5f5;
    padding: 25px 30px;
    text-align: center;
    color: #999;
    font-size: 16px;
    font-weight: 400;
    margin-top: auto;
    flex: 0 0 auto;
    border-top: none;
}

.tarjeta-footer-white a {
    color: #999 !important;
    text-decoration: none !important;
    word-break: break-all;
    transition: none;
}

.tarjeta-footer-white a:visited {
    color: #999 !important;
}

.tarjeta-footer-white a:hover {
    color: #666 !important;
}

.website-verde {
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.website-verde a {
    color: white !important;
    text-decoration: none !important;
    font-size: 22px;
    font-weight: 500;
    display: inline-block;
}

.website-verde a:visited {
    color: white !important;
}

.website-verde a:hover {
    color: white !important;
    text-decoration: underline !important;
}

#qr-container {
    margin-top: 35px;
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 15px;
}

#qr-container h3 {
    color: #333;
    border: none;
    margin-bottom: 20px;
}

#qr-canvas {
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.qr-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    background: white;
    padding: 25px;
    border-radius: 30px;
    border: 8px solid #8BC53F;
    box-shadow: 0 10px 40px rgba(139, 197, 63, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.qr-image {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Alinear correctamente los contenedores de preview y listas en PDF */
#qr-pdf-container,
#descargas-pdf-container {
    max-width: 680px;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* Botones compactos del historial (Abrir / Reemplazar / Borrar) */
.mini-btn {
    border: none;
    border-radius: 9999px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform .1s ease, box-shadow .2s ease;
}
.mini-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.qr-logo-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-nombre-badge {
    background: linear-gradient(135deg, #8BC53F 0%, #6a9c2f 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    margin-top: -20px;
    box-shadow: 0 6px 20px rgba(139, 197, 63, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.qr-nombre-badge i {
    font-size: 24px;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 15px;
    }
    
    .tarjeta {
        max-width: 600px;
    }
    
    .editor-section, .preview-section {
        padding: 30px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        padding: 20px 10px;
        gap: 20px;
    }
    
    .editor-section, .preview-section {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 16px;
        padding: 14px 16px;
        gap: 10px;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .tarjeta {
        min-height: 500px;
    }
    
    .tarjeta-header-green {
        padding: 15px 20px;
    }
    
    .tarjeta-nombre-section {
        padding: 30px 20px;
    }
    
    .tarjeta-contacto-section {
        padding: 25px 20px;
    }
    
    #preview-nombre {
        font-size: 22px;
    }
    
    #preview-puesto {
        font-size: 18px;
    }
    
    .contacto-item {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .contacto-item i {
        width: 38px;
        height: 38px;
        font-size: 17px;
        margin-right: 12px;
    }
    
    .red-social-btn {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }
    
    button {
        padding: 14px 24px;
        font-size: 15px;
        margin-right: 8px;
        margin-top: 15px;
    }
    
    input[type="text"],
    input[type="url"],
    input[type="email"],
    textarea {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 8px;
    }
    
    .editor-section, .preview-section {
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    h3 {
        font-size: 15px;
        padding: 12px 14px;
        gap: 8px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .tarjeta {
        min-height: 450px;
        border-radius: 16px;
    }
    
    .tarjeta-header-green {
        padding: 12px 15px;
    }
    
    .tarjeta-nombre-section {
        padding: 25px 15px;
    }
    
    .tarjeta-contacto-section {
        padding: 20px 15px;
    }
    
    #preview-nombre {
        font-size: 20px;
    }
    
    #preview-puesto {
        font-size: 16px;
    }
    
    .contacto-item {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .contacto-item i {
        width: 34px;
        height: 34px;
        font-size: 15px;
        margin-right: 10px;
    }
    
    .red-social-btn {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    
    button {
        padding: 12px 20px;
        font-size: 14px;
        margin-right: 6px;
        margin-top: 12px;
        border-radius: 10px;
    }
    
    input[type="text"],
    input[type="url"],
    input[type="email"],
    textarea {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .button-container {
        padding: 15px 0;
    }
    
    .contacto-item-doble {
        flex-direction: column;
        gap: 10px;
    }
    
    .contacto-subitem {
        margin-bottom: 0;
    }
}

#qr-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}
