/* =========================================================
   MIRAAQUI.LINK - HERRAMIENTAS GRATUITAS (TOOLS SUITE)
   Diseño Premium, Minimalista y Altamente Funcional
   ========================================================= */

/* Variables locales y extensiones de diseño */
:root {
    --wa-green: #25D366;
    --wa-dark-green: #075E54;
    --wa-teal: #128C7E;
    --wa-light: #dcf8c6;
    --wa-bg: #ece5dd;
    --wa-chat-bg: #efeae2;
    --tools-primary: #1a1a1a;
    --tools-card-bg: #ffffff;
    --tools-card-border: rgba(0, 0, 0, 0.08);
    --tools-badge-bg: rgba(37, 211, 102, 0.12);
    --tools-badge-color: #0b8039;
    --tools-glow: 0 20px 45px -10px rgba(0, 0, 0, 0.07);
    --tools-glow-green: 0 16px 35px -8px rgba(37, 211, 102, 0.28);
}

/* Layout general de Tools */
.tools-page {
    background-color: #faf9f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Breadcrumbs */
.tools-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    padding: 1.5rem 0 0.5rem;
}
.tools-breadcrumbs a {
    color: var(--clr-text-muted);
    transition: color 0.2s ease;
}
.tools-breadcrumbs a:hover {
    color: var(--clr-text-primary);
}
.tools-breadcrumbs .separator {
    opacity: 0.4;
    font-size: 0.75rem;
}
.tools-breadcrumbs .current {
    color: var(--clr-text-primary);
    font-weight: 600;
}

/* Header del Generador / Herramienta */
.tool-hero {
    padding: 2rem 0 3rem;
    text-align: center;
}
.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--tools-badge-bg);
    color: var(--tools-badge-color);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
}
.tool-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--clr-text-primary);
    margin-bottom: 1rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.tool-hero p {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Principal de Trabajo (Configurador + Preview) */
.tool-workspace {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 4.5rem;
}

/* Tarjeta del Configurador */
.tool-builder-card {
    background: #ffffff;
    border: 1px solid var(--tools-card-border);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--tools-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-text-primary);
    margin-bottom: 0.35rem;
}
.tool-section-subtitle {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.75rem;
}

/* Inputs de Teléfono y País */
.phone-input-group {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem;
}

.country-select-wrapper {
    position: relative;
}
.country-select-wrapper select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--clr-border);
    background: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text-primary);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236e6d6a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.25rem;
}
.country-select-wrapper select:focus {
    outline: none;
    border-color: var(--wa-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.phone-number-wrapper {
    position: relative;
}
.phone-number-wrapper input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1.5px solid var(--clr-border);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--clr-text-primary);
    transition: var(--transition);
}
.phone-number-wrapper input:focus {
    outline: none;
    border-color: var(--wa-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}
.phone-hint {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Textarea de Mensaje */
.message-textarea-wrapper {
    position: relative;
    margin-top: 0.5rem;
}
.message-textarea-wrapper textarea {
    width: 100%;
    min-height: 125px;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1.5px solid var(--clr-border);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--clr-text-primary);
    resize: vertical;
    transition: var(--transition);
}
.message-textarea-wrapper textarea:focus {
    outline: none;
    border-color: var(--wa-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}
.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}
.char-count.limit {
    color: var(--clr-error);
    font-weight: 700;
}

/* Barra de Emojis Rápidos */
.emoji-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}
.emoji-btn {
    background: #f4f3ef;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    line-height: 1;
}
.emoji-btn:hover {
    background: #ebe9e3;
    transform: scale(1.15);
}

