/* 
Theme Stylesheet
No letter-spacing allowed as per user request.
*/

:root {
    --color-dark-green: #0a2e1c;
    --color-green: #8ec63f;
    --color-text-dark: #333333;
    --color-text-light: #777777;
    --color-white: #ffffff;
    --color-bg-light: #f9f9f9;
    
    --font-primary: 'Nunito Sans', sans-serif;
    
    --transition-speed: 0.3s;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
}

body {
    margin: 0;
    padding: 80px 0 0 0; /* padding-top 80px to prevent content jumping under fixed header */
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.section-title, .page-hero-title, .servicio-title, .cta-title, .footer-title,
.mv-title, .equipo-name, .doc-card-top-title, .contacto-title, .font-weight-bold {
    font-weight: 800 !important;
    font-size: 2.6rem;
    line-height: 2.9rem;
}

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

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

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
   
}
.container_footer {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
   
}

.section-padding {
    padding: 60px 0;
}

.pb-large {
    padding-bottom: 100px;
}

.text-dark { color: var(--color-text-dark); }
.text-green { color: var(--color-green); }
.text-white { color: var(--color-white); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.ms-2 { margin-left: 0.5rem; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.w-100 { width: 100%; }
.font-weight-bold { font-weight: 700; }
.d-none { display: none !important; }
.flex-column { flex-direction: column !important; }

@media (min-width: 768px) {
    .d-md-flex { display: flex !important; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background: var(--color-white);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 90%;
}

.site-branding .logo-link {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark-green);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation > ul > li {
    position: relative;
    padding: 25px 0;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
}

/* Active State & Hover */
.main-navigation > ul > li.active > a,
.main-navigation > ul > li:hover > a {
    color: var(--color-green);
}

.main-navigation > ul > li.active > a::after,
.main-navigation > ul > li:hover > a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-green);
}

/* Dropdown Menu */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-white);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-navigation .sub-menu li {
    padding: 0;
}

.main-navigation .sub-menu a {
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-dark);
}

.main-navigation .sub-menu li:not(:last-child) {
    border-bottom: 2px solid var(--color-green);
}

.main-navigation .sub-menu a:hover {
    color: var(--color-green);
}

/* ==========================================================================
   Servicios Section
   ========================================================================== */
.section-separator {
    border: 0;
    height: 1px;
    background-color: #d3d3d3;
    margin: 0;
}

.servicios-title-left {
    margin-left: 55px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .servicios-title-left {
        margin-left: 55px;
        margin-bottom: 30px;
    }
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.servicio-card {
    text-align: center;
    padding: 20px;
    position: relative;
}

/* Separators */
.servicio-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 120px;
    bottom: 20px;
    width: 1px;
    background-color: #d3d3d3;
}

.servicio-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 1.5px solid var(--color-green);
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.servicio-title-inline {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.servicio-desc {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 60px 0 0;
    
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
   

}

.footer-slogan {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 20px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--color-green);
    color: var(--color-white);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-light);
}

.footer-links a:hover {
    color: var(--color-green);
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--color-text-light);
    align-items: flex-start;
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--color-text-dark);
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px 0;
}

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

.footer-bottom p {
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-navigation > ul > li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .main-navigation a {
        padding: 15px 20px;
        width: 100%;
    }

    .main-navigation > ul > li.active > a::after,
    .main-navigation > ul > li:hover > a::after {
        display: none;
    }

    .main-navigation .sub-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        border-radius: 0;
        border-top: 1px solid #eee;
        background: #fafafa;
        width: 100% !important;
        padding: 0;
    }

    .main-navigation .sub-menu a {
        padding-left: 40px !important;
    }

    .main-navigation .menu-item-has-children.open .sub-menu {
        display: flex !important;
    }

    .diferencia-container {
        flex-direction: column;
        gap: 30px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicio-card:not(:last-child)::after {
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        height: 1px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-decoration {
        display: none;
    }

    .hero-vertical-text {
        display: none;
    }

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

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


@media (max-width: 768px) {
    .service-card-item {
        flex: 0 1 100%;
    }
    .section-title {
        font-size: 2rem !important;
    }
}
