﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.white {
    color: white;
}

/* Fluya Studio Logo */
.logo-glow {
    border-radius: 4px;
    filter: drop-shadow(0 0 6px #ea4472);
    transition: filter 0.3s ease;
}

    .logo-glow:hover {
        filter: drop-shadow(0 0 10px #ea4472) brightness(1.1);
    }

.navbar-nav {
    display: flex;
    flex-direction: column;
}

.navbar-collapse {
    flex-basis: auto !important;
    flex-grow: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
}

.navbar-nav {
    padding-left: revert-layer;
}

.custom-navbar {
    background-color: #0d0b14 !important;
    border-bottom: none;
    box-shadow: none;
    padding-top: 8px;
    padding-bottom: 8px;
}

    /* Contacto en amarillo sin botón */
    .custom-navbar .nav-contacto {
        color: #fdb600;
        font-weight: 600;
        padding: 8px 12px;
        text-decoration: none;
    }

.nav-contacto:hover {
    color: #fff;
    text-shadow: 0 0 6px rgba(234, 68, 114, 0.6), 0 0 12px rgba(234, 68, 114, 0.8);
}


.custom-navbar .nav-link {
    color: #fff;
    font-weight: 500;
    transition: color 0.2s;
}

    .custom-navbar .nav-link:hover {
        color: var(--color-accent); /* o el color que prefieras para hover */
    }

.custom-navbar .navbar-brand {
    color: var(--color-accent);
}

    .custom-navbar .navbar-brand:hover {
        color: #fff;
    }

/* Custom Glow */

.custom-navbar .nav-link {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 255, 255, 0.3);
}

    .custom-navbar .nav-link:hover {
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 255, 255, 0.3);
    }

.custom-navbar .navbar-brand {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 255, 255, 0.3);
}

    .custom-navbar .navbar-brand:hover {
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 255, 255, 0.3);
    }

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler-icon {
    filter: invert(100%);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-dark);
}

:root {
    --color-bg: #f7fafc;
    --color-primary: #14b8a6;
    --color-secondary: #2563eb;
    --color-dark: #18181b;
    --color-light: #fff;
    --color-accent: #4ade80;
    --font-main: 'Montserrat', Arial, sans-serif;
    --font-alt: 'Roboto', Arial, sans-serif;
    /*--shadow-card: 0 8px 32px 0 rgba(31, 38, 135, 0.08);*/
    --transition-fast: 0.2s cubic-bezier(.4,0,.2,1);
}

