:root {
    --primary-color: #84A386;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
    --cream-color: #F1EFEA;
}

body {
    font-family: 'Pontano Sans', sans-serif;
    color: #333;
}

h1, h2, h4 {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
.navbar {
    background: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Custom hamburger icon using currentColor so it contrasts with transparent header */
.navbar-toggler {
    color: var(--primary-color);
    border: none;
    padding: 0.25rem 0.75rem;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: none !important;
    width: 28px;
    height: 18px;
    position: relative;
    display: inline-block;
}

.navbar-toggler .navbar-toggler-icon::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    top: 0;
    box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
    border-radius: 2px;
}

/* When navbar has scrolled (white background), make the toggler dark for contrast */
.navbar.scrolled .navbar-toggler {
    color: var(--dark-color);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative; /* required for the active indicator pseudo-element */
}

.btn-nav-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-close-menu {
    display: none;  /* Oculto en desktop */
}

.navbar-brand-mobile {
    display: none;  /* Oculto en desktop */
}

/* Active nav link indicator: horizontal bar under the text */
.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px; /* distance from baseline; adjust if needed */
    width: 36%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.22s ease, opacity 0.22s ease;
    opacity: 1;
}

/* Small hover effect: expand indicator (optional) */
.nav-link:hover::after {
    width: 48%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #c0c0c0 100%);
    background-image: url('img/Web/hero_bg_2.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.hero-section h1,
.hero-section p {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 68.84px;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 25.5px;
    margin-bottom: 30px;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s;
    color: white;
}

.btn-primary-custom:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
}

/* Logo Section */
.logo-section {
    padding: 60px 0;
    padding-top: 0;
    background: var(--light-bg);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.logo-text {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 15px;
    margin-bottom: 10px;
}

.logo-subtitle {
    color: var(--primary-color);
    font-size: 43.648px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo-image {
    width: 350px;
    height: 350px;
}

.company-description {
    font-size: 20.608px;
    color: #666;
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.6;
    text-align: center;
}

/* Features Section */
.features-section {
    background: var(--primary-color);
    padding: 60px 0;
    color: white;
}

.features-section h2 {
    font-weight: normal;
    margin-bottom: 100px;
    text-align: center;
    font-size: 67.4px;
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-icon i {
    font-size: 75px;
    color: white;
}

.feature-title {
    font-weight: normal;
    font-size: 27.08px;
    color: white;
    margin-top: 15px;
}

/* Services Section */
.services-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.services-section h2 {
    font-weight: normal;
    margin-bottom: 100px;
    text-align: center;
    font-size: 67.4px;
    color: var(--primary-color);
}

.service-image {
    height: 500px;
    width: 500px;
    background-size: cover;
    background-position: center;
}

.service-one {
    background-image: url('img/Web/Rectangle1.jpeg');
}

.service-two {
    background-image: url('img/Web/Rectangle2.png');
}

.service-three {
    background-image: url('img/Web/Rectangle3.jpeg');
}

.service-four {
    background-image: url('img/Web/Rectangle4.jpeg');
}

.service-five {
    background-image: url('img/Web/Rectangle5.jpeg');
}

.service-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-title {
    text-align: center;
    font-weight: normal;
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding-left: 30px;
    position: relative;
    color: var(--dark-color);
    font-size: 20px;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color); 
    font-weight: bold;
    font-size: 1.2rem;
}

.service-divider {
    margin-bottom: 50px;
}

/* Team Section */

.team-section {
    padding: 60px 0;
    background: var(--cream-color);
}

.team-section h2 {
    font-weight: normal;
    margin-bottom: 100px;
    text-align: center;
    font-size: 67.4px;
    color: var(--primary-color);
}

.team-member {
    text-align: center;
    padding: 20px;
}

.team-member h4 {
    font-weight: normal;
    font-size: 30px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.team-member p {
    color: #666;
    font-size: 20px;
}

.certification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.certification-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: #666;
}

.certification-list li:before {
    content: "•";  /* Bullet point teal */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: white;
    background-size: cover;
    background-position: center;
}

.contact-section h2 {
    font-weight: bold;
    margin-bottom: 50px;
    font-size: 67.4px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-icon i {
    color: white;
    font-size: 25px
}

.contact-text {
    color: #666;
    font-size: 20px;
}

#whatsapp-link, #mail-link, #face-link {
    color: #666;
    font-size: 20px;
    text-decoration: none;
}

#whatsapp-link:hover, #mail-link:hover, #face-link:hover {
    text-decoration: underline;
}

.map-container {
    overflow: hidden;
    height: 600px;
    width: 600px;
    background: #e0e0e0;
    position: relative;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    font-size: 0.85rem;
    text-align: center;
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile services */

.services-mobile h4 {
    color: white;
}

.service-row {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service1-bg {
    background-image: url('img/Mobile/Rectangle1.jpeg');
    background-size: cover;
    background-position: center;
}

.service2-bg {
    background-image: url('img/Mobile/Rectangle2.png');
    background-size: cover;
    background-position: center;
}

.service3-bg {
    background-image: url('img/Mobile/Rectangle3.jpeg');
    background-size: cover;
    background-position: center;
}

.service4-bg {
    background-image: url('img/Mobile/Rectangle4.jpeg');
    background-size: cover;
    background-position: center;
}

.service5-bg {
    background-image: url('img/Mobile/Rectangle5.jpeg');
    background-size: cover;
    background-position: center;
}

/* Responsive Tablet */
@media (max-width: 992px) {

    .features-section {
        padding: 50px 0;
    }

    .features-section h2 {
        margin-bottom: 80px;
        font-size: 50px;
    }

    .feature-box {
        padding: 18px;
    }

    .feature-icon i {
        font-size: 60px;
    }

    .feature-title {
        font-size: 20px;
        margin-top: 15px;
    }

    .services-section {
        padding: 50px 0;
    }

    .services-section h2 {
        margin-bottom: 70px;
        font-size: 50px;
    }

    .service-title {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .service-list li {
        padding-left: 20px;
        font-size: 13px;
    }

    .service-image {
        height: 300px;
        width: 300px;
        background-size: cover;
        background-position: center;
    }

    .team-section h2 {
        margin-bottom: 40px;
        font-size: 50px;
    }

    .team-member h4 {
        font-size: 25px;
        margin-bottom: 5px;
    }

    .team-member p {
        font-size: 15px;
    }

    .contact-section h2 {
        margin-bottom: 40px;
        font-size: 50px;
    }

    #whatsapp-link, #mail-link, #face-link {
        font-size: 12px;
    }

    .contact-item {
        margin-bottom: 18px;
    }

    .contact-icon {
        width: 25px;
        height: 25px;
        margin-right: 10px;
    }

    .contact-icon i {
        font-size: 12px;
    }

    .contact-text {
        color: #666;
        font-size: 12px;
    }

    .map-container {
        height: 325px;
        width: 325px;
    }

}

/* Responsive Mobile */
@media (max-width: 768px) {

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    
    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        height: 100vh !important;
    }
    
    .navbar-nav {
        text-align: center;
        width: 100%;
    }
    
    .nav-item {
        margin: 20px 0;
    }
    
    .nav-link {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
    }
    
    .btn-nav-cta {
        margin-top: 30px;
        width: 80%;
        max-width: 300px;
    }

    .btn-close-menu {
        display: block;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--dark-color);
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
        transition: transform 0.3s;
    }

    .btn-close-menu:hover {
        transform: rotate(90deg);  /* Rota 90° al pasar el mouse */
    }

    .nav-link {
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        color: #000 !important;  /* ← AGREGUÉ ESTA LÍNEA */
    }

    .nav-mobile {
        display: flex;
        width: 100%;
        justify-content: space-around;
        align-items: center;
    }

    .navbar-brand-mobile {
        display: block;  /* Oculto en desktop */
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .logo-text {
        font-size: 2rem;
        letter-spacing: 8px;
    }

    .logo-subtitle {
        font-size: 35px;
        letter-spacing: 3px;
    }

    .logo-image {
        width: 150px;
        height: 150px;
    }

    .logo-section {
       padding-top: 30px;
    }

    .company-description {
        font-size: 15px;
        margin: 30px 5px 0;
        line-height: 1.6;
    }

    .feature-box {
        margin-bottom: 30px;
    }

    .services-section {
        padding-bottom: 0;
    }

    .contact-section h2 {
        margin-bottom: 40px;
        font-size: 50px;
        text-align: center;
    }

    #whatsapp-link, #mail-link, #face-link {
        font-size: 15px;
    }

    .contact-item {
        margin-bottom: 15px;
    }

    .contact-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    .contact-icon i {
        font-size: 10px;
    }

    .contact-text {
        color: #666;
        font-size: 15px;
    }

    .map-container {
        height: 350px;
        width: 100%;
    }

    /* Dark overlay on mobile service background images for readability */
    .service-row {
        position: relative;
    }

    .service-row::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.35);
        pointer-events: none;
        transition: background 0.2s ease;
    }

    /* Ensure service titles sit above the overlay and are readable */
    .service-row .service-title {
        position: relative;
        z-index: 1;
        color: #fff;
    }

    /* Inline service panel shown below the selected mobile image (no background) */
    .service-inline-panel {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 6px 10px 4px 10px;
        margin: 6px 8px 12px 8px;
        z-index: 1500;
        position: relative;
        animation: panelIn 180ms ease;
    }

    @keyframes panelIn {
        from { transform: translateY(-6px); opacity: 0 }
        to { transform: translateY(0); opacity: 1 }
    }

    /* no panel title shown; center text and use black color */
    .service-inline-panel {
        text-align: center;
    }

    /* center each list item as its own inline-block so the list appears centered */
    /* Center the block (panel) and stack items vertically inside it so edges align (justified look) */
    .service-inline-panel {
        text-align: left;
        width: 92%;
        max-width: 420px;
        margin: 0 auto; /* center the block */
        padding: 8px 12px;
    }

    .service-inline-body ul {
        padding-left: 0;
        margin: 0;
        list-style: none;
        color: #000;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .service-inline-body ul li {
        color: #000;
        margin: 0;
        display: block;
        width: 100%;
        padding: 6px 10px 6px 36px; /* space for absolute checkmark */
        box-sizing: border-box;
        position: relative;
    }

    .service-inline-body ul li:before {
        content: "✓";
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1rem;
    }
}