/* ==========================================================================
   YECT SHOP - capa de componentes propios
   Se carga después del tema original. Solo agrega piezas nuevas; no reemplaza
   los estilos del diseño original.
   ========================================================================== */

:root {
    --yect-blue: #0b60a9;
    --yect-blue-dark: #08487e;
    --yect-green: #25d366;
    --yect-ink: #313131;
    --yect-muted: #686d7a;
    --yect-line: #e3e7ee;
    --yect-bg: #f4f7fb;
}

/* --------------------------------------------------------------------------
   Botón flotante de WhatsApp
   -------------------------------------------------------------------------- */
.yect-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px 12px 14px;
    border-radius: 50px;
    background: var(--yect-green);
    color: #fff !important;
    font-family: Lato, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.yect-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex: 0 0 auto;
}
.yect-whatsapp:hover {
    background: #1ebe5b;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.yect-whatsapp--right-bottom { right: 22px; bottom: 22px; left: auto; top: auto; }
.yect-whatsapp--left-bottom { left: 22px; bottom: 22px; right: auto; top: auto; }
.yect-whatsapp--right-top { right: 22px; top: 22px; left: auto; bottom: auto; }
.yect-whatsapp--left-top { left: 22px; top: 22px; right: auto; bottom: auto; }
@media (max-width: 640px) {
    .yect-whatsapp {
        right: 14px;
        bottom: 14px;
        padding: 12px;
        border-radius: 50%;
    }
    .yect-whatsapp--left-bottom { left: 14px; right: auto; bottom: 14px; top: auto; }
    .yect-whatsapp--right-top { right: 14px; left: auto; top: 14px; bottom: auto; }
    .yect-whatsapp--left-top { left: 14px; right: auto; top: 14px; bottom: auto; }
    .yect-whatsapp span { display: none; }
}

/* --------------------------------------------------------------------------
   Avisos y páginas de estado
   -------------------------------------------------------------------------- */
.yect-notice {
    max-width: 880px;
    margin: 70px auto;
    padding: 44px 48px;
    background: #fff;
    border: 1px solid var(--yect-line);
    border-radius: 10px;
    box-shadow: 0 16px 50px rgba(8, 72, 126, .08);
    color: var(--yect-ink);
    font-family: Lato, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}
.yect-notice h1,
.yect-notice h2 {
    margin: 0 0 14px;
    color: var(--yect-blue-dark);
    font-family: Raleway, Arial, sans-serif;
    font-weight: 800;
    line-height: 1.2;
}
.yect-notice h1 { font-size: 34px; }
.yect-notice h2 { font-size: 26px; }
.yect-notice p { margin: 0 0 14px; }
.yect-notice .boton_export,
.yect-notice .yect-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 13px 26px;
    border: 0;
    border-radius: 3px;
    background: var(--yect-blue);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .18s ease;
}
.yect-notice .boton_export:hover,
.yect-notice .yect-btn:hover { background: var(--yect-blue-dark); }

/* Resultado del registro (página de bienvenida) */
.yect-registro-mensaje {
    margin: 20px 0 8px;
    padding: 22px 24px;
    border: 1px solid var(--yect-line);
    border-radius: 6px;
    background: #f5f9fd;
}
.yect-registro-mensaje p { margin: 0 0 12px; }
.yect-registro-mensaje p:last-child { margin-bottom: 0; }
.yect-registro-mensaje.is-success {
    background: #e8f7ee;
    border-color: #b7e4c7;
    color: #17633a;
}
.yect-registro-mensaje.is-error {
    background: #fdecec;
    border-color: #f5c2c2;
    color: #8a1f1f;
}
.yect-registro-mensaje a { color: inherit; font-weight: 700; }
.yect-registro-mensaje strong { font-size: 1.15em; }
.yect-registro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.yect-registro-actions .yect-btn { margin-top: 0; }
.yect-notice .yect-btn-secondary {
    background: #eaf3fb;
    border: 1px solid #b9d7ef;
    color: var(--yect-blue-dark) !important;
}
.yect-notice .yect-btn-secondary:hover { background: #d7e9f8; }

/* Menú principal visible en la página de resultado del registro */
.yect-registro-nav {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--yect-line);
}
.yect-registro-nav h3 {
    margin: 0 0 12px;
    color: var(--yect-blue-dark);
    font-family: Raleway, Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
}
.yect-registro-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.yect-registro-nav a {
    color: var(--yect-blue);
    font-weight: 700;
    text-decoration: none;
}
.yect-registro-nav a:hover {
    color: var(--yect-blue-dark);
    text-decoration: underline;
}

.yect-muted { color: var(--yect-muted); }

