/* Reset & Base Styles */
:root {
    --bg-dark: #0a0a0a;
    --bg-surface: #141414;
    --bg-surface-hover: #1f1f1f;
    --accent: #dcf200; /* Matching the logo yellow */
    --accent-glow: rgba(220, 242, 0, 0.2);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2a2a2a;
    
    --font-main: 'Outfit', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 4rem;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--accent);
}

/* Typography Selection */
::selection {
    background-color: var(--accent);
    color: #000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

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

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

.nav-item.active {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255,255,255,0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #000;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, var(--accent-glow) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.about-image-container {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--bg-surface), #0a0a0a);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.abstract-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(50px);
    opacity: 0.2;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: var(--bg-surface-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.4s ease;
}

.service-card {
    overflow: hidden;
}

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

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

.service-card p {
    color: var(--text-muted);
}

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

.project-card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent);
}

.project-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.p1 { background: linear-gradient(45deg, #1a1a1a, #2a2a2a); }
.p2 { background: linear-gradient(135deg, #2a2a2a, #1a1a1a); }
.p3 { background: linear-gradient(to right, #1a1a1a, #2a2a2a); }
.p4 { background: linear-gradient(135deg, #1e293b, #0f172a); }
.p5 { background: linear-gradient(45deg, #111827, #1f2937); }
.p6 { background: linear-gradient(135deg, #0f2417, #1c3320); }

/* Testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

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

.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.05rem;
}

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

.cta-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

/* CTA Final */
.final-cta {
    padding-top: 0;
}

.final-cta-card {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: 28px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), inset 0 0 80px rgba(255,255,255,0.03);
    position: relative;
    overflow: hidden;
}

.final-cta-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}

.final-cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.final-cta-text {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
}

/* Highlights Slider */
.highlights {
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02), transparent);
}

.highlights {
    position: relative;
    overflow: hidden;
}

.highlights::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.highlight-slider {
    position: relative;
    min-height: 260px;
    margin: 3rem auto 2rem;
    max-width: 960px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 0 80px rgba(255,255,255,0.03);
    overflow: hidden;
    z-index: 1;
}

.highlight-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    filter: blur(8px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
    pointer-events: none;
}

.highlight-slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    pointer-events: auto;
    position: relative;
}

.highlight-slide h3 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, #ffffff, var(--accent), #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 4s linear infinite;
}

.highlight-slide p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 640px;
    line-height: 1.6;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse-wa 2.5s infinite;
}

.whatsapp-float svg { width: 34px; height: 34px; fill: #fff; }

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 2rem;
}

.project-category {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

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

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

/* Footer */
.footer {
    background: radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 60%), #050505;
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
    margin-top: 4rem;
}

.footer {
    padding-top: 5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-brand p {
    margin: 0;
    max-width: 420px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: auto;
}

.footer-links a {
    padding: 0.5rem 1.1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    width: auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--text-main);
}

.footer-contact a:hover {
    color: var(--accent);
}

.social-links.footer-social,
.footer .social-links {
    justify-content: center;
}

.footer-logo {
    height: 72px;
    margin-bottom: 1rem;
    filter: brightness(1.1);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.6;
}

.footer-brand strong {
    color: var(--text-main);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links a,
.footer-contact a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-links a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-links a:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}

/* Footer: social icons in their own centered row */
.footer .footer-contact {
    flex-direction: column !important;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    text-align: center;
}

.footer .social-links {
    display: flex !important;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    margin-top: 0.8rem;
}

.footer .social-links a {
    display: flex;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .about-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .about-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .about-image-container {
        order: -1;
    }
}
