/* CSS VARIABLES & RESET */
:root {
    --primary-green: #00b050;
    --dark-green: #008f3d;
    --bg-light: #fafbfd;
    --text-main: #2d3748;
    --text-muted: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 35px rgba(0, 176, 80, 0.15);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER & NAVIGATION */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Estilos para el logotipo oficial en PNG */
.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.logo:hover .logo-img {
    transform: scale(1.08) rotate(-3deg);
}

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

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
}

.brand-sub {
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-green);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: var(--transition);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.whatsapp-btn {
    background-color: #25d366;
    color: var(--white);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background-color: #20ba56;
}

/* HERO SECTION */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 85% 20%, rgba(0, 176, 80, 0.04) 0%, rgba(255,255,255,0) 50%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: rgba(0, 176, 80, 0.08);
    color: var(--dark-green);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 20px;
}

.text-green {
    color: var(--primary-green);
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    align-items: center;
}

.btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 176, 80, 0.25);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 176, 80, 0.35);
}

.btn-text {
    color: var(--text-main);
}

.btn-text i {
    font-size: 20px;
    color: var(--primary-green);
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-green);
}

.btn-text:hover i {
    transform: scale(1.1);
}

/* Feature Strip */
.feature-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    border-top: 1px solid #edf2f7;
    padding-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.feature-item i {
    color: var(--primary-green);
    font-size: 15px;
}

/* HERO GRAPHIC / MOCKUP SYSTEM */
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 420px;
}

.bg-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0,176,80,0.18) 0%, rgba(0,176,80,0) 70%);
    bottom: -20px;
    right: -40px;
    border-radius: 50%;
    z-index: 1;
}

/* Laptop Design */
.laptop-mockup {
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 100%;
    z-index: 2;
}

.laptop-screen {
    background-color: #0c0d10;
    padding: 10px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.dashboard-mock {
    background-color: #f8fafc;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 55px 1fr;
    font-size: 5px;
    overflow: hidden;
    color: #1e293b;
}

.dash-sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 6px 3px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-logo {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
    font-size: 6px;
}

.dash-item {
    padding: 3px;
    border-radius: 2px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
}

.dash-item.active {
    background-color: rgba(0, 176, 80, 0.08);
    color: var(--primary-green);
}

.dash-main {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 7px;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 3px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.stat-card {
    background: #ffffff;
    padding: 4px;
    border-radius: 3px;
    border: 1px solid #f1f5f9;
    position: relative;
}

.stat-card h3 { font-size: 8px; margin: 1px 0; }
.stat-card small { color: #64748b; font-size: 4px; }
.stat-up { color: #10b981; font-size: 4px; position: absolute; right: 4px; bottom: 4px; }

.dash-content-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4px;
    flex-top: 1;
}

.dash-chart-placeholder {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 3px;
    padding: 4px;
}

.mock-chart {
    height: 25px;
    border-bottom: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    margin-top: 4px;
    position: relative;
}

.chart-line {
    position: absolute;
    width: 90%;
    height: 2px;
    background: var(--primary-green);
    top: 40%;
    left: 5%;
    transform: rotate(-10deg);
}

.dash-projects-list {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 3px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p-item {
    display: flex;
    justify-content: space-between;
    font-size: 4px;
    padding: 1px 0;
    border-bottom: 1px solid #f1f5f9;
}

.badge-prog { color: #f59e0b; }
.badge-done { color: #10b981; }

.laptop-base {
    background-color: #e2e8f0;
    height: 10px;
    border-radius: 0 0 16px 16px;
    border-bottom: 4px solid #cbd5e1;
    position: relative;
}

/* IDLE FLOATING ANIMATIONS FOR MODALS */
@keyframes floatY1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes floatY2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes floatY3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* FLOATING CARDS (MODALS) SYSTEM */
.floating-card {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                background-color 0.3s ease;
}

/* Positions & Separate Idle Floating Loops */
.pos-top-left {
    top: 20px;
    left: -30px;
    animation: floatY1 5s ease-in-out infinite;
}

.pos-mid-left {
    bottom: 110px;
    left: -50px;
    animation: floatY2 6s ease-in-out infinite 0.5s;
}

.pos-mid-right {
    top: 130px;
    right: -20px;
    animation: floatY3 5.5s ease-in-out infinite 1s;
}

/* HOVER ANIMATION FOR MODALS */
.floating-card:hover {
    animation-play-state: paused;
    transform: scale(1.1) translateY(-8px) rotate(2deg);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
    background-color: var(--white);
    border-color: rgba(0, 176, 80, 0.2);
    cursor: pointer;
}

.pos-mid-right:hover {
    transform: scale(1.1) translateY(-8px) rotate(-2deg);
}

/* Modal Inner Decor */
.card-icon {
    background-color: rgba(0, 176, 80, 0.1);
    color: var(--primary-green);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.floating-card:hover .card-icon {
    transform: scale(1.1) rotate(10deg);
}

.icon-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.icon-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.card-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #1a202c;
    display: block;
}

.card-text p {
    font-size: 11px;
    color: var(--text-muted);
}

/* SERVICES SECTION */
.services {
    padding: 60px 0 100px 0;
    background-color: var(--white);
    position: relative;
    z-index: 5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    padding: 30px 24px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 176, 80, 0.15);
}

.s-icon {
    color: var(--primary-green);
    font-size: 26px;
    margin-bottom: 18px;
    transition: var(--transition);
}

.service-card:hover .s-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a202c;
}

.service-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-desc, .hero-btns {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .feature-strip {
        justify-content: center;
    }
    
    .hero-graphic-container {
        margin: 0 auto;
    }
    
    nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 34px;
    }
    
    .floating-card {
        padding: 8px 12px;
    }
    
    .pos-top-left { left: 0; }
    .pos-mid-left { left: -10px; }
    .pos-mid-right { right: 0; }
}
