:root {
    --bg-light: #0a0a0c;
    --bg-section: #111114;
    --bg-card: #1c1c21;
    --primary: #6c5ce7;
    --secondary: #00cec9;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(10, 10, 12, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0 5%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-nav.scrolled {
    height: 60px;
    padding: 0 2rem;
    background: rgba(10, 10, 12, 0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.logo img {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.3));
    transition: var(--transition);
}

.glass-nav.scrolled .logo img {
    height: 45px;
}

.logo span {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #6c5ce7 50%, #00cec9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

.logo:hover span {
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/hero-boardroom.png') no-repeat center center/cover;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-light) 95%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
}

.hero-content h1 span {
    display: block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

.hero-pill-container {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    display: inline-block;
    max-width: 700px;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

.btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.4);
}

.btn.secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    margin-left: 1rem;
}

.btn.secondary:hover {
    background: var(--bg-section);
    border-color: var(--primary);
}

.btn.whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn.whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background: #20ba5a;
}

.services-section {
    padding: 100px 0;
    background-color: var(--bg-section);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.3);
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(to right, var(--primary), var(--secondary)) border-box;
    border: 1px solid transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(108, 92, 231, 0.3));
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.service-card {
    cursor: pointer;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.7;
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(5px);
}

.service-card.clickable {
    cursor: pointer;
}

.service-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projects-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.filter-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.p-chacalito { background-image: url('assets/projects/chacalito.png'); }
.p-restaurante { background-image: url('assets/projects/restaurante.png'); }
.p-inventario { background-image: url('assets/projects/inventario.png'); }
.p-clinica { background-image: url('assets/projects/clinica.png'); }
.p-psicologia { background-image: url('assets/projects/psicologia.png'); }
.p-moodlehub { background-image: url('assets/projects/moodlehub.png'); }

.project-info {
    padding: 1.5rem;
}

.project-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f1f2f6;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.project-link {
    display: block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.project-link i {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.contact-section {
    padding: 100px 0;
}

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    padding: 5rem 2rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

footer {
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: var(--bg-section);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 0 1rem;
        height: 70px;
    }
    .logo img {
        height: 45px;
    }
    .logo span {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links.active li {
        margin: 1rem 0;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        margin-left: 0 !important;
    }
    .section-title {
        font-size: 2rem;
    }
    .services-grid, .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .contact-info h2 {
        font-size: 2rem;
    }
    .contact-box {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .project-img {
        height: 200px;
    }
}

/* Service Card Actions */
.service-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    flex-wrap: wrap;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.8;
}

.info-btn {
    background: rgba(0, 206, 201, 0.1);
    border: 1px solid rgba(0, 206, 201, 0.2);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.info-btn i {
    font-size: 0.9rem;
    color: var(--secondary);
}

.info-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 3rem 2.5rem;
    border-radius: 30px;
    position: relative;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

#modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#modal-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#modal-body ul {
    list-style: none;
    text-align: left;
}

#modal-body li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-main);
}

#modal-body li i {
    color: var(--secondary);
    margin-top: 0.3rem;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2.5rem 1.5rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.reveal-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
