/* ==========================================================================
   Design Tokens & Variables (Sielp Solutions Redesign)
   ========================================================================== */
   :root {
    /* Colors */
    --bg-main: #f9f9fb;
    --bg-white: #ffffff;
    --bg-dark: #1e1e24;
    
    --text-primary: #111111;
    --text-secondary: #6b7280;
    --text-light: #f8f9fa;
    
    --sielp-blue: #2722b5;
    --sielp-blue-light: #4641d4;
    --sielp-blue-faded: rgba(39, 34, 181, 0.1);
    
    --accent-gray: #f3f4f6;
    --border-color: #e5e7eb;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius-lg: 30px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    --transition: 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 500;
}

.text-blue {
    color: var(--sielp-blue);
}

.text-center { text-align: center; }

/* Badges */
.badge-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge.active {
    background: var(--sielp-blue);
    color: white;
    border-color: var(--sielp-blue);
}

.badge.soft {
    background: var(--sielp-blue-faded);
    color: var(--sielp-blue);
    border: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-dark {
    background: var(--text-primary);
    color: white;
}

.btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--sielp-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--sielp-blue-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-white);
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--accent-gray);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(249, 249, 251, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text-logo {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--sielp-blue);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-link:hover {
    color: var(--sielp-blue);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    max-width: 900px;
}

.hero-title strong {
    font-weight: 600;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.how-it-works {
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    color: var(--text-primary);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.stat-users {
    display: flex;
    align-items: center;
}

.stat-users img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}
.stat-users img:first-child { margin-left: 0; }

.stat-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-rating .stars i {
    color: #fbbf24;
    font-size: 0.8rem;
}

/* Abstract Graphic Shape */
.abstract-shape {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--sielp-blue) 0%, #17147a 100%);
    border-radius: var(--border-radius-lg);
    border-bottom-left-radius: 100px;
    border-top-right-radius: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 20px 40px var(--sielp-blue-faded);
}

.abstract-shape::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-radial-gradient(
        circle at center,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.05) 20px,
        rgba(255,255,255,0.05) 40px
    );
    animation: rotate 60s linear infinite;
}

.shape-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.shape-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.shape-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: white;
    color: var(--text-primary);
}

/* ==========================================================================
   Dark Section (Services)
   ========================================================================== */
.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 40px;
    padding: 6rem 2rem;
    margin: 4rem 1rem;
    position: relative;
}

.dark-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.dark-title-wrap {
    max-width: 500px;
}

.dark-title {
    font-size: 3rem;
    font-weight: 400;
    margin-top: 1rem;
}

.dark-desc {
    color: #9ca3af;
    max-width: 300px;
    font-size: 0.95rem;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.service-card {
    background: #2a2a32;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    transition: var(--transition);
}

.service-card.primary {
    background: #111115;
    border: 1px solid #333;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-image-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--sielp-blue-light) 0%, var(--sielp-blue) 100%);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ==========================================================================
   About / Profit Crafted
   ========================================================================== */
.about-section {
    padding: 6rem 0; /* approx 96px */
}

/* section-top is kept for global use if needed, but not in About anymore */
.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem; /* approx 64px */
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
}

.about-text-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px; /* Separación badge a título */
    margin-bottom: 48px; /* Separación título a subtítulo */
}

.about-text-header .section-title {
    font-size: 3.5rem;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.1;
}

.about-text-content {
    margin-bottom: 48px; /* Separación párrafo a métricas */
}

.about-text-content h4 {
    font-size: 1.2rem;
    margin-bottom: 20px; /* Separación subtítulo a párrafo */
}

.about-text-content p {
    color: var(--text-secondary);
}

