/* ═══════════════════════════════════════════════════════════════════════════════
   COMPONENTES GLOBALES V2 - HUMANPRO
   Botones Shine, Navbar Moderno, Footer Elegante
   ═══════════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════════
   1. BOTONES - ESTILO OFICIAL "CONIC SHINE" (GLOBAL)
   Basado en el diseño aprobado (Precios): borde con conic-gradient animado
   + interior oscuro, con hover de escala suave.
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Aplica a TODOS los botones y enlaces tipo botón */
button,
input[type="button"],
input[type="submit"],
a.btn,
a.button,
.button,
.btn,
.cta,
.cta-button,
.plan-btn,
.tools-btn,
.navbar-cta,
.footer-cta,
.mobile-cta {
  position: relative;
  z-index: 0;
  border-radius: 9999px !important;
  border: none !important;
  background: rgba(31, 41, 55, 1) !important; /* interior */
  color: #ffffff !important;
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
}

/* Asegura que anchors se comporten como botón */
a.btn, a.button, .button, .btn, .cta, .cta-button, .navbar-cta, .footer-cta, .mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

/* Borde conic gradient animado (sin wrapper) */
button::before,
input[type="button"]::before,
input[type="submit"]::before,
a.btn::before,
a.button::before,
.button::before,
.btn::before,
.cta::before,
.cta-button::before,
.plan-btn::before,
.tools-btn::before,
.navbar-cta::before,
.footer-cta::before,
.mobile-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    #00F5FF, #000, #000,
    #00F5FF, #000, #000,
    #000, #00F5FF
  );
  background-size: 300% 300%;
  animation: shine 6s ease-out infinite;
  z-index: -2;

  /* recorta el centro, dejando solo el borde */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* Glow y elevación */
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.btn:hover,
a.button:hover,
.button:hover,
.btn:hover,
.cta:hover,
.cta-button:hover,
.plan-btn:hover,
.tools-btn:hover,
.navbar-cta:hover,
.footer-cta:hover,
.mobile-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.25), 0 18px 45px rgba(0, 245, 255, 0.12);
  filter: brightness(1.03);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
a.btn:active,
a.button:active,
.button:active,
.btn:active,
.cta:active,
.cta-button:active,
.plan-btn:active,
.tools-btn:active,
.navbar-cta:active,
.footer-cta:active,
.mobile-cta:active {
  transform: scale(1.0);
}

/* Botones pequeños / icon-only: evita que se deformen */
.icon-btn,
.btn-icon,
.fab,
.fab-button,
.nav-btn,
.carousel-btn,
.close-btn {
  border-radius: 9999px !important;
  padding: 0.6rem 0.6rem !important;
}

/* Disabled */
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
.btn.disabled,
.button.disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}


2. NAVBAR MODERNO
   ═══════════════════════════════════════════════════════════════════════════════ */
.navbar-modern {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 2rem);
    max-width: 1200px;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.25rem;
    background: rgba(5, 10, 48, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 50px;
}

.navbar-logo img {
    height: 38px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.navbar-link {
    position: relative;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.navbar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.navbar-link.active {
    color: #00d4ff;
}

/* Efecto de texto duplicado en hover */
.navbar-link span {
    display: block;
    transition: transform 0.3s ease;
}

.navbar-link:hover span {
    transform: translateY(-100%);
}

.navbar-link::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.3s ease;
    color: #00d4ff;
}

.navbar-link:hover::after {
    top: 50%;
    transform: translate(-50%, -50%);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-btn-contact {
    padding: 8px 14px;
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 50px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar-btn-contact:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-btn-cta {
    padding: 0.5rem 1.25rem;
    background: #fff;
    color: #050a30;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.navbar-btn-cta:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BOTÓN DE HERRAMIENTAS - SUPER LLAMATIVO
   ═══════════════════════════════════════════════════════════════════════════════ */
.navbar-btn-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    color: #050a30;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 10px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    animation: toolsBtnPulse 2.5s ease-in-out infinite;
}

@keyframes toolsBtnPulse {
    0%, 100% { 
        box-shadow: 
            0 2px 10px rgba(0, 212, 255, 0.3),
            0 0 20px rgba(0, 212, 255, 0.15);
    }
    50% { 
        box-shadow: 
            0 4px 15px rgba(0, 212, 255, 0.4),
            0 0 25px rgba(0, 212, 255, 0.25);
    }
}

.navbar-btn-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.3),
        transparent
    );
    animation: toolsShimmer 3s ease-in-out infinite;
}

