/* ===== BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.eyebrow {
    color: #d97706;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.link-btn,
.link-btn:hover {
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

.link-btn-green,
.link-btn-green:hover {
    background-color: #16a34a;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ===== TOPBAR + NAVBAR ===== */
.topbar {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar a,
.topbar a:hover {
    color: #334155;
    text-decoration: none;
}

.topbar a:hover { color: #00a8cc; }

.topbar i {
    color: #00a8cc;
    margin-right: 8px;
}

.topbar-sep {
    color: #94a3b8;
    margin: 0 14px;
}

.topbar-socials a { padding: 0 8px; font-size: 1rem; }
.topbar-socials i { margin: 0; }

.navbar {
    background-color: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar-logo {
    height: 64px;
    width: auto;
    border-radius: 16px;
    display: block;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 1.02rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover { color: #00a8cc !important; }

/* Inicio: navbar transparente sobre el carrusel; al bajar pasa a barra fija sólida (js/navbar.js) */
.navbar-overlay {
    position: absolute;
    top: auto; /* anula el top:0 del sticky: queda justo debajo de la topbar */
    left: 0;
    right: 0;
    background-color: transparent;
    box-shadow: none;
}

.navbar-overlay.navbar-fijo {
    position: fixed;
    top: 0;
    background-color: #1e293b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    padding: 6px 0;
}

.navbar-overlay.navbar-fijo .navbar-logo { height: 48px; }

@media (max-width: 991.98px) {
    .navbar-logo { height: 52px; }

    .navbar-overlay .navbar-collapse {
        background: rgba(15, 23, 42, 0.96);
        border-radius: 12px;
        margin-top: 10px;
        padding: 10px 16px;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    text-align: center;
}

.footer-cols {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h4 {
    color: #00a8cc;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-col p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
}

.footer-socials a,
.footer-socials a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #888;
}

/* ===== INICIO: CARRUSEL ===== */
.hero-slide {
    height: 480px;
    background-color: #0f172a;
}

.hero-slide img {
    height: 480px;
    object-fit: cover;
    opacity: 0.5;
}

.hero-slide .carousel-caption {
    top: 0;
    bottom: 0;
}

.hero-kicker {
    color: #f59e0b;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

h1.hero-title {
    font-size: 3rem;
}

/* ===== INICIO: SECCIONES ===== */
.section {
    padding: 80px 20px;
}

.section + .section {
    border-top: 1px solid #e2e8f0;
}

.section-light { background-color: #f8fafc; }
.section-gray  { background-color: #f1f5f9; }
.section-white { background-color: #ffffff; }

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-head h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-top: 5px;
    font-weight: 700;
}

.section-head p {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* Sobre nosotros */
.about h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: bold;
}

.about p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-extra { display: none; }
.about-extra.open { display: block; }

.about-img {
    max-height: 260px;
    object-fit: cover;
    width: 100%;
}

.btn-amber {
    background-color: #d97706;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
}

.check-list {
    list-style: none;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.8;
}

.check-list i {
    color: #16a34a;
    margin-right: 8px;
}

/* Servicios */
.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.service-icon {
    color: #0284c7;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Objetivos */
.goal-icon {
    color: #d97706;
    font-size: 1.4rem;
}

.goal h4 {
    font-size: 1rem;
    color: #0f172a;
    font-weight: bold;
    margin-bottom: 5px;
}

.goal p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Proyectos: carrusel de clientes */
.clientes-carousel {
    position: relative;
    padding: 0 15px;
}

.clientes-viewport {
    overflow: hidden;
}

.clientes-track {
    display: flex;
    align-items: stretch;
    will-change: transform;
    touch-action: pan-y;
}

.cliente-card {
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    box-sizing: border-box;
    padding: 0 10px;
}

@media (max-width: 991.98px) {
    .cliente-card { flex-basis: 50%; }
}

@media (max-width: 575.98px) {
    .cliente-card { flex-basis: 100%; }
}

.cliente-foto {
    height: 100%;
    min-height: 200px;
    box-sizing: border-box;
    padding: 8px;
    background-color: #d6d3d1;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-origin: content-box;
    background-clip: content-box;
}

.cliente-foto > .cliente-overlay {
    height: 100%;
    /* 200px (alto mínimo de .cliente-foto) menos el marco de 2×8px */
    min-height: 184px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

.cliente-overlay h4 {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.cliente-overlay p {
    color: #fff;
    font-size: 0.8rem;
    margin-bottom: 12px;
    flex-shrink: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cliente-badge {
    display: inline-block;
    background: #9ca3af;
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.clientes-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.clientes-flecha-prev { left: 0; }
.clientes-flecha-next { right: 0; }

@media (max-width: 575.98px) {
    /* En móvil las flechas flotantes tapaban la tarjeta: se sacan del viewport
       y quedan debajo, centradas. El viewport usa minmax(0,1fr) -- un 1fr solo
       hereda el ancho mínimo de su contenido (igual que min-width:auto en flex)
       y no se achica de verdad. */
    .clientes-carousel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "viewport viewport"
            "prev next";
        gap: 16px;
        padding: 0;
    }

    .clientes-viewport { grid-area: viewport; }

    .clientes-flecha-prev { grid-area: prev; justify-self: end; }
    .clientes-flecha-next { grid-area: next; justify-self: start; }

    .clientes-flecha {
        position: static;
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .cliente-overlay p {
        display: block;
        -webkit-line-clamp: unset;
    }

    /* .section (20px) + .container (20px) sumaban 40px por lado; se deja en 16px */
    #proyectos {
        padding-left: 16px;
        padding-right: 16px;
    }

    #proyectos > .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===== CONTACTO / MENSAJES ===== */
.page-main {
    padding: 40px 20px;
}

/* Panel de mensajes: más aire arriba para que la navbar sticky no tape el título ni los botones */
.panel-main {
    padding-top: 90px;
}

.page-main h1 {
    margin-bottom: 10px;
}

.page-lead {
    margin-bottom: 30px;
    color: #666;
}

.alert-box {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-exito { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-aviso { background-color: #fff3cd; color: #856404; border-color: #ffeeba; }
.alert-error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

.contact-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #00a8cc;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.campo-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.campo-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-top: 4px;
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
    border-color: #dc2626;
}

.form-login {
    max-width: 420px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info .contact-info-lead {
    margin-bottom: 20px;
    color: #555;
}

.contact-info i {
    color: #00a8cc;
}

.mensajes-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
}

.mensajes-table thead tr {
    background: #f4f4f4;
    text-align: left;
}

.mensajes-table th,
.mensajes-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.mensajes-table {
    min-width: 780px;
}

.mensajes-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

/* ID y fecha no se parten: con overflow-wrap:anywhere las columnas cortas se encogían a un carácter */
.mensajes-table td:nth-child(-n+2) {
    white-space: nowrap;
}

.tabla-scroll {
    overflow-x: auto;
}

.fila-nueva td {
    background: #fffbeb;
    font-weight: 600;
}

.mensajes-table summary {
    cursor: pointer;
}

.mensaje-completo {
    white-space: pre-wrap;
    margin-top: 8px;
    font-weight: normal;
}

.panel-cabecera {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.panel-cabecera h1 {
    margin-bottom: 0;
}

.panel-acciones {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-acciones form,
.acciones-fila form {
    margin: 0;
}

.panel-resumen {
    margin-bottom: 16px;
    color: #555;
}

.acciones-fila {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-mini,
.btn-mini:hover {
    display: inline-block;
    background: #00a8cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.btn-mini-gris,
.btn-mini-gris:hover { background: #64748b; }

.btn-mini-rojo,
.btn-mini-rojo:hover { background: #dc2626; }

.paginacion {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.paginacion a,
.paginacion span {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.paginacion .actual {
    background: #00a8cc;
    border-color: #00a8cc;
    color: #fff;
}

/* ===== PLANES (corporativas / ecommerce / landing-pages) ===== */
.planes {
    padding: 50px 20px;
}

.planes-head {
    text-align: center;
    margin-bottom: 40px;
}

.planes-head h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-top: 5px;
}

.eyebrow-gold {
    color: #c89d54;
    font-size: 0.9rem;
}

.planes-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.planes-img {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.planes-img img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.planes-cards {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.planes-cards-unica {
    justify-content: flex-start;
}

.plan-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #d08a3c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.4;
    padding: 3px 12px;
    border-radius: 999px;
}

.plan-card-destacado {
    border: 2px solid #00a8cc;
    box-shadow: 0 6px 16px rgba(0, 168, 204, 0.15);
}

.plan-precio {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.plan-card h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
}

.plan-card-destacado h3 {
    color: #00a8cc;
}

.plan-card hr {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 15px;
}

.plan-card ul {
    list-style: none;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.8;
    font-size: 0.95rem;
}

.plan-card ul.plan-subitems {
    margin: 0;
    padding-left: 16px;
    line-height: 1.6;
}

.plan-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #007bff;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.plan-card-destacado .plan-btn {
    background: #00a8cc;
}

/* Modal de confirmación */
.modal-plan {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-plan[hidden] {
    display: none;
}

.modal-plan-box {
    background: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-plan-box h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-plan-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #888;
}

#modalContenido {
    font-size: 0.9rem;
    color: #444;
    margin: 15px 0;
    line-height: 1.6;
    max-height: min(400px, 60vh);
    overflow-y: auto;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
}

#modalContenido p { margin-bottom: 5px; }
#modalContenido ul { padding-left: 20px; }

.modal-plan-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-btn-cancel,
.modal-btn-wa {
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.modal-btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.modal-btn-wa {
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
}

/* ===== TÉRMINOS Y CONDICIONES ===== */
/* Enlace activo de la navbar (el menú usa text-white, que lleva !important) */
.navbar-nav .nav-link.active {
    color: #00a8cc !important;
}

.footer-bottom a,
.footer-bottom a:hover {
    color: #94a3b8;
    text-decoration: underline;
}

/* Sin JS: todas las tarjetas visibles una bajo otra y sin fila de pestañas */
.terminos-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.terminos.is-tabs .terminos-tabs {
    display: flex;
}

.terminos-tab {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
}

.terminos-tab:hover {
    border-color: #00a8cc;
    color: #00a8cc;
}

.terminos-tab[aria-selected="true"] {
    background: #00a8cc;
    border-color: #00a8cc;
    color: #fff;
}

.terminos-tab:focus-visible,
.terminos-panel:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Pestaña 9: tono "danger" suave de Bootstrap */
.terminos-tab-alerta {
    background: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
    color: var(--bs-danger-text-emphasis);
}

.terminos-tab-alerta:hover {
    border-color: var(--bs-danger);
    color: var(--bs-danger-text-emphasis);
}

.terminos-tab-alerta[aria-selected="true"] {
    background: var(--bs-danger-border-subtle);
    border-color: var(--bs-danger);
    color: var(--bs-danger-text-emphasis);
}

.terminos-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.terminos.is-tabs .terminos-panel {
    margin-bottom: 0;
}

.terminos-panel h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.terminos-panel p,
.terminos-panel li {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

.terminos-panel ul,
.terminos-panel ol {
    padding-left: 1.4rem;
}

.terminos-panel li + li {
    margin-top: 6px;
}

.terminos-panel-alerta {
    background: var(--bs-danger-bg-subtle);
    border-color: var(--bs-danger-border-subtle);
}

.terminos-panel-alerta h2 {
    color: var(--bs-danger-text-emphasis);
}

/* ===== WHATSAPP FLOTANTE ===== */
.wa-widget {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 1030;
}

.wa-btn {
    width: 3.5rem;
    height: 3.5rem;
    border: none;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
    animation: wa-pulso 2.4s infinite;
}

.wa-btn:hover { transform: scale(1.08); }
.wa-btn:focus-visible { outline: 3px solid #00a8cc; outline-offset: 3px; }

.wa-popup {
    position: absolute;
    left: 0;
    bottom: calc(100% + 14px);
    width: min(300px, calc(100vw - 3rem));
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    animation: wa-entrada 0.2s ease;
}

.wa-popup[hidden] { display: none; }

.wa-popup-head {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e293b;
    color: #fff;
    padding: 12px 14px;
}

.wa-popup-head > i { font-size: 1.8rem; color: #25d366; }
.wa-popup-head div { flex: 1; line-height: 1.25; }
.wa-popup-head strong,
.wa-popup-head small { display: block; }
.wa-popup-head small { color: #94a3b8; font-size: 0.78rem; }

.wa-close {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.wa-popup-body { padding: 16px; background: #f1f5f9; }

.wa-bubble {
    background: #fff;
    border-radius: 0 10px 10px 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wa-open,
.wa-open:hover {
    display: block;
    text-align: center;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 8px;
}

.wa-open:hover { background: #128c7e; }

@keyframes wa-pulso {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 4px 12px rgba(0, 0, 0, 0.25); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 12px rgba(0, 0, 0, 0.25); }
}

@keyframes wa-entrada {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .wa-btn, .wa-popup { animation: none; }
}
