/* 
   Style: Modern SaaS / Premium Corporate
   Author: TecnovedadesWeb
*/

:root {
    --primary: #02b621;
    --primary-dark: #01951b;
    --secondary: #2D3436; /* Un gris más oscuro y elegante */
    --accent-1: #636E72;
    --accent-2: #DFE6E9;
    --text-main: #2D3436;
    --text-light: #636E72;
    --bg-light: #F9FAFB;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.95rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

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

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    background: transparent;
}

.header.scrolled {
    background: #ffffff;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

.header.scrolled .logo-img {
    height: 50px;
    filter: none;
}

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

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    position: relative;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header.scrolled .nav-link {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

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

.header.scrolled .nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    padding-top: 330px;
    background: none;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 100%), url('../../ImgSld.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 1000px;
    text-align: left;
    position: relative;
    z-index: 2;
    margin-left: -120px;
}

.hero-title {
    font-size: clamp(1.25rem, 2.8vw, 2.45rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: 0;
    border-left: 4px solid var(--primary);
    padding-left: 1.2rem;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-start;
}

.btn {
    padding: 1rem 2.2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 15px 35px -10px rgba(2, 182, 33, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(2, 182, 33, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Sections General */
section {
    padding: 60px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.section-text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Grid & Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.card {
    background: var(--bg-white);
    padding: 1.8rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card:hover::before {
    opacity: 0.03;
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(360deg);
}

/* Portfolio / Image Section */
.portfolio-section article {
    border-radius: var(--radius-md);
    border: 1px solid rgba(2, 182, 33, 0.1);
    background: var(--bg-white);
    box-shadow: 0 15px 40px -10px rgba(2, 182, 33, 0.15);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-section article:hover {
    box-shadow: 0 25px 60px -12px rgba(2, 182, 33, 0.25);
    border-color: var(--primary);
}

.portfolio-section article h3 {
    font-weight: 800;
    color: var(--secondary);
}

/* Dashboard Style Section */
.stats-section {
    background: #1a1c1e;
    color: white;
    border-radius: var(--radius-lg);
    margin: 0 2rem;
    padding: 60px 2rem;
    border: none;
    box-shadow: 0 30px 60px -15 rgba(0,0,0,0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 2rem;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.stat-item:last-child::after { display: none; }

.stat-item p:first-child {
    font-size: 4rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.05em;
    margin-bottom: 1rem !important;
}

.stat-item p:last-child {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--accent-1);
}

/* Footer */
.footer {
    background: #111111;
    color: white;
    padding: 50px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 30px;
}

.footer-description {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #ffffff;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul li a {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.footer-contact ul li {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.footer-bottom {
    background: #000000;
    border-top: none;
    padding: 1.5rem 0;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 0.9rem;
}

.designer {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Responsive */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: #ffffff;
    transition: var(--transition);
}

.header.scrolled .bar {
    background-color: var(--secondary);
}

@media (max-width: 1024px) {
    .stats-section {
        margin: 0 2rem;
        padding: 80px 2rem;
    }
    .stat-item::after { display: none; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .hero { align-items: center; padding-top: 80px; text-align: center; }
    .hero-content { text-align: center; margin: 0; }
    .hero-subtitle { margin-left: auto; margin-right: auto; border-left: none; padding-left: 0; }
    .hero-btns { justify-content: center; }
    .section-title { font-size: 2.2rem; }
    .footer-container { grid-template-columns: 1fr; gap: 4rem; }

    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        height: 100vh;
        text-align: center;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        z-index: 1001;
    }

    .nav-menu .nav-link {
        color: var(--secondary);
    }

    .nav-menu.active { left: 0; }
    
    .nav-item {
        margin: 1.5rem 0;
    }
}

/* Reveal Animations Refined */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1), transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
