:root {
    --bg-light: #ffffff;
    --bg-secondary: #f8fafc;
    --accent-primary: #ea580c; /* Orange más profundo para contraste */
    --accent-secondary: #2563eb; /* Blue más profundo */
    --text-main: #0f172a; /* Slate 900 para máximo contraste */
    --text-dim: #475569; /* Slate 600 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(148, 163, 184, 0.2);
    --font-family: 'Outfit', sans-serif;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

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

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

/* Background Glow Effects */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glow-circle {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    filter: blur(100px);
}

.glow-circle.secondary {
    background: radial-gradient(circle, rgba(234, 88, 12, 0.03) 0%, transparent 70%);
    bottom: -300px;
    left: -200px;
}

/* Navigation */
nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-self: center;
}

.nav-actions {
    justify-self: end;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 10% 60px;
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%),
        url('office_team.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.badge {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-secondary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    max-width: 1000px;
}

h1 span {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-dim);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 700px;
    margin-bottom: 3rem;
}

/* Services Grid */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
}

.card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 0;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(255,255,255,1) 80%, rgba(255,255,255,0) 100%);
    width: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, opacity 0.3s ease;
    z-index: 1;
    opacity: 0.35; /* Transparencia solicitada */
}

.card-payroll::before { background-image: url('payroll.png'); }
.card-sf::before { background-image: url('successfactors.png'); }
.card-talent::before { background-image: url('office_team.png'); }
.card-ams::before { background-image: url('office_team.png'); }

.card:hover::before {
    transform: scale(1.1);
    opacity: 0.5; /* Un poco más de presencia al pasar el mouse */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* Highlights Section */
.highlights {
    padding: 6rem 5%;
}

.info-card {
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.tag-cloud span {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Buttons */
.btn-primary {
    background: var(--accent-secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 1rem;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.status-panel {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 5%;
    text-align: center;
    color: var(--text-dim);
}

/* Contact Page Styles */
.contact-container {
    padding-top: 150px;
    max-width: 900px;
    margin: 0 auto 100px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--glass-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

.input-group input, 
.input-group textarea, 
.input-group select {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.05);
}

.full-width {
    width: 100%;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Experience Page Styles */
.experience-container {
    padding-top: 150px;
    max-width: 1200px;
    margin: 0 auto 100px;
}

.experience-hero {
    text-align: center;
    margin-bottom: 5rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 5%;
}

.exp-card {
    background: white;
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.exp-card h3 {
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.exp-card ul {
    list-style: none;
    margin-top: 1rem;
}

.exp-card ul li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    position: relative;
    padding-left: 1.5rem;
}

.exp-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.global-reach {
    background: var(--bg-secondary);
    border-radius: 40px;
    padding: 5rem;
    margin: 0 5%;
    text-align: center;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.region {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.region h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Dot Menu Styles */
/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--accent-secondary);
    border-radius: 2px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        box-shadow: -15px 0 40px rgba(0,0,0,0.1);
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex; /* Ensure it stays flex in mobile */
    }

    .nav-actions {
        display: block; 
        order: 2;
    }

    .menu-toggle {
        order: 3;
    }
    
    .nav-links.active {
        right: 0;
    }

    .menu-toggle.active span {
        background: var(--accent-primary);
    }
}

/* Submenu Styles */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 101;
}

.submenu a {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem !important;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.submenu a:last-child {
    border-bottom: none;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .has-submenu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-secondary);
        width: 100%;
        margin-top: 1rem;
        display: none; /* Toggle via JS if needed, but for now simple */
    }
    
    .has-submenu.active .submenu {
        display: flex;
    }
}

    .btn-primary {
        width: 80%;
        margin-left: 0;
    }

    .experience-grid, .region-grid { grid-template-columns: 1fr; }
    .experience-container { padding-top: 100px; }
    .global-reach { padding: 3rem 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-container { padding: 100px 5% 50px; }
    .form-wrapper { padding: 2rem; }
/* Specific Payroll Design */
.decorated-hero {
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 20%, rgba(250, 250, 250, 0.6) 100%),
        url('payroll.png') !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 0 0 50px 50px;
    padding: 180px 10% 120px !important;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 800;
}

.feature-item-box {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.feature-item-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.05);
}

.f-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.featured-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    border: 1px solid var(--accent-secondary) !important;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.05) !important;
}

.ams-hero {
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 20%, rgba(250, 250, 250, 0.6) 100%),
        url('office_team.png') !important;
}

.sf-hero {
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 20%, rgba(250, 250, 250, 0.6) 100%),
        url('successfactors.png') !important;
}

/* Desktop Polish - Enhanced */
@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .feature-card-main {
        padding: 5rem 10%;
    }

    .hero h1, .payroll-hero h1 {
        font-size: 5.5rem;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .payroll-container, .experience-container, .contact-container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .decorated-hero {
        padding: 220px 10% 150px !important;
        margin-bottom: 4rem;
    }

    .grid-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .feature-item-box {
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

/* About Page Specifics */
.about-hero {
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 20%, rgba(250, 250, 250, 0.6) 100%),
        url('office_team.png') !important;
}

.mission-vision {
    padding: 0 5%;
    margin-bottom: 5rem;
}

.mission-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.m-box {
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
}

.m-box h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Methodology Styles */
.method-hero {
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 20%, rgba(250, 250, 250, 0.6) 100%),
        url('successfactors.png') !important;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 5% 5rem;
}

.phase-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: 0.3s;
}

.phase-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.phase-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.05);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.phase-card h4 {
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .timeline-container { grid-template-columns: 1fr; }
}

/* Language Switcher */
.lang-switch {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--accent-secondary);
    color: white;
    border-color: var(--accent-secondary);
}
