:root {
    --bg-dark: #0a0a0f;
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    --accent: #00d2ff;
    --accent-hover: #3a7bd5;
    --wa-color: #25D366;
    --wa-color-dark: #128C7E;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

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

/* Background Layers */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url('img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(
        to bottom, 
        rgba(10, 10, 15, 0.8) 0%, 
        rgba(10, 10, 15, 0.95) 100%
    );
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
    height: 80px; /* Tamaño aumentado */
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-light);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-light);
}

.btn-primary {
    background: var(--wa-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: var(--wa-color-dark);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

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

.hero-title span {
    background: linear-gradient(45deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

/* Services */
.services {
    padding: 6rem 0;
    position: relative;
}

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

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

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

.glass-panel {
    background-color: var(--glass-bg);
    background-size: cover; /* Added for bg image */
    background-position: center; /* Added for bg image */
    background-blend-mode: overlay; /* To mix image and glass color */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative; /* Added */
    overflow: hidden; /* Added */
    z-index: 1; /* Added */
}

/* Dimmer overlay for text readability when there is an image */
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 15, 0.6);
    z-index: -1;
    transition: all 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-panel:hover::before {
    background: rgba(10, 10, 15, 0.4); /* Lighten slightly on hover */
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.glass-panel:hover .icon-wrapper {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.glass-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--wa-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--wa-color-dark);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.text-wa {
    color: var(--wa-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.text-wa:hover {
    color: var(--text-light);
}

/* Modal & Gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 0.4s ease-out forwards;
}

.modal-close {
    position: absolute;
    top: 20px; right: 30px;
    color: var(--text-light);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-close:hover { color: var(--accent); }

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-container {
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#carousel-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.carousel-prev, .carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    user-select: none;
    transition: all 0.3s;
}

.carousel-next { right: -70px; }
.carousel-prev { left: -70px; }

.carousel-prev:hover, .carousel-next:hover {
    background: var(--accent);
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    cursor: pointer;
    height: 10px; width: 10px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover { background-color: var(--accent); }

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .carousel-prev { left: 10px; background: rgba(0,0,0,0.5); }
    .carousel-next { right: 10px; background: rgba(0,0,0,0.5); }
    .modal-content { max-width: 95%; }
}
