/* 
    Soluciones Integrales BA - Design System
    Colors:
    --navy: #2e3144
    --blue: #005691
    --green: #83bb26
    --accent: #00a8e8
    --light: #f8f9fa
    --white: #ffffff
    --gray: #6c757d
*/

:root {
    --navy: #2e3144;
    --blue: #005691;
    --green: #83bb26;
    --accent: #00a8e8;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --text: #333333;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

img.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded {
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}

.btn-primary {
    background-color: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 145, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy);
}

.btn-light {
    background-color: var(--white);
    color: var(--navy);
}

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

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Removed .scrolled logic as header is now always white */

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.navbar-logo {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: var(--navy);
    line-height: 1.2;
}

.logo-text strong {
    color: var(--blue);
    display: block;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .logo-text strong {
        display: inline;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.logo-text.light {
    color: var(--white);
}

.logo-text.light strong {
    color: var(--accent);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('assets/hero.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    padding-top: 80px;
    /* Space for the fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 49, 68, 0.9) 0%, rgba(0, 86, 145, 0.7) 100%);
    z-index: 1;
}

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

.hero-text {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.logo-hero {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
}

.logo-hero img {
    height: 450px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.38;
    /* More visible on colored backgrounds */
}

@media (max-width: 1200px) {
    .logo-hero {
        right: -50px;
    }

    .logo-hero img {
        height: 300px;
    }
}

@media (max-width: 992px) {
    .logo-hero {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        right: auto;
    }

    .logo-hero img {
        height: 250px;
    }
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--green);
    color: var(--white);
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(131, 187, 38, 0.3);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 strong {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Presentation */
.presentation {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.feature-list i {
    color: var(--green);
    font-size: 1.25rem;
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--light);
}

.section-header {
    margin-bottom: 4rem;
}

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

.service-card {
    background: var(--white);
    padding: 0;
    border-radius: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-description {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--blue);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

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

.service-card.spotlight {
    border: 2px solid rgba(131, 187, 38, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 86, 145, 0.1);
    color: var(--blue);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: -1.5rem;
    /* Push it up slightly into the space */
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

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

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    color: var(--gray);
    font-size: 0.95rem;
}

/* Zone */
.work-zone {
    padding: 80px 0;
    background: var(--navy);
    color: var(--white);
}

.work-zone h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.zone-badge {
    background: var(--blue);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin: 1.5rem 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.main-footer {
    padding: 3rem 0;
    background: #1a1c29;
    color: #888;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .main-header {
        padding: 0.5rem 0;
    }

    .main-header nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

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

    .navbar-logo {
        height: 40px;
        position: relative;
        z-index: 2;
    }

    .logo-text {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: auto;
        white-space: nowrap;
        font-size: 1.1rem;
        z-index: 1;
    }

    .logo-text strong {
        display: block;
        /* Force 2 lines to save horizontal space and avoid overlap */
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        display: flex;
    }

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

    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1002;
        cursor: pointer;
    }

    .mobile-menu-toggle i.fa-times {
        color: var(--navy);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Gallery Section */
/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--white);
}

.gallery-wrapper {
    position: relative;
    padding: 0 50px; /* Space for buttons outside the slider */
    max-width: 100%;
}

.gallery-slider {
    padding: 20px 0 50px; /* Bottom padding for pagination */
    overflow: hidden;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 350px; /* Increased height for premium feel */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

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

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--blue);
    background: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.swiper-button-next {
    right: 0px;
}

.swiper-button-prev {
    left: 0px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--blue);
    color: var(--white);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--blue) !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    animation: zoom 0.3s ease-out;
}

@keyframes zoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent);
    text-decoration: none;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .gallery-slider {
        padding: 10px 40px 50px; /* Less horizontal space on mobile */
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .lightbox-content {
        max-width: 95%;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next { right: 2px; }
    .swiper-button-prev { left: 2px; }
}

/* Reveal Animation */
.service-card,
.presentation-image,
.presentation-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.visible,
.presentation-image.visible,
.presentation-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Methods */
.contact-methods {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-methods .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Footer Contact */
.footer-contact {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    color: #888;
}

.footer-contact i {
    color: var(--green);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--green);
    text-decoration: underline;
}