/* ==========================================================================
   Agenci & Marketing RF — Estilos del Plugin WordPress
   ========================================================================== */

/* Modo Página Completa */
body.agenci-rf-fullpage {
    background-color: #030917 !important;
    color: #F8FAFC !important;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* Ajuste para la barra de administración de WordPress cuando el usuario está logueado */
body.admin-bar #agenci-rf-app .agenci-rf-header--fixed {
    top: 32px !important;
}

body.admin-bar #agenci-rf-app .agenci-rf-header--sticky {
    top: 32px;
}

body.admin-bar #agenci-rf-app section[id] {
    scroll-margin-top: 116px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #agenci-rf-app .agenci-rf-header--fixed {
        top: 46px !important;
    }

    body.admin-bar #agenci-rf-app .agenci-rf-header--sticky {
        top: 46px;
    }

    body.admin-bar #agenci-rf-app section[id] {
        scroll-margin-top: 130px;
    }
}

/* Evita scrollbar horizontal cuando el shortcode rompe el ancho del contenedor del tema */
html.agenci-rf-has-fullbleed,
body.agenci-rf-has-fullbleed {
    overflow-x: clip;
}

/* ==========================================================================
   Reset acotado para Modo Shortcode (protege al tema padre y permite ganar a
   las utilidades Tailwind generadas con important: '#agenci-rf-app')
   ========================================================================== */
#agenci-rf-app.agenci-rf-shortcode,
#agenci-rf-app:where(.agenci-rf-shortcode) *,
#agenci-rf-app:where(.agenci-rf-shortcode) ::before,
#agenci-rf-app:where(.agenci-rf-shortcode) ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #1E3A8A;
}

#agenci-rf-app.agenci-rf-shortcode {
    background-color: #030917;
    color: #F8FAFC;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    position: relative;
}

#agenci-rf-app.agenci-rf-shortcode.agenci-rf-fullbleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

#agenci-rf-app:where(.agenci-rf-shortcode) :where(h1, h2, h3, h4, p, ul, ol) {
    margin: 0;
    padding: 0;
}

#agenci-rf-app:where(.agenci-rf-shortcode) :where(ul, ol) {
    list-style: none;
}

#agenci-rf-app #legalModalBody ul {
    list-style: disc;
    padding-left: 1.25rem;
}

#agenci-rf-app:where(.agenci-rf-shortcode) :where(a) {
    color: inherit;
    text-decoration: none;
}

#agenci-rf-app:where(.agenci-rf-shortcode) :where(button, input, select, textarea) {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    margin: 0;
}

#agenci-rf-app:where(.agenci-rf-shortcode) :where(button) {
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    text-transform: none;
}

#agenci-rf-app:where(.agenci-rf-shortcode) :where(svg) {
    display: block;
    vertical-align: middle;
}

#agenci-rf-app ::selection {
    background-color: #0066FF;
    color: #FFFFFF;
}

/* ==========================================================================
   Componentes visuales del diseño original
   ========================================================================== */
#agenci-rf-app section[id] {
    scroll-margin-top: 84px;
}

/* Cuadrícula arquitectónica sutil en azul */
#agenci-rf-app .bg-blue-grid {
    background-size: 46px 46px;
    background-image:
        linear-gradient(to right, rgba(14, 165, 233, 0.065) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.065) 1px, transparent 1px);
}

/* Navbar glassmorphism */
#agenci-rf-app .glass-header {
    background: rgba(3, 9, 23, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

/* Texto con degradado azul eléctrico a cian luminoso */
#agenci-rf-app .text-electric-gradient {
    background: linear-gradient(135deg, #00E5FF 0%, #38BDF8 45%, #0066FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botón principal con degradado y brillo glow azul eléctrico */
#agenci-rf-app .btn-electric {
    background: linear-gradient(135deg, #0066FF 0%, #0EA5E9 55%, #00E5FF 100%);
    background-size: 160% 160%;
    box-shadow: 0 8px 28px -4px rgba(0, 102, 255, 0.65), 0 0 16px rgba(0, 229, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#agenci-rf-app .btn-electric:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow: 0 14px 38px -4px rgba(0, 102, 255, 0.85), 0 0 26px rgba(0, 229, 255, 0.5);
}

#agenci-rf-app .btn-electric:active {
    transform: translateY(0) scale(0.99);
}

#agenci-rf-app .btn-electric:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

/* Tarjetas en Azul Zafiro Oscuro (#081633) con bordes luminosos */
#agenci-rf-app .sapphire-card {
    background: linear-gradient(165deg, rgba(8, 22, 51, 0.96) 0%, rgba(5, 14, 36, 0.98) 100%);
    border: 1px solid #1E3A8A;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#agenci-rf-app .sapphire-card:hover {
    border-color: #0EA5E9;
    box-shadow: 0 20px 45px -12px rgba(0, 102, 255, 0.35), 0 0 22px -6px rgba(0, 229, 255, 0.28);
    transform: translateY(-5px);
}

/* Animación flotante sutil para tarjetas del dashboard Hero */
@keyframes agenciRfFloatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes agenciRfFloatDelayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(7px); }
}

#agenci-rf-app .animate-float-slow {
    animation: agenciRfFloatSlow 5.5s ease-in-out infinite;
}

#agenci-rf-app .animate-float-delayed {
    animation: agenciRfFloatDelayed 6.5s ease-in-out infinite;
}

/* Animación suave al hacer scroll */
#agenci-rf-app .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

#agenci-rf-app .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Transición suave para acordeón FAQ */
#agenci-rf-app .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#agenci-rf-app .faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

#agenci-rf-app .faq-answer-inner {
    overflow: hidden;
}

#agenci-rf-app .faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: #00E5FF;
}

/* Checkbox y Select nativo en modo oscuro */
#agenci-rf-app input[type="checkbox"] {
    accent-color: #0066FF;
}

#agenci-rf-app select option {
    background-color: #030917;
    color: #F8FAFC;
}

/* Scrollbar personalizada en modo página completa */
body.agenci-rf-fullpage::-webkit-scrollbar {
    width: 8px;
}

body.agenci-rf-fullpage::-webkit-scrollbar-track {
    background: #030917;
}

body.agenci-rf-fullpage::-webkit-scrollbar-thumb {
    background: #1E3A8A;
    border-radius: 4px;
}

body.agenci-rf-fullpage::-webkit-scrollbar-thumb:hover {
    background: #0066FF;
}

/* Logo corporativo en cabecera y pie */
#agenci-rf-app .agenci-rf-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
    margin: 0;
}

/* Botón flotante de WhatsApp (esquina inferior derecha) */
#agenci-rf-app .agenci-rf-whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    background: #25D366;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38), 0 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 45;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

#agenci-rf-app .agenci-rf-whatsapp-float:hover {
    background: #20BD5A;
    color: #FFFFFF;
    transform: translateY(-2px) scale(1.07);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5), 0 8px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
    #agenci-rf-app .agenci-rf-whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}