.about-stats {
    display: flex;
    gap: 56px; /* Separación entre métricas */
    align-items: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-box .stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Visual Container (Right side) */
.about-visual {
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinea arriba, recorta abajo */
    position: relative;
    overflow: hidden;
}

.about-character {
    height: 115%; /* Sobresale hacia abajo para generar recorte estético */
    width: auto;
    object-fit: contain;
    object-position: top center;
    position: relative;
    z-index: 2;
    transform: translateY(20px); /* Ajuste para equilibrar visualmente con el texto */
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 40px 40px 0 0;
    padding: 6rem 2rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto 4rem auto;
    align-items: center;
}

.footer-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.1;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.contact-title {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons-row {
    display: flex;
    align-items: center;
    gap: 32px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.whatsapp-icon {
    color: #25D366;
}

.facebook-icon {
    color: #1877F2;
}

.instagram-icon {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.mail-icon {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    position: relative;
    z-index: 10;
}

.footer-logo {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-content-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .dark-header { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .services-cards { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 4rem; }
    .about-visual { height: 500px; }
    .section-top { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-list { display: none; }
    .nav .btn-dark { display: none; }
    
    .hero { padding-top: 6rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    
    .services-cards { grid-template-columns: 1fr; }
    
    .about-text-header .section-title { font-size: 2.5rem; }
    .about-stats { gap: 2rem; flex-direction: column; align-items: flex-start; }
    .about-visual { height: 440px; margin-top: 2rem; }
    
    .footer { padding: 4rem 1.5rem 2rem 1.5rem; }
    .footer-top { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .footer-left { display: flex; flex-direction: column; align-items: center; }
    .footer-title { font-size: 2.5rem; }
    .footer-right { align-items: center; }
    .social-icons-row { justify-content: center; gap: 24px; }
}

/* ==========================================================================
   Gradient Text Component (Blob Animation)
   ========================================================================== */
.gradient-text {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    background-color: var(--bg-main); /* Matches the hero background */
    color: #000000; /* Text MUST be black for lighten blend mode to work */
    padding: 0 0.5rem;
    font-weight: 800;
}

.gradient-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    mix-blend-mode: lighten;
    z-index: 2;
}

.blob {
    pointer-events: none;
    position: absolute;
    width: 30vw;
    height: 30vw;
    mix-blend-mode: overlay;
    filter: blur(1rem);
}

.blob-1 {
    top: -50%;
    background-color: hsl(330, 100%, 40%); /* Neon Pink */
    animation: gradient-border 6s ease-in-out infinite, gradient-1 12s ease-in-out infinite alternate;
}

.blob-2 {
    right: 0;
    top: 0;
    background-color: hsl(140, 100%, 55%); /* Electric Green */
    animation: gradient-border 6s ease-in-out infinite, gradient-2 12s ease-in-out infinite alternate;
}

.blob-3 {
    bottom: 0;
    left: 0;
    background-color: hsl(210, 100%, 30%); /* Neon Blue */
    animation: gradient-border 6s ease-in-out infinite, gradient-3 12s ease-in-out infinite alternate;
}

.blob-4 {
    bottom: -50%;
    right: 0;
    background-color: hsl(60, 100%, 70%); /* Neon Yellow */
    animation: gradient-border 6s ease-in-out infinite, gradient-4 12s ease-in-out infinite alternate;
}

@keyframes gradient-border {
    0%, 100% { border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%; }
    25% { border-radius: 47% 29% 39% 49% / 61% 19% 66% 26%; }
    50% { border-radius: 57% 23% 47% 72% / 63% 17% 66% 33%; }
    75% { border-radius: 28% 49% 29% 100% / 93% 20% 64% 25%; }
}

@keyframes gradient-1 {
    0%, 100% { top: 0; right: 0; }
    50% { top: 50%; right: 25%; }
    75% { top: 25%; right: 50%; }
}

@keyframes gradient-2 {
    0%, 100% { top: 0; left: 0; }
    60% { top: 75%; left: 25%; }
    85% { top: 50%; left: 50%; }
}

@keyframes gradient-3 {
    0%, 100% { bottom: 0; left: 0; }
    40% { bottom: 50%; left: 25%; }
    65% { bottom: 25%; left: 50%; }
}

@keyframes gradient-4 {
    0%, 100% { bottom: 0; right: 0; }
    50% { bottom: 25%; right: 40%; }
    90% { bottom: 50%; right: 25%; }
}

/* ==========================================================================
   Grid Pattern Background
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-grid-pattern {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    top: -50%;
    width: 100%;
    height: 200%;
    fill: rgba(39, 34, 181, 0.04); /* Faded Sielp Blue */
    stroke: rgba(39, 34, 181, 0.08); /* Faded Sielp Blue */
    transform: skewY(-12deg);
    -webkit-mask-image: radial-gradient(800px circle at center, white, transparent);
    mask-image: radial-gradient(800px circle at center, white, transparent);
    z-index: 0;
}

.footer-grid-pattern {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.03);
    stroke: rgba(255, 255, 255, 0.05);
    -webkit-mask-image: radial-gradient(1000px circle at top center, white, transparent);
    mask-image: radial-gradient(1000px circle at top center, white, transparent);
    z-index: 0;
}

/* ==========================================================================
   Sparkles Text Effect
   ========================================================================== */
.sparkles-container {
    position: relative;
    display: inline-block;
}

.sparkle-icon {
    position: absolute;
    pointer-events: none;
    z-index: 20;
    animation: sparkle-anim var(--sparkle-duration) ease-in-out infinite;
    animation-delay: var(--sparkle-delay);
}

@keyframes sparkle-anim {
    0% {
        opacity: 0;
        transform: scale(0) rotate(75deg);
    }
    50% {
        opacity: 1;
        transform: scale(var(--sparkle-scale)) rotate(120deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(150deg);
    }
}

/* ==========================================================================
   Hero Right Side Composition
   ========================================================================== */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-illustration-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
}

.hero-main-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    z-index: 2;
    mask-image: linear-gradient(to top, transparent 0%, black 10%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 10%);
}

/* SVG Connections */
.hero-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.conn-line {
    stroke-dashoffset: 0;
    animation: dash-flow 20s linear infinite;
}

@keyframes dash-flow {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    min-width: 160px;
}

.fc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.fc-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fc-title {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.fc-metric {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

/* Card Charts / Bars */
.fc-chart {
    width: 100%;
    height: 16px;
    overflow: hidden;
}

.fc-chart svg {
    width: 100%;
    height: 100%;
}

.fc-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.fc-bar {
    height: 4px;
    border-radius: 2px;
}

.fc-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.fc-chart-bars > div {
    flex: 1;
    border-radius: 1px 1px 0 0;
    opacity: 0.4;
}

.fc-chart-bars > div:last-child {
    opacity: 1;
}

/* Positioning */
.card-tl { top: 5%; left: 0%; }
.card-tr { top: 5%; right: 0%; }
.card-ml { top: 40%; left: -10%; }
.card-mr { top: 30%; right: -10%; }

/* Animation Delays */
.float-delay-1 { animation-delay: 0s; }
.float-delay-2 { animation-delay: -1.5s; }
.float-delay-3 { animation-delay: -3s; }
.float-delay-4 { animation-delay: -4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 992px) {
    .floating-card {
        transform: scale(0.85);
    }
    .card-ml { left: 0%; }
    .card-mr { right: 0%; }
}

@media (max-width: 768px) {
    .hero-illustration-wrapper {
        margin-top: 3rem;
        max-width: 400px;
    }
    .floating-card {
        transform: scale(0.75);
    }
    /* Disable animation on small devices to prevent overflow issues */
    .hero-right {
        overflow: hidden;
    }
}
