/* Variables CSS */
:root {
    --background: #ffffff;
    --foreground: #1a202c;
    --muted: #f1f5f9;
    --muted-foreground: #626a85;
    --border: #e2e8f0;
    --primary: #2c57b2;
    --primary-foreground: #ffffff;
    --secondary: #64748b;
    --secondary-foreground: #ffffff;
    --accent: #3b82f6;
    --accent-foreground: #ffffff;
    --success: #10b981;
    --success-foreground: #ffffff;
    --radius: 0.75rem;
}

.dark {
    --background: #0f172a;
    --foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --border: #334155;
    --primary: #3b82f6;
    --primary-foreground: #ffffff;
    --secondary: #334155;
    --secondary-foreground: #f8fafc;
    --accent: #60a5fa;
    --accent-foreground: #ffffff;
    --success: #34d399;
    --success-foreground: #0f172a;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* NAVBAR STYLES */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background-color: transparent;
    padding-top: 20px;
    padding-bottom: 20px;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.dark .navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

@media (min-width: 1024px) {
    .navbar-content {
        padding: 0 2rem;
    }
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo_redondo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    display: block; /* evita saltos verticales */
}

/* .navbar-logo img {
    height: 170px; 
    width: auto;
} */

.logo-placeholder {
    background-color: var(--primary);
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
    height: 3rem;
}

.navbar-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.navbar-nav a {
    text-decoration: none;
}

.navbar-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.navbar-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--foreground);
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.navbar-toggle:hover {
    background-color: var(--muted);
}

/* Botones del Navbar */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.button-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.button-ghost:hover {
    background-color: #557af4;
    color: white;
}

.button-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--foreground);
}

.button-outline:hover {
    background-color: var(--muted);
}

.button-primary {
    background-color: #2c57b2;
    color: var(--primary-foreground);
}

.button-primary:hover {
    background-color: #24489c;
}

.button-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.button-secondary:hover {
    background-color: rgba(100, 116, 139, 0.9);
}

/* Menú móvil */
.navbar-mobile {
    display: none;
    padding: 1rem 0;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
}

.navbar-mobile.open {
    display: flex;
    flex-direction: column;
}

.navbar-mobile a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--foreground);
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.navbar-mobile a:hover {
    background-color: var(--muted);
}

