/* assets/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #faf9f8;
    --bg-surface: #ffffff;
    --text-primary: #1e1e2a;
    --text-secondary: #4a4a5a;
    --border-light: #e4e2e0;
    --accent: #4f46e5;
    --accent-hover: #6366f1;
    --accent-soft: #eef2ff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.02);
    --transition: all 0.2s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Fondo animado suave con degradado lineal (base) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(135deg, 
                rgba(79, 70, 229, 0.02) 0%, 
                rgba(79, 70, 229, 0.01) 30%,
                transparent 70%);
    background-size: 200% 200%;
    animation: subtleShift 18s ease infinite;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-body);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(8px);
    background-color: rgba(250, 249, 248, 0.85);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
}
.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--accent);
}
.controls-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
/* Grupo de idiomas (botones sin espacio) */
.lang-group {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 2rem;
    overflow: hidden;
}
.lang-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}
.lang-btn:not(:last-child) {
    border-right: 1px solid var(--border-light);
}
.lang-btn.active {
    background: var(--accent);
    color: white;
}
.lang-btn:hover:not(.active) {
    color: var(--accent);
}
.menu-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 70px);
        background-color: var(--bg-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        border-right: 1px solid var(--border-light);
        z-index: 99;
        overflow-y: auto;
    }
    .nav-links.active {
        left: 0;
    }
    .menu-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .controls-nav {
        margin-left: auto;
    }
}

/* Hero gradient full width */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 30% 20%, 
                rgba(79, 70, 229, 0.12) 0%,
                rgba(79, 70, 229, 0.04) 40%,
                transparent 70%);
}
main {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Hero section */
.hero-saas {
    position: relative;
    padding: 5rem 0 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}
.hero-saas h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 700px;
    margin-bottom: 1rem;
}
.hero-saas .subhead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}
.saas-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}
.saas-card {
    flex: 1;
    min-width: 280px;
    position: relative;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 0.2s;
    background: transparent;
    border: none;
    box-shadow: none;
}
.saas-card:nth-child(2) {
    animation-delay: 0.35s;
}
/* Ilustración decorativa (fondo) */
.saas-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    filter: blur(30px);
	-webkit-filter: blur(30px);
	-moz-filter: blur(30px);
}
.saas-illustration i {
    font-size: 180px;
    color: var(--accent);
}
.saas-card .saas-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}
.saas-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}
.saas-card .tag {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.saas-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
.btn-saas-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 2.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.btn-saas-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Otros servicios profesionales */
.services {
    padding: 5rem 0 5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s ease-out forwards;
    animation-delay: 0.45s;
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}
.section-sub {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--bg-surface);
    border-radius: 1.5rem;
    padding: 1.8rem;
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease-out forwards;
    cursor: pointer;
}
.card:nth-child(1) { animation-delay: 0.55s; }
.card:nth-child(2) { animation-delay: 0.65s; }
.card:nth-child(3) { animation-delay: 0.75s; }
.card:nth-child(4) { animation-delay: 0.85s; }
.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.12);
}
.card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
}
.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Modal (popup) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: var(--bg-surface);
    border-radius: 1.5rem;
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.25);
}
.modal.show .modal-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--accent);
}
.modal-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contacto */
.contact-mini {
    text-align: center;
    background: var(--accent-soft);
 
    border-radius: 2rem;
    padding: 3.5rem 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 0.95s;
     box-shadow: 0px 0px 24px -7px rgba(0,0,0,0.2);
    -webkit-box-shadow: 0px 0px 24px -7px rgba(0,0,0,0.2);
    -moz-box-shadow: 0px 0px 24px -7px rgba(0,0,0,0.2);
}
.contact-mini h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.btn-contact {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    font-weight: 500;
    transition: var(--transition);
}
.btn-contact:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tdb-icon {
    height: 70px;
}
.saas-card .saas-icon .bi {
    font-size: 1.4em !important;
    color: var(--accent) !important;
}
.slogan {
    text-align: center;
    width: 60%;
    margin: 0 auto;
}
.hero-saas h1 {
    max-width: 100%;
}
.hero-saas .subhead {
    max-width: 100%;
}
.saas-card .tag {
    box-shadow: 0px 0px 24px -7px rgba(0,0,0,0.75);
    -webkit-box-shadow: 0px 0px 24px -7px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 24px -7px rgba(0,0,0,0.75);
}

/* Animación para el SVG en .graph */
.graph {
    display: inline-block;
    margin-bottom: 1rem;
}
/*.animated-svg {
    animation: float 4s ease-in-out infinite, rotateGear 12s linear infinite;
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.2));
}*/
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
@keyframes rotateGear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 720px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero-saas h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-saas {
        padding: 3rem 0 3rem;
    }
    .services {
        padding: 3rem 0;
    }
    .contact-mini {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
    .saas-illustration {
        width: 120px;
        height: 120px;
    }
    .saas-illustration i {
        font-size: 120px;
    }
    .slogan {
        width: 100%;
    }
    .animated-svg {
        width: 80px;
        height: 80px;
    }
}
footer .footer-links {
    margin-top: 0.5rem;
}
footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
footer .footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}