@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #007e5f;
    --primary-hover: #00664d;
    --primary-light: #e6f5f1;
    --primary-light-hover: #d2ede6;
    --secondary-color: #00b087;
    --dark-color: #0f2922;
    --text-color: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --accent-color: #ffb800;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glass: 0 8px 32px 0 rgba(0, 126, 95, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.25;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

/* Header verde sólido para páginas internas */
header.header-green {
    background-color: var(--primary-color);
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

header.header-green .logo-title {
    color: var(--bg-white);
}

header.header-green .logo-title span {
    color: var(--secondary-color);
}

header.header-green .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

header.header-green .logo-icon {
    color: var(--bg-white);
}

header.header-green .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

header.header-green .nav-link:hover {
    color: var(--bg-white);
}

header.header-green .nav-link::after {
    background-color: var(--bg-white);
}

header.header-green .btn-header {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

header.header-green .btn-header:hover {
    background-color: #f1f5f9;
    color: var(--primary-hover);
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    position: relative;
    animation: sparkle-pulse 3s infinite ease-in-out;
}

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

.logo-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-title span {
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: -4px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 8px 0;
}

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

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

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

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

.btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-header:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User menu dropdown */
.user-menu-wrap {
    position: relative;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background 0.15s;
}

.dash-user:hover { background: rgba(255,255,255,0.1); }
.dash-user i { width: 18px; height: 18px; flex-shrink: 0; }
.user-menu-chevron { width: 14px !important; height: 14px !important; transition: transform 0.2s; }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 200px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 200;
}

.user-menu-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.12s;
}

.user-menu-item:hover,
.user-menu-item.active { background: var(--primary-light); color: var(--primary-color); }
.user-menu-item i { width: 16px; height: 16px; }

.btn-login-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-login-header:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.9);
    color: white;
    transform: translateY(-2px);
}

.btn-trabajador-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-trabajador-header:hover {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.hero-tagline span {
    color: var(--primary-color);
}

.hero-sparkle {
    color: var(--secondary-color);
    width: 24px;
    height: 24px;
    animation: rotate-sparkle 4s infinite linear;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.hero-feature-item svg {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 126, 95, 0.3);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 126, 95, 0.4);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.hero-security {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.hero-security svg {
    width: 14px;
    height: 14px;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    object-fit: cover;
}

.hero-badge-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-glass);
    animation: float-badge 6s infinite ease-in-out;
}

.hero-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.hero-badge-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero-badge-text span {
    display: block;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-light);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    position: relative;
}

.how-it-works-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    z-index: 2;
    padding: 0 16px;
}

.how-icon-container {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 24px;
    transition: var(--transition-smooth);
}

.how-step:hover .how-icon-container {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.how-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.how-badge-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    color: var(--primary-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
}

.how-text {
    font-size: 13px;
    color: var(--text-light);
    max-width: 200px;
    line-height: 1.5;
}

/* Connection line for desktop */
.how-connector {
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    border-top: 2px dashed var(--border-color);
    z-index: 1;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.service-img-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.service-card-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.why-container {
    background-color: #e6f6f2;
    border-radius: 24px;
    padding: 48px 24px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.why-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
    max-width: 160px;
}

/* Footer & Call To Action */
.cta-footer {
    padding-bottom: 80px;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.cta-left {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-left h2 {
    color: var(--bg-white);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-left p {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary svg {
    transition: transform 0.3s ease;
}

.btn-secondary:hover svg {
    transform: translateX(4px);
}

.cta-right {
    background-color: var(--bg-white);
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-right-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 32px;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-icon-wrapper {
    color: var(--primary-color);
    flex-shrink: 0;
}

.trust-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.trust-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.trust-item-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Animations */
@keyframes sparkle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

@keyframes rotate-sparkle {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes float-badge {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-8px) translateX(-2px);
    }
}

/* Site Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
}

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

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
    color: var(--bg-white);
}

.footer-logo .logo-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: -0.5px;
}

.footer-logo .logo-title span {
    color: var(--secondary-color);
}

.footer-tagline {
    font-size: 13px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 0.2s;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.footer-social-link i {
    width: 18px;
    height: 18px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* In production a mobile menu would be implemented */
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-tagline {
        justify-content: center;
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-security {
        justify-content: center;
    }
    
    .hero-badge-card {
        right: 10px;
        bottom: 10px;
    }
    
    .how-it-works-grid {
        flex-direction: column;
        gap: 32px;
    }
    
    .how-connector {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-left {
        padding: 40px 24px;
        text-align: center;
        align-items: center;
    }
    
    .btn-secondary {
        align-self: center;
    }
    
    .cta-right {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
}