@keyframes toolsShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.navbar-btn-tools:hover {
    transform: scale(1.03);
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.tools-btn-icon {
    font-size: 0.95rem;
    animation: rocketBounce 1.5s ease-in-out infinite;
}

@keyframes rocketBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.tools-btn-text {
    position: relative;
    z-index: 1;
}

.tools-btn-badge {
    background: linear-gradient(135deg, #00d4ff, #0077ff);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 2px;
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.navbar-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.navbar-mobile {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(5, 10, 48, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
}

.navbar-mobile.active {
    display: flex;
}

.navbar-mobile a {
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.navbar-mobile a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.navbar-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Navbar */
@media (max-width: 1100px) {
    .navbar-link {
        padding: 5px 8px;
        font-size: 0.78rem;
    }
    
    .navbar-btn-tools {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .tools-btn-text {
        display: none;
    }
    
    .navbar-btn-tools::after {
        content: 'Tools IA';
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .tools-btn-badge {
        display: none;
    }
}

@media (max-width: 900px) {
    .navbar-links,
    .navbar-actions {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-logo img {
        height: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   3. FOOTER MODERNO
   ═══════════════════════════════════════════════════════════════════════════════ */
.footer-modern {
    background: linear-gradient(180deg, #0a0f3a 0%, #050520 100%);
    padding: 4rem 5% 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand img {
    height: 45px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #00d4ff;
    border-color: #00d4ff;
    color: #050a30;
    transform: translateY(-3px);
}

.footer-column h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column a:hover {
    color: #00d4ff;
    transform: translateX(5px);
}

.footer-column a i {
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-column a:hover i {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #00d4ff;
    text-decoration: none;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
        align-items: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-column {
        align-items: center;
    }
    
    .footer-column a {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* Ocultar footer viejo */
.mega-footer {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   OCULTAR COMPONENTES VIEJOS
   ═══════════════════════════════════════════════════════════════════════════════ */
.mega-header,
header.mega-header {
    display: none !important;
}

/* Ajustar contenido principal */
main {
    padding-top: 80px;
}

/* Hero sections: reduce gap under sticky navbar */
.hero-section,
.about-hero,
.services-hero,
.b2b-hero {
    padding-top: 2rem !important;
}

@media (max-width: 768px) {
    .hero-section,
    .about-hero,
    .services-hero,
    .b2b-hero {
        padding-top: 1.25rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER MODERNO V2 - SIMPLIFICADO Y CENTRADO
   ═══════════════════════════════════════════════════════════════════════════════ */
.footer-modern-v2 {
    width: 100%;
    background: linear-gradient(180deg, #0a0f3a 0%, #050520 100%);
    color: #fff;
}

.footer-main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo-section {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin-bottom: 2rem;
}

.footer-description strong {
    color: #00d4ff;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-icons a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: #00d4ff;
    border-color: #00d4ff;
    color: #050a30;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    text-align: center;
}

.footer-bottom-bar p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-bar a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-bar a:hover {
    color: #fff;
}

/* Ocultar footer viejo */
.footer-modern {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BOTÓN FLOTANTE DE HERRAMIENTAS (FAB)
   ═══════════════════════════════════════════════════════════════════════════════ */
.tools-fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9998;
}

.tools-fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(139, 92, 246, 0.6);
}

.tools-fab.active .tools-fab-btn {
    background: linear-gradient(135deg, #ec4899, #db2777);
    transform: rotate(45deg);
}

.tools-fab.active .tools-fab-btn i::before {
    content: "\f00d";
}

/* Menú de herramientas */
.tools-fab-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background: rgba(10, 15, 58, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tools-fab.active .tools-fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.tools-fab-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.1));
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    font-weight: 600;
    color: #fff;
}

.tools-fab-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tools-fab-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

.tools-fab-item:last-of-type {
    border-bottom: none;
}

.tools-fab-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.tools-fab-text {
    display: flex;
    flex-direction: column;
}

.tools-fab-text strong {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.tools-fab-text span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.tools-fab-footer {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tools-fab-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.tools-fab-footer a:hover {
    color: #00d4ff;
}

/* Responsive */
@media (max-width: 768px) {
    .tools-fab {
        bottom: 90px;
        right: 15px;
    }
    
    .tools-fab-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .tools-fab-menu {
        width: 260px;
        right: -10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BANNER DE COOKIES
   ═══════════════════════════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

.cookie-banner.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(30px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 340px;
    max-width: 90vw;
    background: rgba(10, 15, 58, 0.98);
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
}

.cookie-icon {
    font-size: 2rem;
}

.cookie-header h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1rem;
}

.cookie-content p a {
    color: #00d4ff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.cookie-buttons a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.cookie-buttons a:hover {
    color: #00d4ff;
}

.cookie-accept {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #050a30;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

@media (max-width: 480px) {
    .cookie-content {
        width: 95vw;
        padding: 1.25rem;
    }
    
    .cookie-buttons {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .cookie-accept {
        width: 100%;
    }
}

/* Footer Legal Links */
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #00d4ff;
}

.footer-legal-links span {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
}

/* Link de herramientas en menú móvil */
.mobile-tools-link {
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(0,119,255,0.1)) !important;
    border: 1px solid rgba(0,212,255,0.4) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    color: #00d4ff !important;
    margin: 10px 0 !important;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   GLOBAL BUTTON UNIFICATION (Requested)
   Applies to ALL buttons, submits and button-like links, while preserving layout.
   ═══════════════════════════════════════════════════════════════════════════════ */
:root{
  --hp-btn-grad: linear-gradient(135deg, #233dff 0%, #00d4ff 100%);
  --hp-btn-glow: 0 0 18px rgba(0, 212, 255, 0.45), 0 0 36px rgba(35, 61, 255, 0.22);
  --hp-btn-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Targets: all native buttons + submits + anchors that behave like buttons */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a.btn, .btn,
a.button, .button,
.read-more-btn,
.cta-btn, .cta-button,
.pricing-btn, .plan-btn,
.newsletter-btn, .newsletter-form button,
.contact-form button, .contact-form input[type="submit"],
.form-btn, .submit-btn,
.hero-cta a, .hero-cta button{
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: var(--hp-btn-grad);
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.30);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
  line-height: 1.1;
}

/* Shine sweep */
button::before,
input[type="button"]::before,
input[type="submit"]::before,
input[type="reset"]::before,
a.btn::before, .btn::before,
a.button::before, .button::before,
.read-more-btn::before,
.cta-btn::before, .cta-button::before,
.pricing-btn::before, .plan-btn::before,
.newsletter-btn::before, .newsletter-form button::before,
.contact-form button::before, .contact-form input[type="submit"]::before,
.form-btn::before, .submit-btn::before,
.hero-cta a::before, .hero-cta button::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width:55%;
  height:180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(20deg);
  transition: left .55s ease;
  pointer-events:none;
}

/* Hover / Focus */
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
a.btn:hover, .btn:hover,
a.button:hover, .button:hover,
.read-more-btn:hover,
.cta-btn:hover, .cta-button:hover,
.pricing-btn:hover, .plan-btn:hover,
.newsletter-btn:hover, .newsletter-form button:hover,
.contact-form button:hover, .contact-form input[type="submit"]:hover,
.form-btn:hover, .submit-btn:hover,
.hero-cta a:hover, .hero-cta button:hover{
  transform: translateY(-2px);
  box-shadow: var(--hp-btn-shadow), var(--hp-btn-glow);
  border-color: rgba(0, 212, 255, 0.45);
  filter: brightness(1.04);
}
button:hover::before,
input[type="button"]:hover::before,
input[type="submit"]:hover::before,
input[type="reset"]:hover::before,
a.btn:hover::before, .btn:hover::before,
a.button:hover::before, .button:hover::before,
.read-more-btn:hover::before,
.cta-btn:hover::before, .cta-button:hover::before,
.pricing-btn:hover::before, .plan-btn:hover::before,
.newsletter-btn:hover::before, .newsletter-form button:hover::before,
.contact-form button:hover::before, .contact-form input[type="submit"]:hover::before,
.form-btn:hover::before, .submit-btn:hover::before,
.hero-cta a:hover::before, .hero-cta button:hover::before{
  left: 120%;
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
a.btn:focus-visible, .btn:focus-visible,
a.button:focus-visible, .button:focus-visible,
.read-more-btn:focus-visible,
.cta-btn:focus-visible, .cta-button:focus-visible,
.pricing-btn:focus-visible, .plan-btn:focus-visible,
.newsletter-btn:focus-visible, .newsletter-form button:focus-visible,
.contact-form button:focus-visible, .contact-form input[type="submit"]:focus-visible,
.form-btn:focus-visible, .submit-btn:focus-visible,
.hero-cta a:focus-visible, .hero-cta button:focus-visible{
  outline: 2px solid rgba(0, 212, 255, 0.65);
  outline-offset: 2px;
}

/* Small utility buttons: keep compact but same style */
.action-btn, .icon-btn, .mini-btn, .tool-btn, .filter-btn{
  padding: .6rem 1rem !important;
  font-weight: 700;
}

/* Opt-in unified buttons (for pages under review) */
.hp-btn-unify{
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 0.85rem 1.35rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 212, 255, 0.22) !important;
  background: var(--hp-btn-grad) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem !important;
  letter-spacing: .2px;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.30) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
  line-height: 1.1;
}
.hp-btn-unify::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width:55%;
  height:180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(20deg);
  transition: left .55s ease;
  pointer-events:none;
}
.hp-btn-unify:hover{
  transform: translateY(-2px);
  box-shadow: var(--hp-btn-shadow), var(--hp-btn-glow);
  border-color: rgba(0, 212, 255, 0.45);
  filter: brightness(1.04);
}
.hp-btn-unify:hover::before{ left: 120%; }
.hp-btn-unify:focus-visible{
  outline: 2px solid rgba(0, 212, 255, 0.65);
  outline-offset: 2px;
}

/* Flip label effect (opt-in via .hp-btn-flip) */
.hp-btn-flip{
  position: relative;
}
.hp-btn-flip .hp-btn-label-wrap{
  position: relative;
  display: block;
  height: 1.1em;
  overflow: hidden;
}
.hp-btn-flip .hp-btn-label,
.hp-btn-flip .hp-btn-label-ghost{
  display: block;
  transition: transform .3s ease;
  will-change: transform;
}
.hp-btn-flip .hp-btn-label-ghost{
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
}
.hp-btn-flip:hover .hp-btn-label{
  transform: translateY(-100%);
}
.hp-btn-flip:hover .hp-btn-label-ghost{
  transform: translateY(-100%);
}

/* Disable heavy hover on touch devices */
@media (hover: none){
  button:hover, a.btn:hover, .btn:hover, a.button:hover, .button:hover,
  input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover{
    transform:none;
    box-shadow: 0 8px 22px rgba(0,0,0,.30);
    filter:none;
  }
  button:hover::before, a.btn:hover::before, .btn:hover::before, a.button:hover::before, .button:hover::before{
    left:-60%;
  }
}



/* ═══════════════════════════════════════════════════════════════════════════════
   NAVBAR "LAUNCH" (Topbar + Nav white)
   ═══════════════════════════════════════════════════════════════════════════════ */

.hp-navbar-wrap { position: sticky; top: 0; z-index: 9999; }

.hp-topbar{
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  color: #fff;
  background: linear-gradient(90deg, #8b5cf6, #9938CA, #E0724A);
}
.hp-topbar-underline{ text-decoration: underline; text-underline-offset: 3px; }

.hp-navbar{
  height: 70px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.95);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px){
  .hp-navbar{ padding: 0.75rem 4rem; }
}
@media (min-width: 1024px){
  .hp-navbar{ padding: 0.75rem 6rem; }
}

.hp-nav-logo img{ height: 38px; width: auto; display:block; }

.hp-nav-links{
  display:none;
  align-items:center;
  gap: 1.75rem;
}
@media (min-width: 768px){
  .hp-nav-links{ display:flex; }
}

.hp-nav-link{
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration:none;
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
.hp-nav-link:hover{ opacity: 1; transform: translateY(-1px); }
.hp-nav-link.active{ opacity: 1; position: relative; }
.hp-nav-link.active::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00F5FF, #4F39F6, #E0724A);
}

.hp-nav-actions{ display:flex; align-items:center; gap: .75rem; }

/* CTA usa el estilo de botones global; solo ajustamos padding */
.hp-nav-cta{ padding: .6rem 1rem !important; font-size: .9rem; }

/* burger */
.hp-menu-btn{
  display:inline-flex;
  width: 42px;
  height: 42px;
  align-items:center;
  justify-content:center;
  background: rgba(0,245,255,0.1) !important;
  border: 1px solid rgba(0,245,255,0.3) !important;
  padding: 0 !important;
}
.hp-menu-btn::before{ display:none !important; } /* no conic border en burger */
.hp-menu-btn span{
  display:block;
  width: 22px;
  height: 2px;
  background: #eaf2ff;
  border-radius: 999px;
  margin: 2.5px 0;
}
@media (min-width: 768px){
  .hp-menu-btn{ display:none; }
}
@media (max-width: 480px){
  .hp-mobile-menu{ top: 80px; }
}

/* mobile menu */
.hp-mobile-menu{
  display:none;
  position: fixed;
  top: 86px;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(5,10,48,0.98), rgba(6,12,32,0.98));
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  padding: 1rem 1.25rem;
  z-index: 9999;
}
.hp-mobile-link{
  display:block;
  padding: .9rem .75rem;
  font-weight: 700;
  color:#eaf2ff;
  text-decoration:none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  margin-bottom: 8px;
}
.hp-mobile-link:last-of-type{ border-bottom:none; }
.hp-mobile-cta{ margin-top: .85rem; width: 100%; padding: .75rem 1rem !important; }

/* Fondo global unificado: todas las páginas */
body{
  background: radial-gradient(1200px 600px at 20% 10%, rgba(0,245,255,0.14), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(79,57,246,0.16), transparent 60%),
              linear-gradient(180deg, #050A30 0%, #040726 100%) !important;
  background-attachment: fixed !important;
}



/* ═══════════════════════════════════════════════════════════════════════════════
   BLOG POLISH (orden + atractivo visual)
   ═══════════════════════════════════════════════════════════════════════════════ */

.blog-hero{
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1.75rem;
  text-align: center;
}
.blog-hero h1{
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.02em;
}
.blog-hero p{
  max-width: 58ch;
  margin: .75rem auto 0;
  opacity: .85;
}
.blog-search-container{ margin-top: 1.5rem; }
.blog-search-box{
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}

.blog-layout{
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 1024px){
  .blog-layout{ grid-template-columns: 1.6fr 0.9fr; gap: 1.75rem; }
}

.blog-main, .blog-sidebar{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.blog-tabs{
  display:flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1rem 1rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.blog-tab{
  padding: .65rem .95rem !important;
  font-weight: 700;
  border-radius: 9999px !important;
  opacity: .9;
}
.blog-tab.active{
  box-shadow: 0 0 0 1px rgba(0,245,255,.25), 0 18px 45px rgba(0,245,255,.10);
}

.blog-featured{
  margin: 1rem;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
}
.blog-featured .featured-content{
  padding: 1.25rem 1.25rem 1.35rem;
}
.blog-featured h2{ margin: .35rem 0 .5rem; font-size: 1.4rem; letter-spacing: -0.01em; }

.blog-posts{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}
@media (min-width: 768px){
  .blog-posts{ grid-template-columns: 1fr 1fr; }
}
.blog-post{
  border-radius: 18px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-post:hover{
  transform: translateY(-2px);
  border-color: rgba(0,245,255,0.20);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}
.blog-post .post-content{ padding: 1rem 1rem 1.1rem; }
.blog-post h3{ font-size: 1.05rem; line-height: 1.25; margin: .35rem 0 .4rem; }

.blog-sidebar{
  padding: 1rem;
}
@media (min-width: 1024px){
  .blog-sidebar{ position: sticky; top: 120px; height: fit-content; }
}



/* ═══════════════════════════════════════════════════════════════════════════════
   TOOLS POLISH (más pro + más "dashboard")
   ═══════════════════════════════════════════════════════════════════════════════ */

.analyzer-container,
.calculator-container,
.generator-container,
.quiz-container{
  max-width: 1100px;
  margin: 0 auto;
}

.analyzer-header, .calculator-header, .generator-header{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 1.25rem 1.25rem 1.35rem;
  backdrop-filter: blur(12px);
}

.analyzer-form, .calculator-form, .generator-form, .quiz-card{
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

/* Inputs más legibles */
input[type="text"], input[type="email"], input[type="tel"], textarea, select{
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color: #fff !important;
}
input::placeholder, textarea::placeholder{ opacity: .7; }

/* Dashboard superior (si existe) */
.hp-tool-dash{
  max-width: 1100px;
  margin: 0 auto 1.1rem;
  padding: 1rem 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
}
.hp-tool-dash .dash-title{ font-weight: 800; font-size: 1.05rem; }
.hp-tool-dash .dash-sub{ opacity: .85; margin-top: .25rem; }
.hp-tool-dash .dash-row{ display:flex; flex-wrap: wrap; gap: .75rem; margin-top: .9rem; align-items:center; }
.hp-tool-dash .dash-chip{
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.12);
  padding: .55rem .8rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: .9rem;
}


/* mobile menu open */
.hp-mobile-menu.open{ display:flex; flex-direction:column; gap:8px; }

.hp-social svg{ width:20px; height:20px; display:block; }

@media (max-width: 767px){ body.hp-menu-open{ overflow:hidden; } }
