
@import url("https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css");
/* 🎨 VARIABLES DE COLOR (Recuperadas de tu tailwind.config) */
:root {
  --color-primary: #111827; /* Negro elegante */
  --color-secondary: #00acee; /* Azul premium */
  --color-call: #dc2626; /* Rojo premium */
  --color-accent: #059669; /* Verde éxito */
  --color-light: #f8fafc;
  --color-dark: #1f2937;
  scroll-behavior: smooth;
}

/* 🖌️ CLASES DE UTILIDAD PARA COLORES */
.bg-primary { background-color: var(--color-primary); }
.text-primary { color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.text-secondary { color: var(--color-secondary); }
.bg-call { background-color: var(--color-call); }
.text-call { color: var(--color-call); }
.bg-accent { background-color: var(--color-accent); }
.text-accent { color: var(--color-accent); }
.bg-light { background-color: var(--color-light); }
.text-light { color: var(--color-light); }
.bg-dark { background-color: var(--color-dark); }
.text-dark { color: var(--color-dark); }

/* 🚀 KEYFRAMES Y ANIMACIONES */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse { 
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* CLASES DE ANIMACIÓN CORRESPONDIENTES */
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-pulse-slow { animation: pulse 3s infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* ✅ FIX: Clases para Gradientes Personalizados */
.custom-gradient-br {
    background: linear-gradient(to bottom right, var(--color-primary), var(--color-secondary));
}
.custom-gradient-r {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

/* 🖼️ ESTILOS CRÍTICOS Y PERSONALIZADOS (Tu CSS existente) */
body {
  background-color: #ffffff;
  color: var(--color-primary);
   font: 14px/1.4 Garamond, serif;
  font-family: 'Helvetica', 'Arial', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}




/* Ajuste de colores por consistencia de diseño */
.bg-blue-100 { background-color: #e0f7ff; } 
.bg-green-100 { background-color: #d1fae5; }
.text-blue-600 { color: var(--color-secondary); } 





ul { list-style: none; padding: 0; margin: 0; }


header {
  
    position: absolute; 
    top: 0; 
    left: 0;
    width: 100%; 
    padding: 20px 5%; 
    box-sizing: border-box; 
    
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: #14141400; 
    box-shadow: 0 1px 5px rgba(0,0,0,0.05); 
    z-index: 101; 
}

.logo a {
    font-size: 10px; font-weight: bold; color: #ffffff;
    text-transform: uppercase; letter-spacing: 0.15em;
}
.logo img {
   width: 50px;
    
}
/* ESTILO DE ENLACES (Subrayado Negro) */
#main-menu a, .header-cta a {
    color: #000000; text-transform: uppercase; text-decoration: none;
    letter-spacing: 0.15em; display: inline-block; padding: 15px 20px;
  
    position: relative;
}
#main-menu a:after, .header-cta a:after {    
    background: #0881f1; bottom: 0; content: ""; display: block;
    height: 2px; left: 50%; position: absolute;
    transition: width 0.3s ease 0s, left 0.3s ease 0s; width: 0;
   
}
#main-menu a:hover:after, .header-cta a:hover:after {    
    width: 100%; left: 0;    
}

/* BOTONES CTA */
.btn-primary-cta {
    background-color: var(--color-primario); color: #fff !important; 
    border-radius: 5px; font-weight: bold;
    padding: 10px 15px; transition: background-color 0.3s;
    text-decoration: none;
}
.btn-primary-cta:hover { background-color: #0056b3; }
.btn-secondary-cta {
    background: var(--color-secundario); color: #fff !important; 
    border-radius: 5px; font-weight: bold; 
    padding: 10px 15px; transition: background-color 0.3s;
    text-decoration: none;
}
.btn-secondary-cta:hover { background: #555; }

#main-menu ul { display: flex; gap: 10px; }
.menu-toggle { display: none; cursor: pointer; font-size: 30px; color: #000; z-index: 101; }

.hero-section {
   
    min-height: 80vh; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    background: var(--color-fondo-claro);
    color: var(--color-texto-principal); 
    
    padding: 120px 5% 60px 5%; 
}
.hero-section h1 {
    font-size: 48px; font-weight: bold; margin-bottom: 20px; max-width: 800px;
}
.hero-section p {
    font-size: 20px; margin-bottom: 40px;
}

/* ==================================== */
/* 4. FOOTER Y AJUSTES DE ICONOS */
/* ==================================== */
footer { 
    background: #000; color: #fff; padding: 40px 5%; font-size: 14px; 
    display: flex; flex-wrap: wrap; justify-content: space-between; 
    font-family: Garamond, serif; 
}
footer h4 { color: #fff; margin-bottom: 15px; font-size: 16px; font-weight: bold; }
footer p, footer a { color: #ccc; text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--color-primario); }
.footer-column { min-width: 150px; margin-right: 20px; }

.social-links { margin-top: 15px; }
.social-links a i { 
    font-size: 28px; color: #fff; vertical-align: middle; margin-right: 5px; 
}
.social-links a:hover i {
    color: var(--color-primario); 
}
.footer-copyright { width: 100%; text-align: center; margin-top: 20px; border-top: 1px solid #1a1a1a; padding-top: 15px; }

/* ==================================== */
/* 5. MEDIA QUERIES (CORRECCIÓN MENÚ MÓVIL y Cierre 'X') */
/* ==================================== */
@media screen and (max-width: 900px) {
    /* Muestra el icono de la hamburguesa */
    .menu-toggle { 
        display: block; 
        z-index: 1001; /* Alto para que sea clicable */
    }
    
    /* Contenedor del menú: OCULTAR Y CUBRIR TODA LA PANTALLA */
    #main-menu {
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh; /* CLAVE: Cubre el 100% del viewport */
        background: rgba(0, 0, 0, 0.95); 
        
        display: none; 
        z-index: 1000; 
        transform: translateX(100%); 
        transition: transform 0.3s ease-in-out;
    }
    
    /* Muestra el menú cuando está 'open' */
    #main-menu.open { 
        display: flex;
        flex-direction: column;
        justify-content: center;
        transform: translateX(0); 
    }
    
    /* Estilos de los enlaces en el menú abierto */
    #main-menu a, #main-menu .btn-primary-cta { 
        color: #fff !important; /* Texto blanco para contraste */
        padding: 15px 20px;
        display: block;
    } 
    #main-menu a:after { 
        background: #fff; /* Subrayado blanco */
    } 
    
    #main-menu ul { 
        flex-direction: column; 
        text-align: center; 
        padding: 0;
    }
    .mobile-cta-item {
        margin-top: 20px;
    }

    /* Ajuste del Hero para móviles */
    .hero-section h1 {
        font-size: 32px;
    }
    .hero-section p {
        font-size: 18px;
    }
}
/* Tus estilos de Neurodiseño (.card-elegant, .modal, etc.) */
.card-elegant {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #f3f4f6;
}

.card-elegant:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.gradient-subtle {
  background: linear-gradient(135deg, var(--color-light) 0%, #f1f5f9 100%);
}

.text-readable { line-height: 1.7; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

img { max-width: 100%; height: auto; }

.icon-elegant {
  filter: grayscale(100%) brightness(0.3);
  transition: all 0.3s ease;
}

.card-elegant:hover .icon-elegant {
  filter: grayscale(0%) brightness(1);
}

.counter { font-variant-numeric: tabular-nums; }

.neuro-shadow {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pulse-urgency { animation: pulse 2s infinite; }

.will-change-transform { will-change: transform; }

/* Estilos funcionales del Modal */
.modal {
  display: none; 
  position: fixed;
  inset: 0; 
  z-index: 1000;
  overflow: hidden; 
  background-color: rgba(0, 0, 0, 0.95); 
  align-items: center; 
  justify-content: center;
  flex-direction: column;
}

.modal-content {
  position: relative;
  width: 95%; 
  height: 95%; 
  border-radius: 1rem; 
  overflow: hidden; 
  box-shadow: 0 10px 25px var(--color-secondary); 
}

.close {
  color: #fff;
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001; 
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
}

.close:hover,
.close:focus {
  color: var(--color-secondary); 
  text-decoration: none;
  cursor: pointer;
}

/* Estilos Estéticos AVANZADOS (Animaciones) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll.animate-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}
.card-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(3, 138, 248, 0.3), 0 4px 6px -4px rgba(94, 169, 255, 0.3);
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color:var(--color-secondary); 
  background-color: var(--color-secondary); 
  border-radius: 9999px;
}
/* Mejora legibilidad */
p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 65ch; /* Límite de caracteres por línea */
}

/* Espaciado para escaneo */
section > * + * {
  margin-top: 1.5rem;
}

/* Destaca puntos clave */
.key-point {
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  margin: 1.5rem 0;
}

/* Texto para PYMES */
.pymes-friendly {
  font-size: 1.125rem;
  color: #4b5563;
}


/*PAGINA ALTERNA*/


.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Efecto de brillo sutil en hover */
.group:hover .group-hover\:shadow-glow {
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.15);
}

/* Animación para la flecha */
@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.group-hover/button:hover .fa-arrow-right {
    animation: bounceRight 1s infinite;
}

/* Estilos adicionales para mejor experiencia */
#liveDemoModal, #portfolioModal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilo para el iframe durante carga */
#iframeLoading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mejoras para hover en proyectos */
.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

/* Efecto de burbuja de chat */
.chat-bubble {
    position: relative;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e5ea;
}

.chat-bubble:before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 0px solid transparent;
    border-bottom: 16px solid transparent;
    border-right: 16px solid #fff;
}

/* Animación para los checks de WhatsApp */
@keyframes checkPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.text-green-500.animate-pulse {
    animation: checkPulse 2s infinite;
}

/* Efecto de sombra para el contenedor del chat */
.shadow-whatsapp {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Efecto de gradiente sutil en el fondo del chat */
.bg-whatsapp-gradient {
    background: linear-gradient(180deg, #e1ffc7 0%, #ffffff 100%);
}

/* Responsive adicional */
@media (max-width: 640px) {
    .ml-12 {
        margin-left: 3rem;
    }
    
    .max-w-md {
        max-width: 100%;
    }
}

/* Animaciones personalizadas */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

/* Efecto de brillo en los puntos centrales */
.hidden.lg\:block {
    transition: all 0.5s ease;
}

.hidden.lg\:block:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Línea de tiempo con gradiente animado */
.bg-gradient-to-b {
    background-size: 100% 200%;
    animation: gradientShift 3s ease infinite alternate;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

/* Efecto de aparición escalonada para los elementos de cada paso */
.bg-gradient-to-br.from-gray-800 {
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adicional */
@media (max-width: 1024px) {
    .lg\:w-5\/12 {
        width: 100%;
    }
    
    .lg\:pr-12, .lg\:pl-12 {
        padding-right: 0;
        padding-left: 0;
    }
}

/* Mejoras de legibilidad */
.prose {
    color: #d1d5db;
}

.prose strong {
    color: #ffffff;
}
img[data-aspect-ratio] {
  aspect-ratio: attr(data-aspect-ratio);
}

/* Para todas las imágenes */
img {
  aspect-ratio: attr(width) / attr(height);
}