/* ============================================
   LTC - LABORATORIO DE TECNOLOGÍAS CREATIVAS
   Hoja de estilos principal
   ============================================ */

/* --------------------------------------------
   1. TIPOGRAFÍAS
   -------------------------------------------- */

/* Fuente personalizada TrashHand para títulos */
@font-face {
    font-family: 'TrashHand';
    src: url('fonts/TrashHand.TTF');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Importar Poppins de Google Fonts para textos */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Tipografía base del body */
body {
    font-family: 'Poppins', 'Noto Sans', sans-serif;
    font-weight: 400;
}

/* Títulos principales con TrashHand */
h1 {
    font-family: 'TrashHand', 'Poppins', sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 0.02em !important;
}

/* Tamaños de títulos */
h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.4;
}

/* Resto de elementos con Poppins */
p, span, a, li, label, input, textarea, button {
    font-family: 'Poppins', 'Noto Sans', sans-serif;
}

/* --------------------------------------------
   2. VARIABLES DE COLOR (PALETA LTC)
   -------------------------------------------- */

:root {
    --ltc-green: #14B8A6;
    --ltc-green-light: #5EEAD4;
    --ltc-orange: #F97316;
    --ltc-orange-light: #FB923C;
    --ltc-yellow: #FBBF24;
    --ltc-purple: #A855F7;
    --ltc-pink: #EC4899;
    --ltc-blue: #3B82F6;
    --ltc-dark: #1F2937;
}

/* Clases de utilidad para colores de marca */
.brand-green { 
    color: var(--ltc-green); 
}

.bg-brand-green { 
    background-color: var(--ltc-green); 
}

.brand-orange { 
    color: var(--ltc-orange); 
}

.bg-brand-orange { 
    background-color: var(--ltc-orange); 
}

.brand-dark { 
    color: var(--ltc-dark); 
}

.bg-brand-dark { 
    background-color: var(--ltc-dark); 
}

/* --------------------------------------------
   3. EFECTOS DECORATIVOS
   -------------------------------------------- */

/* Subrayado decorativo con trazo orgánico */
.scribble-underline {
    position: relative;
    display: inline-block;
}

.scribble-underline::after {
    content: '';
    position: absolute;
    left: -5%;
    bottom: -8px;
    width: 110%;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 15'%3E%3Cpath d='M5,10 Q20,5 35,9 T65,10 Q80,7 95,10 T125,9 Q140,11 155,8 T185,10' stroke='%23F97316' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.8;
}

/* Patrón de puntos decorativos */
.decorative-dots {
    background-image: radial-gradient(circle, var(--ltc-orange) 2px, transparent 2px);
    background-size: 25px 25px;
    opacity: 0.15;
}

/* Bordes dibujados a mano */
.hand-drawn-border {
    position: relative;
}

.hand-drawn-border::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 3px solid currentColor;
    border-radius: inherit;
    opacity: 0.3;
    transform: rotate(-1deg);
}

/* --------------------------------------------
   4. ANIMACIONES
   -------------------------------------------- */

/* Animación de blobs orgánicos */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95) rotate(-5deg);
    }
    75% {
        transform: translate(15px, -15px) scale(1.05) rotate(3deg);
    }
}

.animate-blob {
    animation: blob 10s infinite ease-in-out;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Animación de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* --------------------------------------------
   5. NAVEGACIÓN
   -------------------------------------------- */

/* Navbar con transiciones suaves y blur */
#main-nav {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

#main-nav.translate-y-0 {
    transform: translateY(0);
}

#main-nav.-translate-y-full {
    transform: translateY(-100%);
}

/* Contenedor principal del nav - centrado vertical */
#main-nav .container {
    display: flex;
    align-items: center;
    min-height: 70px;
}

/* Logo - centrado vertical */
#main-nav .flex.items-center.space-x-2 {
    display: flex;
    align-items: center;
    height: 100%;
}

#main-nav img {
    display: block;
    margin: 0;
}

/* Menú desktop - centrado vertical */
#main-nav .hidden.md\:flex {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Links del menú - centrado vertical */
#main-nav .hidden.md\:flex a {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
}

/* Botón "Llevar a mi escuela" - centrado vertical */
#main-nav .hidden.md\:flex a.bg-teal-500 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding:.8rem;
    line-height: 1;
}

/* Botón móvil - centrado vertical */
#main-nav .md\:hidden button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}
/* AGREGAR AL FINAL DEL ARCHIVO: */

/* Ocultar menú desktop en mobile */
@media (max-width: 767px) {
    #main-nav .hidden.md\:flex {
        display: none !important;
    }
    
    #main-nav .md\:hidden {
        display: block !important;
    }
}
/* Menú hamburguesa mobile */
#mobile-menu.show {
    max-height: 400px !important;
}