/* Plantillas de Mensaje Rápido */
.template-chips-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--clr-border);
}
.template-chips-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.template-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.template-chip {
    background: #f7f6f2;
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.template-chip:hover {
    background: var(--wa-green);
    color: #ffffff;
    border-color: var(--wa-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* Columna Derecha: Vista Previa y Resultados */
.tool-preview-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 90px;
}

/* Mockup de Teléfono WhatsApp */
.phone-chat-frame {
    background: #111b21;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2), 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 4px solid #2a2f32;
    overflow: hidden;
}

.phone-screen-inner {
    background: var(--wa-chat-bg);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Barra de Estado del Móvil */
.phone-statusbar {
    background: #005d4b;
    color: #fff;
    padding: 8px 16px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Cabecera del Chat WhatsApp */
.chat-header {
    background: #008069;
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}
.chat-back-arrow {
    font-size: 1.1rem;
    opacity: 0.9;
}
.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #128C7E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.chat-info {
    flex: 1;
    min-width: 0;
}
.chat-title {
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.chat-status {
    font-size: 0.72rem;
    opacity: 0.85;
}
.chat-actions {
    display: flex;
    gap: 12px;
    font-size: 1rem;
    opacity: 0.9;
}

/* Cuerpo del Chat con Fondo Patrón WhatsApp */
.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
    background-color: #efeae2;
    background-image: radial-gradient(#d3c6b8 1px, transparent 1px), radial-gradient(#d3c6b8 1px, #efeae2 1px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

/* Burbuja de Mensaje Simulado */
.chat-bubble-date {
    align-self: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #54656f;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.chat-bubble {
    align-self: flex-end;
    background: #d9fdd3;
    padding: 8px 12px 6px 12px;
    border-radius: 12px 0 12px 12px;
    max-width: 85%;
    min-width: 90px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    position: relative;
    word-break: break-word;
    animation: bubblePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bubblePop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.chat-bubble-text {
    font-size: 0.9rem;
    color: #111b21;
    line-height: 1.4;
    white-space: pre-wrap;
}
.chat-bubble-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.68rem;
    color: #667781;
    margin-top: 4px;
    text-align: right;
}
.chat-double-tick {
    color: #53bdeb;
    font-weight: bold;
    display: inline-block;
}

/* Barra Inferior del Chat */
.chat-footer {
    background: #f0f2f5;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.chat-input-fake {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    color: #8696a0;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #00a884;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Tarjeta de Salida y Acciones */
.tool-output-card {
    background: #ffffff;
    border: 1px solid var(--tools-card-border);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--tools-glow);
}
.tool-output-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.generated-link-box {
    display: flex;
    align-items: center;
    background: #f7f6f2;
    border: 1.5px solid var(--clr-border);
    border-radius: 12px;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
}
.generated-link-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--clr-text-primary);
    font-family: monospace;
    font-weight: 600;
}
.generated-link-box input:focus {
    outline: none;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-wa-copy {
    background: var(--tools-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-wa-copy:hover {
    background: #000;
    transform: translateY(-1px);
}
.btn-wa-copy.copied {
    background: var(--wa-green) !important;
    color: #fff !important;
}

.btn-wa-test {
    background: #e8faf0;
    color: #0b8039;
    border: 1.5px solid rgba(37, 211, 102, 0.4);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}
.btn-wa-test:hover {
    background: var(--wa-green);
    color: #fff;
    border-color: var(--wa-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-wa-qr {
    grid-column: span 2;
    background: #ffffff;
    color: var(--clr-text-primary);
    border: 1.5px solid var(--clr-border);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-wa-qr:hover {
    background: #f7f6f2;
    border-color: var(--clr-text-primary);
}

/* Panel Desplegable de Código QR */
.qr-preview-panel {
    display: none;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--clr-border);
    text-align: center;
    animation: fadeIn 0.3s ease;
}
.qr-preview-panel.active {
    display: block;
}
.qr-canvas-wrapper {
    background: #fff;
    padding: 14px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--clr-border);
    margin-bottom: 0.85rem;
}
.btn-download-qr {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--tools-primary);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-download-qr:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Banner de Conversión MiraAquí */
.tool-miraaqui-cta {
    margin-top: 1rem;
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}
.tool-miraaqui-cta::after {
    content: "✨";
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 2rem;
    opacity: 0.15;
}
.tool-miraaqui-cta h4 {
    font-size: 0.95rem;
    font-weight: 700;
}
.tool-miraaqui-cta p {
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.4;
}
.tool-miraaqui-cta a {
    align-self: flex-start;
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    margin-top: 0.4rem;
    transition: var(--transition);
}
.tool-miraaqui-cta a:hover {
    background: var(--wa-green);
    color: #fff;
    transform: translateY(-1px);
}

/* Sección de Contenido SEO / Cómo funciona / FAQ */
.tool-seo-section {
    padding: 4rem 0;
    border-top: 1px solid var(--clr-border);
}

.tool-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0 4rem;
}
.tool-step-card {
    background: #fff;
    border: 1px solid var(--tools-card-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    position: relative;
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--tools-badge-bg);
    color: var(--tools-badge-color);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.tool-step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.tool-step-card p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

/* Suite de Otras Herramientas Disponibles (Hub) */
.tools-hub-section {
    padding: 4rem 0;
    background: #ffffff;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}
.tools-hub-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}
.tools-hub-header h2 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.tools-hub-header p {
    font-size: 1rem;
    color: var(--clr-text-muted);
}

.tools-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.tool-link-card {
    background: #faf9f6;
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.tool-link-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    border-color: #d1ceca;
}
.tool-link-card.active-tool {
    border-color: var(--wa-green);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.1);
}
.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.tool-link-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tool-status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-available {
    background: #e8faf0;
    color: #0b8039;
}
.badge-soon {
    background: #f0f0ee;
    color: #706f6b;
}
.tool-link-card p {
    font-size: 0.88rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

/* FAQ Accordion */
.faq-section {
    padding: 4rem 0;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-container h2 {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    user-select: none;
}
.faq-icon {
    font-size: 1.25rem;
    transition: transform 0.25s ease;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--clr-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    display: none;
}
.faq-item.open .faq-answer {
    display: block;
}

/* Responsive */
@media (max-width: 960px) {
    .tool-workspace {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .tool-preview-column {
        position: static;
    }
    .tool-hero h1 {
        font-size: 2.2rem;
    }
    .tool-steps-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .phone-input-group {
        grid-template-columns: 1fr;
    }
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
    .btn-wa-qr {
        grid-column: span 1;
    }
    .tool-hero h1 {
        font-size: 1.85rem;
    }
}

/* Publicidad Adsterra Native Banner en Herramientas */
.tool-adsterra-native-banner {
    margin: 1.5rem auto 0;
    max-width: 900px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}
.tool-adsterra-native-banner iframe {
    max-width: 100%;
    border: none;
}

/* Banner Sticky Inferior Flotante de Adsterra */
.adsterra-sticky-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideUpSticky 0.4s ease-out;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.adsterra-sticky-footer-bar.hide {
    transform: translateY(100%);
    opacity: 0;
}
@keyframes slideUpSticky {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.sticky-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    width: 100%;
    min-height: 50px;
    overflow: hidden;
}
.sticky-ad-content iframe {
    max-width: 100%;
    border: none;
}
.btn-close-sticky {
    position: absolute;
    top: 6px;
    right: 14px;
    width: 24px;
    height: 24px;
    background: #e2e0db;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.btn-close-sticky:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: scale(1.1);
}
.sticky-smartlink-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #111b21 0%, #1f2c34 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    max-width: 100%;
}
.sticky-smartlink-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.sticky-badge {
    background: var(--wa-green);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sticky-cta {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

/* Publicidad Pre-Footer en Tools */
.tools-adsterra-prefooter {
    padding: 2rem 0 3rem;
    text-align: center;
    border-top: 1px dashed var(--clr-border);
}
.adsterra-prefooter-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
.adsterra-tag-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-muted);
    background: rgba(0,0,0,0.04);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

/* =========================================================
   BARRA SELECTORA DE HERRAMIENTAS (TOOL SWITCHER BAR)
   ========================================================= */
.tools-nav-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 2rem;
    padding: 0.4rem;
    background: #ffffff;
    border: 1px solid var(--clr-border);
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    max-width: fit-content;
    overflow-x: auto;
}
.tool-switcher-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tool-switcher-tab:hover {
    color: var(--clr-text-primary);
    background: rgba(0,0,0,0.03);
}
.tool-switcher-tab.active {
    background: var(--tools-primary);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.tool-switcher-tab .tab-badge-new {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* =========================================================
   HERRAMIENTA: ENLACES DIRECTOS A APPS (DEEP LINKS)
   ========================================================= */
.platform-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.platform-btn {
    background: #f7f6f2;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}
.platform-btn:hover {
    background: #ffffff;
    border-color: #d1ceca;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
.platform-btn.active {
    background: #ffffff;
    border-color: var(--tools-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.platform-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}
.platform-btn:hover .platform-icon-circle {
    transform: scale(1.1);
}
.platform-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--clr-text-primary);
}
.platform-tag {
    font-size: 0.68rem;
    color: var(--clr-text-muted);
    font-weight: 600;
}
.platform-btn.active .platform-tag {
    color: var(--tools-primary);
}

/* Estilos de Previsualización para Apps */
.app-live-preview-box {
    background: #ffffff;
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 45px -10px rgba(0,0,0,0.06);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Tarjeta Preview YouTube */
.preview-yt-card {
    background: #0f0f0f;
    color: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.preview-yt-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #cc0000;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.2);
}
.preview-yt-btn {
    background: #cc0000;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.4);
}
.preview-yt-sub-modal {
    background: rgba(255,255,255,0.08);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: #ddd;
}

/* Tarjeta Preview Telegram */
.preview-tg-card {
    background: linear-gradient(135deg, #229ED9 0%, #1789c4 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(34, 158, 217, 0.3);
}
.preview-tg-btn {
    background: #ffffff;
    color: #229ED9;
    padding: 0.65rem 1.75rem;
    border-radius: 24px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Tarjeta Preview Instagram */
.preview-ig-card {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.3);
}
.preview-ig-btn {
    background: #ffffff;
    color: #dc2743;
    padding: 0.65rem 1.75rem;
    border-radius: 24px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Tarjeta Preview Teléfono */
.preview-tel-card {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}
.preview-tel-btn {
    background: #ffffff;
    color: #059669;
    padding: 0.65rem 1.75rem;
    border-radius: 24px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Tarjeta Preview Email */
.preview-mail-card {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}
.preview-mail-btn {
    background: #ffffff;
    color: #1D4ED8;
    padding: 0.65rem 1.75rem;
    border-radius: 24px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Tarjeta Preview Maps */
.preview-maps-card {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}
.preview-maps-btn {
    background: #ffffff;
    color: #D97706;
    padding: 0.65rem 1.75rem;
    border-radius: 24px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .platform-selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