/* Mapa de navegación de desarrollo */
.yect-page-map {
    margin: 0;
    padding: 40px 0;
    background: var(--yect-bg);
}
.yect-page-map .yect-notice { margin-top: 0; }
.yect-map {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.yect-map li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--yect-line);
}
.yect-map li:last-child { border-bottom: 0; }
.yect-map a { color: var(--yect-blue); font-weight: 700; text-decoration: none; }
.yect-map a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Formularios conectados por JSON
   -------------------------------------------------------------------------- */
.yect-form-message {
    display: none;
    margin: 18px 0;
    padding: 14px 18px;
    border-radius: 4px;
    font-family: Lato, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
.yect-form-message.is-visible { display: block; }
.yect-form-message.is-success {
    background: #e8f7ee;
    border: 1px solid #b7e4c7;
    color: #17633a;
}
.yect-form-message.is-error {
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #8a1f1f;
}
.yect-form-message.is-info {
    background: #eaf3fb;
    border: 1px solid #b9d7ef;
    color: #08487e;
}
.yect-ajax-form.is-loading { opacity: .72; pointer-events: none; }
.yect-ajax-form.is-loading button,
.yect-ajax-form.is-loading input[type="submit"] { cursor: progress; }

/* --------------------------------------------------------------------------
   Widget de tracking
   -------------------------------------------------------------------------- */
.yect-tracking-app {
    max-width: 860px;
    margin: 34px auto;
    padding: 0;
    background: #fff;
    border: 1px solid var(--yect-line);
    border-radius: 10px;
    box-shadow: 0 16px 50px rgba(8, 72, 126, .08);
    overflow: hidden;
    font-family: Lato, Arial, sans-serif;
    color: var(--yect-ink);
}
.yect-tabs {
    display: flex;
    gap: 0;
    background: var(--yect-blue-dark);
}
.yect-tab {
    flex: 1 1 auto;
    padding: 16px 20px;
    border: 0;
    background: transparent;
    color: #dbe8f5;
    font-family: Raleway, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.yect-tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.yect-tab.active { background: var(--yect-blue); color: #fff; }
.yect-tab-panel { display: none; padding: 30px 32px 34px; }
.yect-tab-panel.active { display: block; }
.yect-tab-panel h3 {
    margin: 0 0 8px;
    color: var(--yect-blue-dark);
    font-family: Raleway, Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
}
.yect-tracking-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 8px;
}
.yect-tracking-form input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #ccd5e1;
    border-radius: 3px;
    background: #fff;
    color: var(--yect-ink);
    font-family: Lato, Arial, sans-serif;
    font-size: 15px;
}
.yect-tracking-form input:focus {
    outline: 0;
    border-color: var(--yect-blue);
    box-shadow: 0 0 0 3px rgba(11, 96, 169, .14);
}
.yect-tracking-form button {
    flex: 0 0 auto;
    padding: 13px 28px;
    border: 0;
    border-radius: 3px;
    background: var(--yect-blue);
    color: #fff;
    font-family: Lato, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease;
}
.yect-tracking-form button:hover { background: var(--yect-blue-dark); }
.yect-tracking-results { margin-top: 18px; }
.yect-tracking-results:empty { display: none; }
.yect-tracking-card {
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid var(--yect-line);
    border-left: 4px solid var(--yect-blue);
    border-radius: 4px;
    background: #fbfdff;
}
.yect-tracking-card h4 {
    margin: 0 0 8px;
    color: var(--yect-blue-dark);
    font-family: Raleway, Arial, sans-serif;
    font-size: 17px;
}
.yect-tracking-card ul { margin: 10px 0 0; padding-left: 20px; }
.yect-tracking-card li { margin-bottom: 7px; line-height: 1.55; }
.yect-tracking-card.is-degraded {
    border-left-color: #b7791f;
    background: #fffaf0;
}
.yect-tracking-card.is-degraded .yect-tracking-status {
    background: #fdf1d8;
    color: #7a4a0d;
}
.yect-tracking-image { margin: 12px 0; text-align: center; }
.yect-tracking-image img {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(8, 72, 126, .12);
}
.yect-native-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd5e1;
    border-radius: 3px;
    background: #fff;
    color: var(--yect-ink);
    font-family: Lato, Arial, sans-serif;
    font-size: 15px;
}
.yect-loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 2px solid rgba(11, 96, 169, .25);
    border-top-color: var(--yect-blue);
    border-radius: 50%;
    animation: yect-spin .7s linear infinite;
    vertical-align: -3px;
}
@keyframes yect-spin { to { transform: rotate(360deg); } }

/* Campos trampa: invisibles para personas, presentes para bots. */
.yect-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.yect-hp input {
    width: 1px !important;
    height: 1px !important;
    border: 0 !important;
    padding: 0 !important;
}

@media (max-width: 640px) {
    .yect-notice { margin: 30px 16px; padding: 28px 22px; }
    .yect-notice h1 { font-size: 27px; }
    .yect-tab-panel { padding: 24px 20px 28px; }
    .yect-tracking-form button { flex: 1 1 100%; }
}