#mobile-menu a {
    transition: background-color 0.2s ease;
}

#mobile-menu a:active {
    background-color: rgba(20, 184, 166, 0.1);
}

/* Animación del icono hamburguesa */
#mobile-menu-btn {
    transition: transform 0.2s ease;
}

#mobile-menu-btn:active {
    transform: scale(0.95);
}
/* --------------------------------------------
   6. SECCIÓN HERO (GRADIENTES)
   -------------------------------------------- */

/* Gradiente vibrante con textura para hero */
.hero-gradient-vibrant {
    background: linear-gradient(165deg, 
        #0a4d4e 0%,      /* Verde azulado profundo */
        #1e293b 25%,     /* Slate oscuro */
        #312e81 50%,     /* Índigo profundo */
        #1f2937 75%,     /* Gris carbón */
        #0c4a6e 100%     /* Azul océano */
    );
    position: relative;
    overflow: hidden;
}

/* Capas de color decorativas del hero */
.hero-gradient-vibrant::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 30%, rgba(94, 234, 212, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(251, 146, 60, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Patrón de puntos sobre el hero */
.hero-gradient-vibrant::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

/* --------------------------------------------
   7. COMPONENTES INTERACTIVOS
   -------------------------------------------- */

/* Botones con transiciones suaves */
button,
.btn {
    transition: all 0.3s ease;
    border-radius: 12px;
}

button:hover,
.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Efecto hover bounce */
.hover-bounce {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hover-bounce:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Tarjetas con bordes orgánicos y efecto hover */
.card-organic {
    border-radius: 24px;
    position: relative;
}

.card-organic::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--ltc-green), var(--ltc-orange), var(--ltc-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-organic:hover::before {
    opacity: 0.3;
}

/* Círculos con iconos y halo de color */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    overflow: visible;
}

.icon-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    transform: scale(1.3);
    z-index: -1;
}
/* Contenedor de la palabra rotativa */
.word-rotator {
    display: inline-block;
    position: relative;
    min-width: 150px;
    text-align: left;
}

/* Animación de salida (fade out + slide up) */
.word-rotator.fade-out {
    animation: fadeOutUp 0.4s ease-in forwards;
}

/* Animación de entrada (fade in + slide down) */
.word-rotator.fade-in {
    animation: fadeInDown 0.4s ease-out forwards;
}

/* Keyframes para salida */
@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Keyframes para entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cursor parpadeante opcional (efecto typing) */
.word-rotator.typing::after {
    content: '|';
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* --------------------------------------------
   8. FORMULARIOS
   -------------------------------------------- */

/* Estilos de placeholders */
input::placeholder,
textarea::placeholder {
    color: #9CA3AF;
    opacity: 0.7;
}

/* Estados de focus con colores LTC */
input:focus,
textarea:focus,
button:focus {
    outline: 3px solid var(--ltc-green);
    outline-offset: 2px;
}

/* --------------------------------------------
   9. UTILIDADES
   -------------------------------------------- */

/* Scroll suave en toda la página */
html {
    scroll-behavior: smooth;
}

/* Asegurar imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Sombras orgánicas */
.shadow-organic {
    box-shadow: 
        0 10px 30px -5px rgba(20, 184, 166, 0.15),
        0 4px 10px -2px rgba(249, 115, 22, 0.1);
}

/* Gradientes de marca */
.gradient-ltc {
    background: linear-gradient(135deg, var(--ltc-green) 0%, var(--ltc-blue) 50%, var(--ltc-orange) 100%);
}

.gradient-ltc-soft {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
}

/* Texto con gradiente de color */
.text-gradient-ltc {
    background: linear-gradient(135deg, var(--ltc-green), var(--ltc-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------
   10. RESPONSIVE (MOBILE FIRST)
   -------------------------------------------- */

/* Ajustes para móviles pequeños */
@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem; /* 30px */
        line-height: 2.25rem;
    }
    
    h2 {
        font-size: 1.5rem; /* 24px */
        line-height: 2rem;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

/* Touch targets mínimos para accesibilidad móvil */
@media (max-width: 768px) {
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}
/* --------------------------------------------
11.   SECCIÓN CLIENTES - CAROUSEL
   -------------------------------------------- */

/* Animación de scroll infinito */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Track del carousel con animación */
.carousel-track {
    animation: scroll-infinite 30s linear infinite;
    width: fit-content;
}

/* Pausar animación al hover para que el usuario pueda ver mejor */
.carousel-track:hover {
    animation-play-state: paused;
}

/* Asegurar que los slides no se deformen */
.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

/* Efecto de filtro en las imágenes de clientes */
.carousel-slide img {
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.carousel-slide img:hover {
    filter: grayscale(0%);
}

/* Ajustes responsive para velocidad de animación */
@media (max-width: 640px) {
    .carousel-track {
        animation-duration: 20s; /* Más rápido en móvil */
    }
    
    .carousel-slide {
        min-width: 140px; /* Slides más pequeños en móvil */
    }
}
/* --------------------------------------------
   12. CUSTOMIZACIONES ESPECÍFICAS
   -------------------------------------------- */

/* Ajuste de padding del hero en desktop */
.lg\:pt-48 {
    padding-top: 6rem !important;
}

/* Margen del logo principal */
.logo-ltc {
    margin-bottom: 2rem !important;
}

/* Textos del header en blanco */
header p {
    color: #fff !important;
}

/* Título naranja en sección de filosofía */
#fundamentos h2 {
    font-family: 'TrashHand', 'Poppins', sans-serif !important;
    color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
    font-size: 2.5rem;
}

/* H3 con TrashHand en sección de filosofía */
#fundamentos h3, #clientes h2{
    font-family: 'TrashHand', 'Poppins', sans-serif !important;
    font-size: 1.8rem;
}
#clientes h2 {
    font-family: 'TrashHand', 'Poppins', sans-serif !important;
    font-size: 2.3rem;
    color:var(--ltc-green);
}
/* --------------------------------------------
   SECCIÓN FILOSOFÍA - FONDO CON IMAGEN
   -------------------------------------------- */

/* Fondo con imagen para la sección de filosofía pedagógica */
.philosophy-section {
    background-image: url('images/fondo1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
}

/* Overlay semi-transparente para mejorar legibilidad del texto */
.philosophy-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5);
    /* Ajusta la opacidad según necesites:
       0.85 = fondo más visible (texto más legible)
       0.5 = fondo más transparente (imagen más visible) */
    pointer-events: none;
    z-index: 1;
}

/* Asegurar que el contenido esté por encima del overlay */
.philosophy-section > .container {
    position: relative;
    z-index: 2;
}

/* Responsive: Ajustes para móvil */
@media (max-width: 640px) {
    .philosophy-section {
        background-size: cover;
        background-position: center center;
    }
}

/* Responsive: Ajustes para tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .philosophy-section {
        background-size: cover;
        background-position: center center;
    }
}

/* Desktop: La imagen se ve completa */
@media (min-width: 1025px) {
    .philosophy-section {
        background-size: cover;
        background-position: center center;
    }
}
/* --------------------------------------------
   SECCIÓN KITS - FONDO CON IMAGEN
 Fondo con imagen para la sección de kits */
.kits-section {
    background-image: url('images/fondo2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
}

/* Overlay semi-transparente para mejorar legibilidad del texto */
.kits-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(253, 253, 253, 0.3);
    pointer-events: none;
    z-index: 1;
}

/* Asegurar que el contenido esté por encima del overlay */
.kits-section > .container {
    position: relative;
    z-index: 2;
}

/* Responsive: Ajustes para móvil */
@media (max-width: 640px) {
    .kits-section {
        background-size: cover;
        background-position: center center;
    }
}

/* Responsive: Ajustes para tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .kits-section {
        background-size: cover;
        background-position: center center;
    }
}

/* Desktop: La imagen se ve completa */
@media (min-width: 1025px) {
    .kits-section {
        background-size: cover;
        background-position: center center;
    }
}
/* --------------------------------------------
   AJUSTES VISUALES PARA SECCIÓN KITS - IMAGEN DE FONDO
   -------------------------------------------- */

#kits {
    padding:5rem !important;
}
/* Contenedor principal con imagen de fondo */
#kits .kit-image-container {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay sutil para mejorar legibilidad */
#kits .kit-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

/* Botones flotantes de componentes */
#kits .floating-badges {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
    width: 100%;
}

#kits .badge-component {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

#kits .badge-component:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    border-color: rgba(249, 115, 22, 0.6);
    background: rgba(255, 255, 255, 1);
}

/* Responsive: ajustes para móvil */
@media (max-width: 640px) {
    #kits .kit-image-container {
        min-height: 400px;
    }
    
    #kits .floating-badges {
        bottom: 1rem;
        gap: 0.5rem;
    }
    
    #kits .badge-component {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    #kits .kit-title-overlay {
        top: 1rem;
        left: 1rem;
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    #kits {
        padding: 0 !important;
    }
}
/* ============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================ */
.whatsapp-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

/* Responsive móvil */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}