.navbar-mobile-actions {
    padding: 1rem 1rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.navbar-mobile-actions .button {
    width: 100%;
    text-align: center;
}

@media (min-width: 1024px) {

    .navbar-nav,
    .navbar-actions {
        display: flex;
    }

    .navbar-toggle {
        display: none;
    }

    .navbar-mobile {
        display: none !important;
    }
}

/* ESTILOS PARA LA PÁGINA PRINCIPAL */

/* Utilidades generales */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.space-y-8>*+* {
    margin-top: 2rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-px {
    width: 1px;
}

.h-px {
    height: 1px;
}

.h-3\.5 {
    height: 0.875rem;
}

.w-3\.5 {
    width: 0.875rem;
}

.h-5 {
    height: 1.25rem;
}

.w-5 {
    width: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.object-cover {
    object-fit: cover;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.rounded-lg {
    border-radius: var(--radius);
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.bg-background {
    background-color: var(--background);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary\/10 {
    background-color: rgba(37, 99, 235, 0.1);
}

.bg-primary\/20 {
    background-color: rgba(37, 99, 235, 0.2);
}

.bg-primary\/5 {
    background-color: rgba(37, 99, 235, 0.05);
}

.bg-accent\/5 {
    background-color: rgba(59, 130, 246, 0.05);
}

.bg-accent\/20 {
    background-color: rgba(59, 130, 246, 0.2);
}

.bg-muted\/30 {
    background-color: rgba(241, 245, 249, 0.3);
}

.bg-muted\/50 {
    background-color: rgba(241, 245, 249, 0.5);
}

.bg-transparent {
    background-color: transparent;
}

.text-primary {
    color: var(--primary);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-success {
    color: var(--success);
}

.border {
    border-width: 1px;
}

.border-border {
    border-color: var(--border);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.blur-3xl {
    filter: blur(64px);
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.group:hover .group-hover\:bg-primary\/20 {
    background-color: rgba(37, 99, 235, 0.2);
}

.hover\:bg-primary-foreground\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.shrink-0 {
    flex-shrink: 0;
}

.overflow-hidden {
    overflow: hidden;
}

/* Estilos específicos de componentes */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background-color: var(--background);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-outline {
    background-color: #2c57b2;
    color: white;
    border-color: var(--border);
}

.button-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    height: 3rem;
}

.card {
    background-color: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:text-4xl {
        font-size: 2.25rem;
    }

    .md\:text-5xl {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:h-\[600px\] {
        height: 600px;
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:pt-40 {
        padding-top: 10rem;
    }

    .lg\:pb-32 {
        padding-bottom: 8rem;
    }

    .lg\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .lg\:text-5xl {
        font-size: 3rem;
    }

    .lg\:text-6xl {
        font-size: 3.75rem;
    }
}

/* Gradientes */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-primary\/5 {
    --tw-gradient-from: rgba(37, 99, 235, 0.1);
    /* De 0.05 a 0.1 */
    --tw-gradient-to: rgba(37, 99, 235, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-background {
    --tw-gradient-to: var(--background);
    --tw-gradient-stops: var(--tw-gradient-from), var(--background), var(--tw-gradient-to);
}

.to-accent\/5 {
    --tw-gradient-to: rgba(59, 130, 246, 0.1);
    /* De 0.05 a 0.1 */
}

.from-primary {
    --tw-gradient-from: var(--primary);
    --tw-gradient-to: rgba(37, 99, 235, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-accent {
    --tw-gradient-to: var(--accent);
}

/* Imágenes de placeholder */
.placeholder-img {
    background-color: var(--muted);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.placeholder-img.large {
    height: 500px;
}

.placeholder-img.medium {
    height: 300px;
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}


/* Fondo general con degradado */
/* body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f0f9ff 100%);
    background-attachment: fixed;
    color: var(--foreground);
}

/* Fondo degradado para modo oscuro */
/* .dark body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
} */

/* Transición suave al cambiar de modo */
/* body, .dark body {
    transition: background 0.6s ease, color 0.3s ease;
}  */

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    background-size: 200% 200%;
    animation: gradientMove 12s ease infinite;
}


/* FOOTER STYLES */
.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
}


/* Logo del footer más grande */
.footer-logo {
    height: 10rem; /* 128px - más grande */
    width: auto;
    max-width: 200px; /* Opcional: para controlar el ancho máximo */
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.inline-flex {
    display: inline-flex;
}

/* Estilos específicos para el footer */
.footer ul {
    list-style: none;
}

.footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .logo-placeholder {
    background-color: var(--primary);
    color: white;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
    height: 3rem;
}

/* Margenes adicionales para el diseño */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 768px) {
    .container-wide {
        padding: 0 4rem;
    }
}

@media (min-width: 1024px) {
    .container-wide {
        padding: 0 6rem;
    }
}

/* Ajustes específicos para las secciones */
.hero-padding {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 768px) {
    .hero-padding {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-padding {
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

/* Estilos específicos para el badge */
.badge-primary {
    background-color: #2c57b2;
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary .sparkle-icon {
    width: 0.875rem;
    height: 0.875rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Estilos para la página Sobre Nosotros */
.border-primary\/20 {
    border-color: rgba(24, 88, 184, 0.2);
}

.text-2xl {
    font-size: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

@media (min-width: 1024px) {
    .lg\:order-1 {
        order: 1;
    }

    .lg\:order-2 {
        order: 2;
    }
}

/* Iconos específicos */
.fa-bullseye,
.fa-eye,
.fa-heart,
.fa-award,
.fa-lightbulb,
.fa-users,
.fa-chart-line,
.fa-globe {
    font-size: inherit;
}


/* Clases para el gradiente del hero */
.from-primary\/15 {
    --tw-gradient-from: rgba(24, 88, 184, 0.15);
    --tw-gradient-to: rgba(24, 88, 184, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-accent\/15 {
    --tw-gradient-to: rgba(59, 130, 246, 0.15);
}

.via-background {
    --tw-gradient-to: var(--background);
    --tw-gradient-stops: var(--tw-gradient-from), var(--background), var(--tw-gradient-to);
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-accent\/10 {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Tarjetas de valores mejoradas */
.valor-card {
    background-color: #fcfcfc;
    border: 1px solid #dcdee1;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.valor-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Para modo oscuro */
.dark .valor-card {
    background-color: #1a202c;
    border-color: #2d3748;
}

/* Iconos más grandes */
.valor-card .fa-heart,
.valor-card .fa-award,
.valor-card .fa-lightbulb,
.valor-card .fa-users {
    font-size: 1.75rem;
}

/* Tarjeta CTA con degradado un poquito más oscuro */
.cta-card {
    border: 1px solid #d0ddf1;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg,
            rgba(24, 88, 184, 0.12) 0%,
            var(--background) 50%,
            rgba(59, 130, 246, 0.12) 100%);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(24, 88, 184, 0.08) 0%,
            transparent 50%,
            rgba(59, 130, 246, 0.08) 100%);
    pointer-events: none;
}

/* Para modo oscuro */
.dark .cta-card {
    border-color: #2d3748;
    background: linear-gradient(135deg,
            rgba(24, 88, 184, 0.15) 0%,
            var(--background) 50%,
            rgba(59, 130, 246, 0.15) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Button con animaciones */
.whatsapp-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background-color: #25D366;
    color: white;
    border-radius: 9999px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-button:hover {
    background-color: #20BA5A;
    transform: scale(1.15) rotate(5deg);
    animation: none;
    /* Detener animación al hover */
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-button i {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    animation: wiggle 2s ease-in-out infinite;
}

/* Animación de flotación */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Animación de movimiento del icono */
@keyframes wiggle {

    0%,
    7%,
    14%,
    21%,
    28%,
    35%,
    42%,
    49%,
    56%,
    63%,
    70%,
    77%,
    84%,
    91%,
    100% {
        transform: rotate(0deg);
    }

    3.5%,
    10.5%,
    17.5%,
    24.5%,
    31.5%,
    38.5%,
    45.5%,
    52.5%,
    59.5%,
    66.5%,
    73.5%,
    80.5%,
    87.5%,
    94.5% {
        transform: rotate(5deg);
    }
}

/* Efecto de pulso */
.pulse-ring {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #25D366;
    border-radius: 9999px;
    animation: pulse 2s linear infinite;
    opacity: 0;
}

.pulse-ring-2 {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Tooltip mejorado */
.whatsapp-tooltip {
    position: absolute;
    right: 100%;
    margin-right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--foreground);
    color: var(--background);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--foreground);
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

/* Efecto de rebote inicial */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotate(10deg);
    }

    70% {
        transform: scale(0.9) rotate(-5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.whatsapp-button.animated {
    animation: bounceIn 1s ease-out, float 3s ease-in-out 1s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem;
        animation: floatMobile 2.5s ease-in-out infinite;
    }

    .whatsapp-button i {
        font-size: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .whatsapp-tooltip {
        display: none;
    }

    @keyframes floatMobile {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-5px);
        }
    }
}

/* Efecto de atención para nuevos visitantes */
.whatsapp-button.attention {
    animation: attention 0.8s ease-in-out 3;
}

@keyframes attention {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px 10px rgba(37, 211, 102, 0.6);
    }
}

/* Estilos para el sistema de tabs */
.tabs-nav {
    display: flex;
    background-color: var(--muted);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.tab-button {
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--muted-foreground);
}

.tab-button:hover {
    color: var(--foreground);
    background-color: rgba(255, 255, 255, 0.5);
}

.tab-button.active {
    background-color: var(--background);
    color: var(--foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para tabs */
@media (max-width: 768px) {
    .tabs-nav {
        grid-template-columns: 1fr;
    }

    .tab-button {
        text-align: center;
    }
}

/* Tarjetas de características principales */
.feature-card {
    background-color: #fcfcfc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Para modo oscuro */
.dark .feature-card {
    background-color: #1a202c;
    border-color: #2d3748;
}

/* Estilos para estrellas de calificación */
.fa-star.fill-yellow-400 {
    color: #fbbf24;
}

/* Estilos para casos de éxito */
.badge-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Iconos de éxito */
.fa-chart-line.text-success {
    color: var(--success);
}

.fa-check-circle.text-success {
    color: var(--success);
}

/* Para modo oscuro */
.dark .fa-star.fill-yellow-400 {
    color: #fbbf24;
    /* Mantener amarillo en modo oscuro */
}

/* === NUEVAS CLASES PARA FORMULARIO DE CONTACTO === */

/* Utilidades de layout */
.min-h-screen {
    min-height: 100vh;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* Estilos de formulario */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

/* Mensaje de éxito */
.bg-success\/10 {
    background-color: rgba(16, 185, 129, 0.1);
}

.text-3xl {
    font-size: 1.875rem;
}

/* Asegurar que los iconos de Font Awesome tengan el tamaño correcto */
.fas,
.fab {
    width: 1em;
    height: 1em;
}

/* Responsive para el formulario */
@media (max-width: 768px) {
    .card.p-8 {
        padding: 1.5rem;
    }

    .lg\:p-12 {
        padding: 3rem;
    }
}

/* === CORRECCIÓN PARA INPUTS EN MODO OSCURO === */

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

/* Específicamente para modo oscuro */
.dark .form-input,
.dark .form-textarea {
    background-color: var(--background);
    color: var(--foreground);
    border-color: var(--border);
}

.dark .form-input::placeholder,
.dark .form-textarea::placeholder {
    color: var(--muted-foreground);
}

/* Asegurar que los inputs mantengan contraste en ambos modos */
.form-input:focus,
.form-textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
    background-color: var(--background);
    color: var(--foreground);
}

.dark .form-input:focus,
.dark .form-textarea:focus {
    background-color: var(--background);
    color: var(--foreground);
}

/* === FONDO ESPECÍFICO PARA FORMULARIO === */

/* Fondo personalizado para el card del formulario */
.card {
    background-color: #fafbfc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Para modo oscuro, mantener el fondo oscuro */
.dark .card {
    background-color: var(--background);
    border-color: var(--border);
}

/* Fondo específico para las tarjetas de información de contacto */
.contact-info .card {
    background-color: #fafbfc;
}

.dark .contact-info .card {
    background-color: var(--background);
}

/* Asegurar que los inputs tengan fondo blanco dentro del formulario */
.card .form-input,
.card .form-textarea {
    background-color: #ffffff;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.dark .card .form-input,
.dark .card .form-textarea {
    background-color: var(--background);
    color: var(--foreground);
    border-color: var(--border);
}

/* Fondo para la sección de preguntas frecuentes */
.bg-muted\/30 {
    background-color: rgba(250, 251, 252, 0.3);
}

.dark .bg-muted\/30 {
    background-color: rgba(30, 41, 59, 0.3);
}

/* === BOTÓN WHATSAPP CON COLOR AZUL OSCURO === */

/* Botón Contactar por WhatsApp - color azul oscuro */
.button-whatsapp-contact {
    background-color: #2c57b2;
    color: white;
    border: 1px solid #2c57b2;
}

.button-whatsapp-contact:hover {
    background-color: #24489c;
    border-color: #24489c;
    color: white;
}

/* Para modo oscuro */
.dark .button-whatsapp-contact {
    background-color: #2c57b2;
    border-color: #2c57b2;
    color: white;
}

.dark .button-whatsapp-contact:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* === CLASE PARA ICONOS DE PROHIBIDO/NULO === */

.text-destructive {
    color: #ef4444;
    /* Rojo para modo claro */
}

.dark .text-destructive {
    color: #f87171;
    /* Rojo más claro para modo oscuro */
}

/* Opcional: puedes usar también estos iconos alternativos */
.fa-ban {
    color: #ef4444;
}

.fa-times {
    color: #ef4444;
}

.fa-circle-xmark {
    color: #ef4444;
}

/* === ESTILOS ESPECÍFICOS PARA EL BLOG === */

/* Filtros de categorías */
.badge[data-category] {
    cursor: pointer;
    transition: all 0.2s ease;
}

.badge[data-category].active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Colores de categorías */
.badge-category-tecnologia {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-category-normatividad {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-category-productividad {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-category-seguridad {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-category-tendencias {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Estilos para artículos */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Efectos hover para artículos */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

/* Paginación */
.pagination button {
    transition: all 0.2s ease;
}

.pagination button:hover:not(.active) {
    background-color: var(--muted);
}

/* Imágenes de blog */
.blog-image {
    transition: transform 0.3s ease;
}

.card:hover .blog-image {
    transform: scale(1.05);
}

/* Estados de filtro */
.article-hidden {
    display: none;
}

.article-visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .blog-filters .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* === ANIMACIONES PARA EL BLOG === */

/* Transiciones suaves para filtros */
.card {
    transition: all 0.3s ease;
}

/* Efecto de escalado en imágenes */
.card img {
    transition: transform 0.3s ease;
}

/* Notificaciones */
.fixed {
    position: fixed;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.z-50 {
    z-index: 50;
}

/* Estados para paginación */
.pagination button.bg-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Agrega esto a tu CSS */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.z-50 {
    z-index: 50;
}

.carousel-container {
    perspective: 1000px;
}

.carousel-slides {
    transform-style: preserve-3d;
}

.carousel-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

/* Efecto sutil de zoom al cambiar */
.carousel-slide img {
    transition: transform 0.3s ease-in-out;
}

.carousel-slide.active img {
    transform: scale(1.02);
}

/* Badges de categoría para artículos */
.badge-category-tecnologia {
    background-color: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-category-normatividad {
    background-color: rgba(139, 92, 246, 0.1);
    color: rgb(139, 92, 246);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-category-productividad {
    background-color: rgba(34, 197, 94, 0.1);
    color: rgb(34, 197, 94);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-category-seguridad {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-category-tendencias {
    background-color: rgba(245, 158, 11, 0.1);
    color: rgb(245, 158, 11);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Utilidades para texto */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Menú móvil - plano y sin márgenes */
.navbar-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 49;
}

.dark .navbar-mobile {
    background: #0f172a;
}

/* Cuando el menú está abierto */
.navbar-mobile.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Enlaces del menú móvil - planos y sin bordes (SOLO LOS ENLACES DE NAVEGACIÓN) */
.navbar-mobile > a:not(.button) {
    display: block;
    padding: 1rem 2rem;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    background: white;
    margin: 0;
}

.dark .navbar-mobile > a:not(.button) {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.navbar-mobile > a:not(.button):last-of-type {
    border-bottom: none;
}

.navbar-mobile > a:not(.button):hover {
    background-color: #f8fafc;
    color: var(--primary);
}

.dark .navbar-mobile > a:not(.button):hover {
    background-color: #1e293b;
}

/* Acciones del menú móvil - LOS BOTONES MANTIENEN SU ESTILO */
.navbar-mobile-actions {
    padding: 1rem 2rem;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.dark .navbar-mobile-actions {
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

/* Los botones dentro del menú móvil mantienen su estilo original */
.navbar-mobile-actions .button {
    /* Mantener todos los estilos originales de los botones */
    margin: 0;
    text-align: center;
    justify-content: center;
}

/* Botón del menú móvil cuando está abierto - fondo blanco plano */
.navbar-toggle.menu-open {
    background-color: white !important;
    color: var(--primary) !important;
    border: 1px solid #e2e8f0;
}

.dark .navbar-toggle.menu-open {
    background-color: #0f172a !important;
    border: 1px solid #334155;
    color: var(--accent) !important;
}

.navbar-toggle.menu-open i {
    color: inherit !important;
}