/* ===============================
   WAZNIU UI - ESTILO GLOBAL
   =============================== */

/* Base */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Contenedores */
.wz-container {
    max-width: 1100px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.wz-container-sm {
    max-width: 750px;
    margin: 40px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Títulos */
h1, h2, h3 {
    margin-top: 0;
    font-weight: bold;
    color: #188bf6;
}

h1 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    border-left: 6px solid #37ca37;
    padding-left: 10px;
    margin-top: 35px;
}

h3 {
    font-size: 20px;
}

/* Texto auxiliar */
.wz-text-center { text-align: center; }
.wz-text-muted { color: #666; }

/* Tarjetas */
.wz-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e2e2;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.wz-card-gray {
    background: #f8f8f8;
    border-radius: 14px;
    border: 1px solid #dedede;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.wz-card-header {
    font-size: 14px;
    font-weight: bold;
    color: #37ca37;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.wz-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #188bf6;
    margin-bottom: 8px;
}

.wz-card-text {
    font-size: 15px;
    color: #444;
}

/* Anuncios (slots) */
.ad-box {
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ad-title {
    font-size: 18px;
    font-weight: bold;
    color: #188bf6;
}

.ad-description {
    margin: 8px 0 12px;
    font-size: 15px;
    color: #444;
}

/* Botones */
.wz-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.wz-btn-primary {
    background: #188bf6;
    color: white;
}

.wz-btn-primary:hover {
    background: #0f6dc4;
}

.wz-btn-success {
    background: #37ca37;
    color: white;
}

.wz-btn-success:hover {
    background: #2dac2d;
}

.wz-btn-full {
    width: 100%;
}

/* Botones específicos existentes */
.btn-visit {
    composes: wz-btn wz-btn-success;
}

/* Si tu entorno no soporta composes, solo copia las reglas: */
.btn-visit {
    display: inline-block;
    padding: 10px 18px;
    background: #37ca37;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
.btn-visit:hover {
    background: #2dac2d;
}

.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: #188bf6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}
.btn-submit:hover {
    background: #0f6dc4;
}

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

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Grupo de códigos */
.code-group {
    margin-bottom: 18px;
}

.code-label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.code-input {
    width: 100%;
    max-width: 260px;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #bfbfbf;
    background: #ffffff;
}

/* Mensajes */
.message-error {
    padding: 12px;
    background: #ffe5e5;
    border-left: 4px solid #d80000;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #b10000;
    font-size: 16px;
}

.message-success {
    padding: 12px;
    background: #e6ffe8;
    border-left: 4px solid #1ea22e;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #1a7e25;
    font-size: 16px;
}

/* Timer / avisos */
.timer-box {
    background: #eaf4ff;
    padding: 15px;
    border-radius: 10px;
    max-width: 350px;
    margin: 20px auto;
    font-size: 18px;
    font-weight: bold;
    border-left: 5px solid #188bf6;
    text-align: center;
}

/* Iframe genérico */
.wz-iframe {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 25px;
}

/* ======= RESPONSIVE GLOBAL ======= */

@media (max-width: 900px) {
    .wz-container,
    .wz-container-sm {
        width: 90%;
        margin: 20px auto;
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .timer-box {
        max-width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .wz-iframe {
        height: 320px;
    }

    .btn-submit,
    .wz-btn-full {
        font-size: 17px;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0;
    }

    .wz-container,
    .wz-container-sm {
        width: 92%;
        padding: 18px;
    }

    h1 {
        font-size: 22px;
    }

    .ad-title {
        font-size: 17px;
    }

    .wz-iframe {
        height: 260px;
    }
}

@media (max-width: 420px) {
    .wz-container,
    .wz-container-sm {
        width: 94%;
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    .wz-iframe {
        height: 220px;
    }

    .btn-submit {
        font-size: 16px;
        padding: 12px;
    }
}

/* ============================
   HEADER WAZNIU MEJORADO
   ============================ */

.wz-header {
    width: 100%;
    background: #ffffff;
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.wz-header-logo img {
    max-width: 100%;
    max-height: 70px;
    height: auto;
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .wz-header-logo img {
        max-height: 50px;
    }
}

/* ===================================
   AJUSTAR LOGO AL MISMO ANCHO QUE LA TARJETA
   =================================== */

.wz-header {
    width: 100%;
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.wz-header-inner {
    max-width: 900px; /* MISMO ANCHO QUE wz-container */
    margin: auto;
    text-align: center;
}

.wz-header-inner img {
    width: 100%;        /* que ocupe todo el ancho disponible */
    height: auto;
    max-height: 140px;  /* evita que sea demasiado grande */
    object-fit: contain;
}

/* En móvil */
@media (max-width: 600px) {
    .wz-header-inner img {
        max-height: 90px; /* que no tape mucho espacio */
    }
}

/* LOGO RESPONSIVO */
.wz-header-inner {
    text-align: center;
}

.wz-logo {
    width: 100%;      /* Ocupa todo el ancho disponible */
    height: auto;     /* Mantiene proporciones */
    max-width: 900px; /* Igual que el container principal */
    display: block;
    margin: 0 auto;
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .wz-logo {
        max-width: 100%;   /* Que no salga del container */
        max-height: 130px; /* Controla altura para que no invada mucho */
    }
}

/* Caja que controla el tamaño exacto del logo */
.wz-logo-box {
    width: 100%;
    max-width: 900px;   /* MISMO ANCHO QUE wz-container */
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Imagen responsiva uniforme entre navegadores */
.wz-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Ajuste Safari */
@supports (-webkit-touch-callout: none) {
    .wz-logo {
        max-width: 100%;
        object-fit: contain;
    }
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .wz-logo-box {
        max-width: 100%;
    }
    .wz-logo {
        max-height: 130px; /* evita que crezca demasiado verticalmente */
    }
}

.actions {
    display: flex;
    gap: 8px;
}

.wz-btn-small {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.wz-btn-primary {
    background: #188bf6;
}

.wz-btn-primary:hover {
    background: #0f6dc4;
}

.wz-btn-danger {
    background: #d9534f;
}

.wz-btn-danger:hover {
    background: #b52b27;
}

.ad-box {
    margin-bottom: 25px; /* separa cada anuncio entre sí */
}

.btn-visit {
    margin-top: 12px;
    margin-bottom: 18px; /* Aumenta el espacio antes del label */
    display: inline-block;
}

.code-group {
    margin-top: 10px; /* Opcional */
}

.code-label {
    display: block;
    margin-bottom: 6px;
}

.ssv-header {
    padding: 8px 0;
}

.ssv-logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
}
