body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    padding-top: 2rem;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.banner {
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.banner svg {
    width: 100%;
    height: 100%;
}

h1 {
    text-align: center;
    color: #136BA8;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
select {
    padding: 0.7rem;
    border: 2px solid #00A5B3;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #136BA8;
}

button {
    background-color: #E15F3A;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-size: 1rem;
    font-weight: bold;
}

button:hover {
    background-color: #d54e2a;
}

button:active {
    transform: scale(0.98);
}

/* Nota de consentimiento para suscripción */
.consent-note {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #555;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding: 0 0.5rem;
}

#qrcode {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

#qrcode canvas {
    max-width: 100%;
    height: auto !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.phone-input,
.web-input {
    display: flex;
    gap: 0.5rem;
}

#country-code {
    flex: 0 0 auto;
    width: 120px;
}

#telefono,
#web {
    flex: 1;
}

#web-protocol {
    flex: 0 0 auto;
    width: 100px;
}

.flag-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag-option .flag {
    font-size: 1.2rem;
}

.error {
    color: #E15F3A;
    font-size: 0.9rem;
    margin-top: -0.5rem;
}

/* Estilos para opciones de diseño (Colores y Logo) */
.style-options {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.color-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.color-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#color-picker,
#bg-color-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: 2px solid #005696;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

#color-picker::-webkit-color-swatch-wrapper,
#bg-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

#color-picker::-webkit-color-swatch,
#bg-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

#color-hex,
#bg-color-hex {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.4rem;
}

.color-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

/* Estilos para Logo */
.logo-options {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #136BA8;
}

.logo-upload-wrapper {
    margin-top: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#logo-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-button {
    background-color: #e15f3a;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.logo-upload-wrapper:hover .file-button {
    background-color: #d54e2a;
}

.file-name {
    border: 1px solid #00a5b3;
    color: #005696;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.hidden {
    display: none !important;
}

.custom-select {
    position: relative;
    display: inline-block;
    width: 120px;
}

.custom-select select {
    display: none;
}

.select-selected {
    background-color: white;
    border: 2px solid #00A5B3;
    border-radius: 8px;
    padding: 0.7rem;
    cursor: pointer;
    user-select: none;
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #00A5B3 transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #00A5B3 transparent;
    top: 7px;
}

.select-items {
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #00A5B3;
    border-radius: 0 0 8px 8px;
}

.select-hide {
    display: none;
}

.select-items div {
    padding: 10px;
    cursor: pointer;
    user-select: none;
}

.select-items div:hover,
.same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

#download-qr {
    margin-top: 1rem;
    background-color: #136BA8;
    width: 100%;
}

#download-qr:hover {
    background-color: #0f5a8a;
}


/* Style para el Pop Up */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
}

.popup-content a {
    color: #E15F3A;
    text-decoration: none;
    font-weight: bold;
}

.popup-content a:hover {
    color: #136BA8;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* ============================================ */
/* ESTILOS PARA LA SECCIÓN INFORMATIVA */
/* ============================================ */

.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #005696, transparent);
    margin: 3rem 0 2rem 0;
}

.info-section {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 2rem 1.5rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-section h2 {
    color: #005696;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.info-section h3 {
    color: #efab0b;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.info-section p {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.info-section ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.info-section ol li {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.info-section ol li::marker {
    color: #e15f3a;
    font-weight: bold;
}


/* ============================================ */
/* ESTILOS PARA EL FOOTER */
/* ============================================ */

.footer {
    background-color: #005696;
    color: #ffffff;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    margin-top: auto;
    width: 100%;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    text-align: center;
}

.footer-brand p {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.footer-brand strong {
    color: #efab0b;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    padding-bottom: 3px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #efab0b;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #efab0b;
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    margin-top: 0.5rem;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}


/* ============================================ */
/* MEDIA QUERIES PARA RESPONSIVE */
/* ============================================ */

/* Tablets y móviles grandes (máx 768px) */
@media (max-width: 768px) {
    .info-section {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .info-section h2 {
        font-size: 1.5rem;
    }

    .info-section h3 {
        font-size: 1.2rem;
    }

    .info-section p,
    .info-section ol li {
        font-size: 0.95rem;
        text-align: left;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .footer-brand p {
        font-size: 1rem;
    }

    .consent-note {
        font-size: 0.75rem;
        padding: 0 0.25rem;
    }
}

/* Móviles pequeños (máx 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 1rem;
    }

    .section-divider {
        margin: 2rem 0 1.5rem 0;
    }

    .info-section {
        padding: 1rem;
        border-radius: 10px;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .info-section h2 {
        font-size: 1.3rem;
    }

    .info-section h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .info-section p,
    .info-section ol li {
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 1rem 1rem 1rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-copyright p {
        font-size: 0.8rem;
    }

    .consent-note {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    /* Ajuste para controles de color en móvil */
    .color-row {
        flex-direction: column;
        gap: 1rem;
    }
}