* {
    box-sizing: border-box;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

    a:hover {
        color: var(--color-secondary);
    }

/* HEADER / HERO */
header.hero {
    background: linear-gradient(to bottom, #0d0b14, #5618f7);
    color: var(--color-light);
    padding: 60px 0 40px 0;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-text,
.hero-image {
    flex: 1;
}

.mockup-img {
    max-width: 100%;
    height: auto;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

header p {
    font-size: 1.30rem;
    max-width: 600px;
    margin: 36px auto 36px auto;
    font-weight: 400;
}

.hero-actions {
    margin-bottom: 40px;
}

.cta-btn {
    background: var(--color-accent);
    color: var(--color-dark);
    border: none;
    border-radius: 32px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 12px;
    box-shadow: 0 3px 16px 0 rgba(20,184,166,0.11);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

    .cta-btn:hover {
        background: var(--color-light);
        color: var(--color-secondary);
        transform: translateY(-3px) scale(1.03);
    }

.hero-video {
    margin: 36px auto 0 auto;
    max-width: 900px;
    border-radius: 18px;
    overflow: hidden;
}

/* Social Media Icons */
.fade-in img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    /* Optional: Give icons a little rounded corner */
    border-radius: 6px;
    /* Optional: Add a hover effect */
    transition: transform 0.2s;
}

    .fade-in img:hover {
        transform: scale(1.15);
    }

/* Propuestas */
.solution-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(30px);
    opacity: 0;
}

    .solution-card.animate {
        transform: translateY(0);
        opacity: 1;
    }

    .solution-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.2);
    }

.feature-item {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

    .feature-item.animate {
        opacity: 1;
        transform: translateX(0);
    }

    .feature-item:hover {
        transform: translateX(8px);
        background: rgba(255, 255, 255, 0.05);
    }

.cta-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

    .cta-button.animate {
        opacity: 1;
        transform: translateY(0);
    }

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 40px -12px rgba(139, 92, 246, 0.4);
    }

.section-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease;
}

    .section-title.animate {
        opacity: 1;
        transform: translateY(0);
    }

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 45rem;
    border-radius: 1rem
}

    .glass-card.animate {
        transform: translateY(0);
        opacity: 1;
    }

    .glass-card:hover {
        transform: translateY(-8px) scale(1.02);
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

.avatar {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.rating-stars {
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.company-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.3s;
}

.stagger-3 {
    animation-delay: 0.5s;
}

.stagger-4 {
    animation-delay: 0.7s;
}

.stagger-5 {
    animation-delay: 0.9s;
}

.stagger-6 {
    animation-delay: 1.1s;
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(168, 85, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

.quote-mark {
    font-size: 4rem;
    line-height: 1;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 10px;
}

/* GENERAL SECTIONS */
section {
    max-width: 100%;
    box-shadow: var(--shadow-card);
    /* QUITÉ padding de aquí para que no afecte al fondo del section, se aplica al div blanco */
    padding: 0;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    /* El color blanco se pasa a los títulos, pero el texto normal será dentro del div blanco */
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* ————————————————————————————————
   SECTIONS CON FONDO DEGRADADO
——————————————————————————————— */
.section-content {
    padding: 64px 32px;
    box-shadow: var(--shadow-card);
    color: #fff;
    max-width: 100%;
    max-height: 100%;
    min-width: 100%;
    min-height: 100%;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

/* SOLUCIONES DESTACADAS CARROUSEL INFINITO */
.carousel-track {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-slide {
    display: flex;
    gap: 30px;
    animation: scrollCarousel 20s linear infinite;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.feature-card {
    min-width: 100px;
    max-width: 400px;
    flex-shrink: 0;
}

/* Cada sección con su gradiente */
#quienes {
    background: linear-gradient(to bottom, #5618f7, #8c3af0);
}

#soluciones {
    background: linear-gradient(to bottom, #8c3af0, #ea4472);
}

#funciona {
    background: linear-gradient(to bottom, #ea4472, #fdb600);
}

#instagram {
    background: linear-gradient(to bottom, #ea4472, #fdb600);
}

#recursos {
    background: linear-gradient(to bottom, #fdb600, #0d0b14);
}

/* Al pasar el mouse */
.section-content:hover {
    box-shadow: 0 12px 64px rgba(44,101,180,0.10);
}

/* El contenido ya no tiene fondo blanco */
.content-gradient {
    padding: 0; /* solo estructura, no visual */
}


/* Div blanco dentro, con margen para dejar ver el fondo */
.content-white {
    /*background-color: white;*/
    padding: 48px 32px;
    margin: 16px; /* margen para que no ocupe todo y se vea el fondo */
    border-radius: 18px; /* un poco menos que el section */
    box-shadow: var(--shadow-card);
    color: #fff;
    justify-content: center !important;
    align-items: center !important;
}

    /* Títulos dentro del div blanco */
    .content-white h2 {
        color: #fff;
        margin-top: 0;
        font-family: var(--font-alt);
        font-size: 2rem;
        font-weight: 500;
        justify-content: center !important;
        align-items: center !important;
    }

    .content-white p {
        font-size: 1.12rem;
        line-height: 1.7;
        margin-bottom: 24px;
        color: #fff;
        justify-content: center !important;
        align-items: center !important;
    }

/* LOS TITULOS SIGUEN BLANCOS PARA CONTRASTAR EN EL FONDO DEL SECTION */
section h2 {
    font-family: var(--font-alt);
    font-size: 2rem;
    font-weight: 500;
    color: #fff;
    margin-top: 0;
}

/* Contenido interior dentro del div blanco */
.content-white {
    /*background-color: white;*/
    padding: 48px 32px;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    color: #fff;
    justify-content: center !important;
    align-items: center !important;
}

    /* Ajusto estilos de texto para que dentro de .content-white sea oscuro */
    .content-white h2 {
        color: var(--color-dark);
        margin-top: 0;
        font-family: var(--font-alt);
        font-size: 2rem;
        font-weight: 500;
    }

    .content-white p {
        font-size: 1.12rem;
        line-height: 1.7;
        margin-bottom: 24px;
        color: var(--color-dark);
    }

/* Clases para h2 & p */
.text-white-fr {
    color: #fff !important;
    margin-top: 0 !important;
    font-family: var(--font-alt) !important;
    font-size: 2rem !important;
    font-weight: 500 !important;
}

.text-white-h2 {
    color: black !important;
    margin-top: 0 !important;
    font-family: var(--font-alt) !important;
    font-size: 2rem !important;
    font-weight: 500 !important;
}

.text-white-p {
    font-size: 1.12rem !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
    color: black !important;
}

/* El divider queda igual, ya que está entre sections */
.divider {
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-primary)40%, var(--color-secondary) 100%);
    border: none;
    margin: 72px auto 52px auto;
    opacity: 0.09;
    max-width: 860px;
}

/* DESTACADOS */
.features-list {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    margin-top: 34px;
    margin-bottom: 14px;
}

/* Las cards de características quedan dentro del div blanco, no necesitan cambio */
.feature-card {
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 4px 18px rgba(20,184,166,0.09);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background 0.3s;
    cursor: pointer;
    border-left: 5px solid var(--color-secondary);
    color: var(--color-dark);
}

    .feature-card:hover {
        background: var(--color-accent);
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
        transform: scale(1.04) translateY(-4px);
    }

    .feature-card h3 {
        margin-top: 0;
        font-size: 1.15rem;
        font-weight: 700;
    }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: inline-block;
    color: var(--color-primary);
}

/* TEAM / TESTIMONIALS */
.mini-team {
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.team-card {
    background: #e7f7f4;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    overflow: hidden;
    border: 2.5px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 9px rgba(20,184,166,0.09);
    position: relative;
}

    .team-card img {
        width: 100%;
        object-fit: cover;
    }

.team-name {
    font-size: 1.01rem;
    margin-top: 6px;
    color: var(--color-secondary);
    font-weight: 600;
    text-align: center;
}

/* CALL TO ACTION */
.cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(100deg, var(--color-accent), var(--color-primary) 85%);
    box-shadow: var(--shadow-card);
    border-radius: 16px;
    padding: 34px 32px;
    margin-top: 36px;
}

.cta-bar-text {
    color: var(--color-dark);
    font-size: 1.28rem;
    font-weight: 500;
}

.cta-bar .cta-btn {
    margin: 0;
}

@media (max-width:700px) {
    .cta-bar {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }
}

/* FOOTER */
footer {
    background: #161b22;
    color: #c1e4e6;
    text-align: center;
    padding: 36px 0 10px;
    font-size: 1.09rem;
}

.footer-social {
    margin: 14px 0 8px 0;
}

    .footer-social a {
        color: var(--color-accent);
        margin-right: 18px;
        font-size: 1.45rem;
        transition: color .15s;
    }

        .footer-social a:hover {
            color: var(--color-primary);
        }

.footer-links {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #79fe8f;
}

/* Zoom Items */

.zo-wrap {
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

    .zo-wrap img.zo {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 4px;
        transition: transform 0.3s ease;
    }

    .zo-wrap:hover img.zo {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }

/* Smooth element fade-ins */
.fade-in {
    opacity: 0;
    transform: translateY(26px);
    animation: fadeInMove 1s forwards;
    /* White Glow */
    border-radius: 4px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
    transition: filter 0.3s ease;
}

.fade-in-1 {
    animation-delay: 0.2s
}

.fade-in-2 {
    animation-delay: 0.5s
}

.fade-in-3 {
    animation-delay: 0.8s
}

.fade-in-4 {
    animation-delay: 1.1s
}

@keyframes fadeInMove {
    0% {
        opacity: 0;
        transform: translateY(26px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:900px) {
    section {
        /* Eliminé padding aquí también para que el div blanco controle el padding */
        padding: 0;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width:520px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 1.01rem;
    }
}

/* CONTACTO */
body {
    margin: 0;
    font-family: sans-serif;
}

.contact-side {
    position: fixed;
    top: 0;
    right: 0; /* <-- AHORA ESTÁ A LA DERECHA */
    height: 100vh;
    display: flex;
    z-index: 1000;
    flex-direction: row-reverse; /* <-- Esto pone el trigger primero */
}

.contact-trigger {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: black;
    color: white;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 20px 10px;
    cursor: pointer;
}

.contact-form-container {
    width: 0;
    overflow: hidden;
    background: white;
    transition: width 0.4s ease;
    padding: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3); /* sombra hacia la izquierda */
}

    .contact-form-container.open {
        width: 500px;
        padding: 40px 30px;
    }

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

button {
    padding: 10px;
    background-color: #add8f0;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

    button:hover {
        background-color: #8ecae6;
    }

/* INSTAGRAM SCROLLING POST */

.insta-wrapper {
    opacity: 0;
    transform: translateX(-200px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    display: flex;
    justify-content: flex-start; /* Alinea a la izquierda */
    padding-left: 380px; /* Margen interior a la izquierda para que no quede pegado */
    max-width: 700px; /* Máximo ancho consistente con embed */
    margin: 0 auto 40px 0; /* Margen inferior y margen derecho automático para separar */
    box-sizing: border-box; /* Considera padding dentro del ancho */
}

    .insta-wrapper.visible {
        opacity: 1;
        transform: translateX(0);
    }

@keyframes fadeSlideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-content {
    display: flex;
    justify-content: center;
    background: #f6f8fa;
    padding: 48px 0;
}

.content-white {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    max-width: 860px;
    width: 100%;
    padding: 48px 36px 40px 36px;
    margin: 0 auto;
}

.text-white-h2 {
    font-size: 2.4rem;
    font-weight: bold;
    color: black;
    margin-bottom: 1.5rem;
}

.text-white-p {
    color: black;
    font-size: 1.13rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Mini Team Cards */
.mini-team {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.team-card {
    background: #f5f6fa;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(36,61,113,0.05);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}

    .team-card img {
        width: 66px;
        height: 66px;
        border-radius: 50%;
        border: 3px solid #e8eaf0;
        object-fit: cover;
        box-shadow: 0 0 4px rgba(36,61,113,0.13);
    }

    .team-card:hover {
        box-shadow: 0 6px 24px rgba(36,61,113,0.12);
    }

.team-name {
    margin-left: 20px;
    font-size: 1.04rem;
    color: #1452d1;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.hero-mockup {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
    text-align: center;
    align-items: center;
}

.hero-mockup {
    display: flex;
    flex-direction: column; /* Apila imagen y botón */
    align-items: center; /* Centra horizontalmente */
    gap: 20px; /* Espacio entre la imagen y el botón */
}

    .hero-mockup img {
        display: block;
        max-width: 100%;
        height: auto;
    }

.button-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    margin-top: 20px; /* Space between image and button */
}

.mockup-img {
    width: 150% !important;
    max-width: 900px;
    height: 150% !important;
    display: block;
    margin: 40px auto 20px;
    border-radius: 20px;
}

.mockup-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

/* Fade-in animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ANIMACIÓN: "Quiénes Somos" - Desliza desde la derecha, termina centrada */
#quienes .content-white {
    opacity: 0;
    transform: translateX(200px); /* inicia desplazada a la derecha */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    max-width: 700px;
    margin: 0 auto 40px auto; /* CENTRADO horizontal */
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}

    #quienes .content-white.visible {
        opacity: 1;
        transform: translateX(0);
    }

/* Animación para la sección ¿Cómo Funciona? - slide desde la izquierda (puedes cambiar a derecha si quieres) */
#funciona .content-white {
    opacity: 0;
    transform: translateX(-200px); /* inicia desplazada a la izquierda */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    max-width: 700px;
    margin: 0 auto 40px auto; /* centrado horizontal con margen abajo */
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}

    #funciona .content-white.visible {
        opacity: 1;
        transform: translateX(0); /* posición final centrada */
    }

/* Animación para la sección Recursos - Desliza desde la derecha y termina centrada */
#recursos .content-white {
    opacity: 0;
    transform: translateX(200px); /* inicio desplazado a la derecha */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    max-width: 700px;
    margin: 0 auto 40px auto; /* centrado horizontal, margen inferior */
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}

    #recursos .content-white.visible {
        opacity: 1;
        transform: translateX(0); /* posición final centrada */
    }

/* FLIP CARDS */
/* Nuevas variables de color basadas en tu ejemplo de Tailwind */
:root {
    --color-gradient-start: #4c1d95;
    --color-gradient-mid: #1e3a8a;
    --color-gradient-end: #1e40af;
    --color-purple-200: #d8b4fe;
}

.ia-grid-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
    padding-top: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.grid-item {
    perspective: 1000px;
    height: 320px;
    position: relative;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.grid-item.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Ambas caras con fondo sólido/translúcido para evitar transparencia molesta */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 1.5rem;
    color: white;
    box-sizing: border-box;
    /* Fondo con opacidad mayor para evitar que se vea contenido por detrás*/
    background: rgba(30, 30, 30, 0.95); /* fondo oscuro semiopaco */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Fondos personalizables si quieres cambiar */
.flip-card-front {
    /* Opcional: usar un fondo distinto si quieres */
}

.solution-card {
    background: transparent; /* Ya definido en las caras */
    border: none; /* Para evitar borde duplicado */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.grid-item:hover .flip-card-front {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.flip-card-back {
    transform: rotateY(180deg);
    /* Así la cara trasera también tiene fondo consistente */
    background: rgba(35,35,35,0.95);
}

/* Icono con animación flotante */
.card-icon {
    width: 96px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.65));
    animation: float 3s ease-in-out infinite;
}

/* Texto frontal */
.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
}

/* Texto trasero */
.back-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.3;
}

.back-card-description {
    font-size: 0.95rem;
    color: var(--color-purple-200);
    line-height: 1.5;
    text-align: center;
}

/* Animación de flotación para icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Fondo degradado para toda la sección */
.ia-grid {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-mid) 50%, var(--color-gradient-end) 100%);
    padding-bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .ia-grid-title {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .back-card-title {
        font-size: 1rem;
    }

    .back-card-description {
        font-size: 0.85rem;
    }

    .grid-item {
        height: 280px;
    }
}

/* Tarjetas de Servicio */
.service-card {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 1rem; /* rounded-2xl */
    padding: 2rem; /* p-8 */
    border: 1px solid rgba(255, 255, 255, 0.125);
}

    .service-card.animate {
        transform: translateY(0);
        opacity: 1;
    }

    .service-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        border-color: rgba(139, 92, 246, 0.3);
    }

/* Icono emoji con animación bounce */
.icon-bounce {
    animation: bounce 2s infinite;
    user-select: none;
}

/* Animación bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Animación pulse para botón */
.pulse-button {
    animation: pulse 2s infinite;
}

/* Animación pulse */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* Animaciones escalonadas para aparición */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.3s;
}

.stagger-3 {
    animation-delay: 0.5s;
}

.stagger-4 {
    animation-delay: 0.7s;
}

.stagger-5 {
    animation-delay: 0.9s;
}

.stagger-6 {
    animation-delay: 1.1s;
}

/* Para el gradiente que aparece debajo del texto */
.w-16 {
    width: 4rem;
}

.h-1 {
    height: 0.25rem;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-purple-400 {
    --tw-gradient-from: #a78bfa;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(167, 139, 250, 0));
}

.to-blue-400 {
    --tw-gradient-to: #60a5fa;
}

/* Border radius for that rounded pill shape */
.rounded-full {
    border-radius: 9999px;
}

/* Text colors */
.text-white {
    color: white;
}

.text-purple-100 {
    color: #ddd6fe;
}

.text-purple-300 {
    color: #c4b5fd;
}

/* Fonts and text */
.font-bold {
    font-weight: 700;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-tight {
    line-height: 1.25;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 2.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

/* Layout */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.pt-4 {
    padding-top: 1rem;
}

.p-8 {
    padding: 2rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center; /* Centra horizontalmente el conjunto */
    gap: 2rem; /* Separación entre las estadísticas */
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-8 {
    gap: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.text-center {
    text-align: center;
}

/* Button styles */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-purple-500 {
    --tw-gradient-from: #7c3aed;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(124, 58, 237, 0));
}

.to-blue-500 {
    --tw-gradient-to: #3b82f6;
}

.hover\:from-purple-600:hover {
    --tw-gradient-from: #6b21a8;
}

.hover\:to-blue-600:hover {
    --tw-gradient-to: #2563eb;
}

.text-lg {
    font-size: 1.125rem;
}

.font-bold {
    font-weight: 700;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.rounded-full {
    border-radius: 9999px;
}

.transition-all {
    transition-property: all;
}

.duration-300 {
    transition-duration: 300ms;
}

.transform {
    transform-origin: center;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.text-purple-200 {
    color: #c4b5fd;
}

.mt-4 {
    margin-top: 1rem;
}

/* BULLETS */
@keyframes fadeInMove {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconBounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

.feature-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: 'Work Sans', sans-serif;
    text-align: center;
    font-size: 1rem;
    border-radius: 4px;
    padding: 10px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

    .feature-item .icon {
        font-size: 2.2rem;
        margin-bottom: 8px;
        animation: iconBounce 1.5s ease-in-out infinite;
        transition: transform 0.3s ease;
        will-change: transform;
    }

    /* Hover dinámico */
    .feature-item:hover .icon {
        transform: scale(1.2) rotate(2deg);
        animation: none; /* pausa el bounce cuando el usuario pasa el mouse */
    }

/* Fade-in al cargar */
.fade-in {
    opacity: 0;
    transform: translateY(26px);
    animation: fadeInMove 1s forwards;
}

/* Pajarito IA */
#pajarito {
    position: fixed;
    top: 120px;
    left: 40px;
    z-index: 9999;
    pointer-events: auto;
    cursor: pointer;
    transform: scaleX(-1);
}

    #pajarito:hover {
        transform: scaleX(-1) scale(1.1);
    }

    #pajarito img {
        width: 56px;
        height: auto;
        animation: aleteo 0.6s ease-in-out infinite alternate, respirar 4s ease-in-out infinite;
        transform-origin: center;
    }

/* Wing flapping - runs independently */
@keyframes aleteo {
    0% {
        transform: rotateZ(-2deg) scaleY(1);
    }

    100% {
        transform: rotateZ(2deg) scaleY(0.95);
    }
}

/* Breathing - runs independently */
@keyframes respirar {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Flying state - faster wing flaps */
#pajarito.flying img {
    animation: aleteoRapido 0.3s ease-in-out infinite alternate, respirar 4s ease-in-out infinite;
}

@keyframes aleteoRapido {
    0% {
        transform: rotateZ(-4deg) scaleY(0.9);
    }

    100% {
        transform: rotateZ(4deg) scaleY(1.1);
    }
}

/* AI Icon */
.icono-animado {
    animation: animacionIcono 6s ease-in-out infinite;
    transition: transform 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

    /* Hover: agrandado e inclinación */
    .icono-animado:hover {
        transform: scale(1.15) rotate(3deg);
    }

/* Animación combinada: flotación + giro leve */
@keyframes animacionIcono {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-4px) rotate(1deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(4px) rotate(-1deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* LOTTIE */
#waveCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    pointer-events: none;
    z-index: -1;
}

/* SERVICIOS QUE */
.text-purple-400 {
    color: #a78bfa;
}
/* Tailwind purple-400 */
.text-pink-400 {
    color: #f472b6;
}
/* Tailwind pink-400 */
.text-yellow-400 {
    color: #facc15;
}
/* Tailwind yellow-400 */
.text-green-400 {
    color: #4ade80;
}
/* Tailwind green-400 */
.text-blue-400 {
    color: #60a5fa;
}
/* Tailwind blue-400 */

.rotating-text {
    display: inline-block;
    position: relative;
    min-width: 150px; /* adjust for longest word */
    transform: scale(0.85); /* scale down the rotating word */
    vertical-align: bottom; /* align nicely with the text baseline */
}

.word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    display: flex;
    font-weight: 700;
    top: -48px;
    left: -1px;
    transform: scale(1.2);
}

.letter {
    display: inline-block;
    transform-origin: center center 25px;
}

    .letter.out {
        transform: rotateX(90deg);
        transition: 0.32s cubic-bezier(0.6, 0, 0.7, 0.2);
        opacity: 0;
    }

    .letter.behind {
        transform: rotateX(-90deg);
        opacity: 0;
    }

    .letter.in {
        transform: rotateX(0deg);
        transition: 0.38s ease;
        opacity: 1;
    }

/* CARDS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.gradient-bg {
    background: linear-gradient(135deg, #4c1d95 0%, #1e3a8a 50%, #1e40af 100%);
}

.solution-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .solution-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.2);
    }

.feature-item {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

    .feature-item.animate {
        opacity: 1;
        transform: translateX(0);
    }

    .feature-item:hover {
        transform: translateX(8px);
        background: rgba(255, 255, 255, 0.05);
    }

.cta-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

    .cta-button.animate {
        opacity: 1;
        transform: translateY(0);
    }

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 40px -12px rgba(139, 92, 246, 0.4);
    }

.section-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease;
}

    .section-title.animate {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.stats-counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b5cf6;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .testimonial-card:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-4px);
    }

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* BUBBLECHAT EFFY */
.bubblechat {
    transform: scaleX(-1) !important;
    display: inline-block; /* ensures transform applies properly */
    transform-origin: center; /* flip around vertical center axis */
    position: relative; /* allows offsetting */
    top: 15px;
    right: 15px;
    width: 30px !important;
    height: 30px !important;
    /* Subtle floating animation */
    animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {
    0%, 100% {
        transform: scaleX(-1) translateY(0);
    }

    50% {
        transform: scaleX(-1) translateY(-5px);
    }
}
/* SPEACH BUBBLE */
#bubble-container {
    position: absolute;
    bottom: 60px; /* above the bird */
    left: 50%;
    transform: translateX(-50%);
    display: none;
    pointer-events: auto;
    font-family: sans-serif;
}

/* Full speech bubble style */
.speech-bubble {
    background: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 220px;
    position: relative;
    font-size: 14px;
}

    .speech-bubble::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 20px;
        border-width: 10px 10px 0;
        border-style: solid;
        border-color: white transparent transparent;
    }

    .speech-bubble ul {
        list-style: none;
        margin: 10px 0 0;
        padding: 0;
    }

    .speech-bubble li {
        padding: 6px;
        background: #f0f0f0;
        margin-bottom: 6px;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.2s;
    }

        .speech-bubble li:hover {
            background: #e0e0ff;
        }

        .speech-bubble:hover,
        .speech-bubble li:hover {
            animation: none !important;
            transition-property: opacity !important; /* keep fade only */
        }