/* ===================================
   GOOGLE FONTS
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Monda:wght@400;700&family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* ===================================
   VARIABLES
   =================================== */

:root {
    /* Colores */
    --verde-aqua: #00EA85;
    --verde-fuerte: #166138;
    --verde: #346148;
    --beige: #F2F1ED;
    --gris: #3A3A3A;
    --negro: #161616;
    --blanco: #FFFFFF;

    /* Fuentes */
    --font-logo: 'Monda', sans-serif;
    --font-main: 'Monda', sans-serif;
    --font-secondary: 'Ubuntu', sans-serif;
}

/* ===================================
   RESET
   =================================== */

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

html,
body {
    font-family: var(--font-main);
    color: var(--negro);
    background-color: var(--blanco);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}


.banner-main {
    width: 100%;
    height: auto;

}



@media (max-width: 768px) {
    .banner-main {
        height: 40vw;
        object-fit: cover;
        object-position: left;
    }
}

/* ===================================
   HEADER
   =================================== */

.header {
    background-color: var(--blanco);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Optional: adds subtle separation */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 60px 12px 60px;
}

/* ===================================
   LOGO
   =================================== */

.header-logo {
    flex-shrink: 0;
}

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

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

/* ===================================
   NAVIGATION
   =================================== */

.header-nav {
    display: flex;
    align-items: center;
    gap: 80px;
}

.nav-item {
    position: relative;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 400;
    color: var(--negro);
    letter-spacing: 1px;
    padding: 0;
    transition: color 0.3s ease;
}

.nav-btn:hover {
    color: var(--gris);
}

.chevron {
    transition: transform 0.3s ease;
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

/* ===================================
   DROPDOWN
   =================================== */

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 45px);
    /* Aumentado para bajarlo más */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(22, 22, 22, 0.95);
    padding: 20px 25px;
    padding-top: 30px;
    min-width: 280px;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

/* Invisible bridge to prevent dropdown from closing */
.dropdown::after {
    content: '';
    position: absolute;
    top: -45px;
    /* Cubre el espacio desde el botón hasta el menú */
    left: 0;
    right: 0;
    height: 50px;
    /* Un poco más alto para asegurar solapamiento */
    background: transparent;
}

/* Tooltip arrow */
.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(22, 22, 22, 0.95);
}

.nav-item:hover .dropdown,
.nav-item.active .dropdown {
    display: flex;
}

.dropdown-item {
    display: inline-block;
    color: var(--blanco) !important;
    text-decoration: none;
    padding-top: 12px;
    font-family: var(--font-logo);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
}

.dropdown-link-text {
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    color: var(--blanco) !important;
}

.dropdown-item::after {
    content: ' · ▸';
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 4px;
    vertical-align: super;
    color: var(--blanco) !important;
}

.dropdown-item:hover {
    color: var(--blanco) !important;
}

.dropdown-item:hover .dropdown-link-text {
    border-bottom-color: var(--blanco) !important;
    color: var(--blanco) !important;
}

.dropdown-item:hover::after {
    opacity: 1 !important;
    color: var(--blanco) !important;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===================================
   BUTTON - INICIAR SESION
   =================================== */

.header-action {
    flex-shrink: 0;
    animation: fadeIn 0.6s ease-in;
}

.btn-iniciar {
    display: inline-block;
    font-family: var(--font-logo);
    font-size: 16px;
    font-weight: 300;
    color: var(--verde-fuerte);
    letter-spacing: 0px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    background-color: var(--beige);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-iniciar:hover {
    background-color: var(--verde-fuerte);
    color: var(--blanco);
}

/* ===================================
   HEADER LINE
   =================================== */

.header-line {
    width: 100%;
    height: 3px;
    background-color: var(--verde-aqua);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
    .header-container {
        padding: 20px 40px;
    }

    .header-nav {
        gap: 50px;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 15px 30px;
    }

    .logo-text {
        font-size: 26px;
    }

    .logo-plus {
        font-size: 26px;
    }

    .header-nav {
        gap: 40px;
    }

    .nav-btn {
        font-size: 13px;
    }

    .btn-iniciar {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-plus {
        font-size: 22px;
    }

    .logo-reg {
        font-size: 10px;
    }

    .header-nav {
        gap: 25px;
    }

    .nav-btn {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .btn-iniciar {
        font-size: 11px;
        padding: 8px 16px;
    }

    .dropdown {
        min-width: 220px;
        padding: 15px 20px;
    }

    .dropdown-item {
        font-size: 12px;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        position: relative;
        /* Referencia para el dropdown centrado */
    }

    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    /* Permitir que el dropdown tome referencia del container principal */
    .nav-item {
        position: static;
    }

    .dropdown {
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 90%;
        /* Ancho cómodo centrado */
        transform: none;
        top: 100%;
        /* Justo debajo del header container */
    }

    .dropdown::before {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Ajustar punte invisible para móviles dado el nuevo posicionamiento */
    .dropdown::after {
        top: -20px;
        height: 25px;
    }
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--negro);
    padding: 60px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 90px;
    gap: 40px;
}

/* Footer Logo */
.footer-logo {
    flex-shrink: 0;
}

.footer-logo-link {
    display: flex;
    align-items: baseline;
    text-decoration: none;
}

.footer-logo-text {
    font-family: var(--font-logo);
    font-size: 42px;
    font-weight: 700;
    color: var(--gris);
    letter-spacing: 2px;
}

.footer-logo-plus {
    font-family: var(--font-logo);
    font-size: 48px;
    font-weight: 700;
    color: var(--verde-aqua);
    margin-left: 2px;
}

/* Footer Navigation */
.footer-nav,
.footer-services {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 500;
    color: var(--blanco);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--verde-aqua);
}

/* Footer Contact Icons */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--verde-aqua);
    color: var(--negro);
    transition: all 0.3s ease;
}

.footer-icon-btn:hover {
    background-color: var(--verde-fuerte);
    color: var(--blanco);
    transform: scale(1.1);
}

.footer-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-container {
        padding: 0 90px;
    }

    .footer-logo-text {
        font-size: 36px;
    }

    .footer-logo-plus {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .footer {
        padding: 50px 0;
    }

    .footer-container {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-logo {
        width: 100%;
        text-align: center;
    }

    .footer-logo-link {
        justify-content: center;
    }

    .footer-nav,
    .footer-services {
        flex: 1;
        min-width: 200px;
    }

    .footer-contact {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 90px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav,
    .footer-services {
        align-items: center;
        width: 100%;
    }

    .footer-link {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 40px 0;
    }

    .footer-container {
        padding: 0 20px;
        gap: 30px;
    }

    .footer-logo-text {
        font-size: 28px;
    }

    .footer-logo-plus {
        font-size: 32px;
    }

    .footer-icon-btn {
        width: 36px;
        height: 36px;
    }

    .footer-icon-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-green {
    color: var(--verde-aqua);
}

.section-title {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 600;
    color: var(--negro);
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--gris);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: var(--blanco);
    background-color: var(--verde-fuerte);
    padding: 14px 35px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--verde-aqua);
    color: var(--negro);
}

.btn-secondary {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: var(--negro);
    background-color: var(--beige);
    padding: 14px 35px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--verde-fuerte);
    color: var(--blanco);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 115vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Overlay removed - the banner image already has the green area built-in */

.hero-content {
    display: grid;
    place-items: center;
    z-index: 2;
    width: 100vw;
    min-height: 115vh;
    background-image: linear-gradient(135deg, rgba(22, 97, 56, 0.95), rgba(0, 234, 133, 0.1));
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 300;
    color: var(--verde-fuerte);
    background-color: var(--verde-aqua);
    padding: 20px 65px;
    border-radius: 0 35px 35px 0;
    margin-bottom: 35px;
    letter-spacing: 0px;
}

.hero-title {
    font-family: var(--font-main);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 1.2px;
    margin-bottom: 25px;
    color: var(--blanco);
}

.hero-subtitle {
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 300;
    color: var(--blanco);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-description {
    font-family: var(--font-main);
    font-size: 22px;
    line-height: 2.0em;
    color: var(--blanco);
    margin-bottom: 35px;
    font-weight: 100;
}

.hero-description strong {
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta:hover .hero-cta-line {
    height: 40px;
}

.hero-cta:hover .hero-cta-text {
    color: var(--verde-aqua);
}

.hero-cta-line {
    width: 4px;
    height: 40px;
    background-color: var(--verde-aqua);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.hero-cta-text {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    color: var(--blanco);
    transition: color 0.3s ease;
}

.hero-features {
    list-style: none;
    margin: 30px 0px;
    padding: 0px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--blanco);
    line-height: 2em;
    font-weight: bolder;
}

.hero-features svg {
    color: var(--verde-aqua);
    flex-shrink: 0;
    width: 38px;
    height: 38px;
}

.hero-note {
    font-size: 22px;
    font-weight: 200;
    color: var(--blanco);
    opacity: 0.85;
}

/* ===================================
   REPSE SECTION
   =================================== */

.repse {
    background-color: var(--verde-fuerte);
    padding: 50px 0;
}

.repse-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    gap: 40px;
}

.repse-title {
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 20px;
}

.repse-list {
    list-style: none;
}

.repse-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-logo);
    font-size: 20px;
    color: var(--blanco);
    margin-bottom: 12px;
    font-weight: 400;
}

.repse-list svg {
    color: var(--blanco);
    flex-shrink: 0;
}

.repse-logo img {
    height: 360px;
    width: auto;
}

/* ===================================
   PLAGAS SECTION
   =================================== */

.plagas {
    padding: 80px 0;
    background-color: var(--blanco);
}

.plagas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.plaga-img {
    width: 95px;
    height: 95px;
    object-fit: contain;
}

.plagas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.plaga-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 120px;
    margin: 0 auto;
}

.plaga-icon {
    width: 85px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.plaga-icon img {
    width: 95px;
    height: 95px;
    object-fit: contain;
}

.plaga-item:hover .plaga-icon {
    background-color: var(--verde-aqua);
    transform: scale(1.1);
}

.plaga-name {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 500;
    color: var(--gris);
    text-align: center;
}

/* ===================================
   COBERTURA SECTION
   =================================== */

.cobertura {
    padding: 100px 0;
    /* background-color: #F6F8F6; */
    position: relative;
    overflow: hidden;
    background-image: url('../img/inicio/background_inicio_servicios.jpg');
    /* New background */
    background-size: cover;
    background-position: center;
}

.cobertura-container {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    gap: 80px;
}

/* Left side with circular photos and map */
.cobertura-left {
    flex: 1.2;
    position: relative;
    height: 600px;
}

/* Map Image - Hidden */
.cobertura-map-img {
    display: none;
}

/* Circular photo containers - Hidden */
.cobertura-photo-circle {
    display: none;
}

.cobertura-photo-circle img {
    /* Kept for reference but hidden by parent */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Positioning for Staggered Collage - Hidden via parent but keeping rules or hiding explicitly */
.cobertura-photo-1,
.cobertura-photo-2,
.cobertura-photo-3,
.cobertura-photo-4 {
    display: none;
}

/* Decorative arcs */
.cobertura-arc {
    position: absolute;
    border: 2px solid var(--verde-fuerte);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.cobertura-arc-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -200px;
    border-color: transparent;
    border-right-color: rgba(22, 97, 56, 0.1);
    border-bottom-color: rgba(22, 97, 56, 0.1);
    transform: rotate(-30deg);
}

.cobertura-arc-2 {
    width: 450px;
    height: 450px;
    bottom: -50px;
    left: -50px;
    border-color: transparent;
    border-top-color: rgba(22, 97, 56, 0.15);
    border-left-color: rgba(22, 97, 56, 0.15);
    transform: rotate(15deg);
}

.cobertura-arc-3 {
    display: none;
}

/* Right Content */
.cobertura-content {
    flex: 1;
}

.cobertura-badge-container {
    display: inline-block;
    /* Hero Badge Style Replication */
    background-color: var(--verde-aqua);
    padding: 15px 45px;
    border-radius: 0 35px 35px 0;
    margin-bottom: 25px;
    box-shadow: none;
    transform: none;
    /* Removed skew */
    margin-left: -60px;
    /* Pull to left edge like hero banner if possible, or just normal */
}

/* Adjust margin-left for the container if we want it to look like it comes from the side, 
   but since it's inside a flex container column, let's keep it simple first or try to mimic the look */
.cobertura-badge-container {
    margin-left: 0;
    /* Reset */
}

.cobertura-badge {
    display: inline-block;
    transform: none;
    /* Removed skew */
    font-family: var(--font-main);
    font-size: 18px;
    /* Slightly smaller than hero's 24px because space */
    font-weight: 300;
    color: var(--verde-fuerte);
    letter-spacing: 0px;
}

.cobertura-title {
    font-family: var(--font-logo);
    font-size: 32px;
    font-weight: 400;
    color: var(--verde-fuerte);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.cobertura-description {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--gris);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 90%;
}

.cobertura-subtitle {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    color: var(--verde-fuerte);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cobertura Sectors List with icons */
.cobertura-sectors-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cobertura-sectors-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    color: var(--negro);
    letter-spacing: 0.5px;
}

.cobertura-sectors-list li img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(26%) sepia(19%) saturate(1900%) hue-rotate(105deg) brightness(97%) contrast(92%);
    /* Verde Fuerte */
}

@media (max-width: 768px) {
    .cobertura {
        padding: 0 0 60px 0;
    }
}

/* ===================================
   MEDIO AMBIENTE SECTION
   =================================== */

.medioambiente {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.medioambiente-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.medioambiente-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.medioambiente-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(22 97 56 / 25%)
}

.medioambiente-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--blanco);
    padding: 60px;
}

.medioambiente-badge {
    display: block;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0.9;
}

.medioambiente-title {
    font-family: var(--font-main);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.medioambiente-description {
    font-family: var(--font-main);
    font-size: 16px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* ===================================
   SERVICIOS SECTION
   =================================== */

.servicios {
    padding: 80px 0;
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

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

.servicio-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    aspect-ratio: 9/12;
}



.servicio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--blanco);
}

/* Fixed syntax error here */

.servicio-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Estado por defecto: propiedad1 visible */
.servicio-img .img-default {
    opacity: 1;
    z-index: 1;
}

.servicio-img .img-hover {
    opacity: 0;
    z-index: 2;
}

.servicio-img .img-active {
    opacity: 0;
    z-index: 3;
}

/* La imagen default siempre visible - los overlays son transparentes */
/* Ya no ocultamos img-default en hover */

/* Estado active (click): propiedad3 visible */
.servicio-card.active .servicio-img .img-default {
    opacity: 0;
}

.servicio-card.active .servicio-img .img-active {
    opacity: 1;
}

/* Default View (Always visible until active) */
.servicio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--blanco);
    transition: all 0.4s ease;
    z-index: 2;
}

/* ===================================
   HOVER OVERLAY - Diagonal design with animation
   =================================== */

/* Base layer - verde menta frame/border on hover */
.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 234, 133, 0.45);
    z-index: 3;
    /* No clip-path - covers entire image as base layer */
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 10px;
    opacity: 0;
}

/* On hover - show verde menta frame */
.servicio-card:hover::before {
    opacity: 1;
}

.servicio-card.active::before {
    opacity: 0;
}

/* Main diagonal overlay - verde oscuro with transparency */
.servicio-hover-overlay {
    position: absolute;
    /* Start from negative position so top corner is always covered when moving */
    top: -20px;
    left: -20px;
    /* Make it larger to cover when displaced */
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background: rgba(22, 97, 56, 0.8);
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 50px 45px 30px 45px;
    /* Rectangle corner shape with rounded corner effect */
    clip-path: polygon(0 0,
            100% 0,
            100% 15%,
            /* Curved corner points */
            70% 48%,
            67% 52%,
            63% 55%,
            58% 56%,
            /* End of curve */
            0 38%);
    pointer-events: auto;
    border-radius: 10px;
    opacity: 1;
    /* Add transition for diagonal movement */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* On hover - move diagonally ~20px */
.servicio-card:hover .servicio-hover-overlay {
    transform: translate(20px, 20px);
}

/* Hide hover overlay when card is active */
.servicio-card.active .servicio-hover-overlay {
    opacity: 0;
    pointer-events: none;
    transform: translate(0, 0);
}

/* Hover content - text on top left */
.hover-content {
    color: var(--blanco);
}

.hover-label {
    display: block;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.hover-name {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

/* Circular button positioned at the curved corner - outside clip-path */
.hover-check {
    position: absolute;
    /* Position slightly more inside the dark green area */
    left: 60%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    /* Higher z-index to be above clip-path */
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, left 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* More transparent space around the button */
    outline: 18px solid transparent;
}

/* Move button with the overlay on hover - careful with edges */
.servicio-card:hover .hover-check {
    left: calc(55% + 30px);
    top: calc(52% + 5px);
}

.hover-check:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hover-check svg {
    width: 22px;
    height: 22px;
    stroke: var(--verde-fuerte);
    stroke-width: 2.5;
    /* Point towards the right/down-right direction */
    transform: rotate(45deg);
}

/* Active trigger unified with hover-check style */
.servicio-trigger {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--verde-fuerte);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.servicio-trigger svg {
    width: 20px;
    height: 20px;
    stroke: var(--verde-fuerte);
    stroke-width: 2.5;
    /* Pointing rightward to contrast with the diagonal hover chevron */
    transform: none;
}

.servicio-label {
    display: block;
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.servicio-name {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
}

.servicio-title-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
    position: relative;
    z-index: 20;
    /* Ensure it's clickable */
}

.servicio-title-link:hover {
    opacity: 0.8;
}

/* Hide default info when overlay is visible */
.servicio-card .servicio-info {
    opacity: 0;
}


/* ===================================
   ACTIVE OVERLAY - Full card design on click
   =================================== */

/* Active overlay container - hidden by default */
.servicio-active-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 10px;
    overflow: hidden;
}

/* Show overlay when card is active */
.servicio-card.active .servicio-active-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header - verde menta background */
.active-header {
    background-color: var(--verde-aqua);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.active-title {
    color: var(--verde-fuerte);
}

.active-title span {
    display: block;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.active-title h3 {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

/* Trigger button in header */
.servicio-trigger {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--verde-fuerte);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.servicio-trigger svg {
    width: 20px;
    height: 20px;
    stroke: var(--verde-fuerte);
}

.servicio-trigger:hover {
    background-color: var(--blanco);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Body - verde fuerte background */
.active-body {
    flex: 1;
    background-color: var(--verde-fuerte);
    padding: 25px;
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
}

.active-body p {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

/* Cuando está activo, la tarjeta puede recibir clicks */
.servicio-card.active {
    cursor: pointer;
}

/* Hide the default info when active */
.servicio-card.active .servicio-info {
    opacity: 0;
}

/* Header inside active view (Mint) */
.active-title-bar {
    background-color: var(--verde-aqua);
    padding: 20px;
    color: var(--verde-fuerte);
}

.servicio-label-active {
    display: block;
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.servicio-name-active {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

/* Content inside active view (Dark Green) */
.active-content {
    flex: 1;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--blanco);
}

.service-description {
    font-family: var(--font-main);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.9;
}

.service-tags {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags li {
    font-family: var(--font-main);
    font-size: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

.btn-service-link {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--verde-aqua);
    color: var(--verde-fuerte);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-service-link:hover {
    transform: scale(1.1);
    background-color: var(--blanco);
}

/* ===================================
   PORQUE ELEGIR SECTION
   =================================== */

.porque {
    padding: 80px 0;
    background-color: var(--beige);
}

.porque-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.porque-title {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 600;
    color: var(--negro);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.4;
}

.porque {
    padding: 100px 0;
    background-color: #f7f7f7;
    /* Light gray background from image */
}

.porque-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.porque-title {
    font-family: var(--font-logo);
    font-size: 42px;
    font-weight: 700;
    color: var(--verde-fuerte);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.25;
}

.porque-logo {
    font-family: var(--font-logo);
    font-size: 42px;
    color: var(--negro);
    display: inline-block;
}

/* Row 1: Top items with circular icons */
.porque-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

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

.porque-circle-icon {
    width: 90px;
    height: 90px;
    background-color: var(--verde-fuerte);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.porque-item:hover .porque-circle-icon {
    transform: scale(1.05);
}

.porque-circle-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Assume white icons inside dark green circles */
}

.porque-item-title {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    color: var(--verde-fuerte);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.porque-item-text {
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--negro);
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
}

/* Row 2: Bottom items - Interactive Rhombus Cards */
.porque-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

/* ===== POR QUE CARDS - COMPLETE OVERRIDE ===== */
#porque-cards {
    padding: 20px 0;
    gap: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#porque-cards>.col-12.col-md-4 {
    flex: 0 0 30%;
    max-width: 350px;
    min-width: 280px;
}

#porque-cards .card.pq-card {
    min-height: 420px;
    height: 420px;
    border-radius: 25px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    background: transparent !important;
    transition: height 0.4s ease, min-height 0.4s ease;
    /* Transición suave */
}

#porque-cards .card.pq-card .card-body.pq-card-body {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    /* Eliminamos padding del contenedor */
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
}

#porque-cards .pq-card-title {
    font-family: var(--font-main);
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0 !important;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
    /* Posicionamiento absoluto para fijarlo arriba */
    position: absolute !important;
    top: 25px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    z-index: 3;
    text-align: center;
}

/* Contenedor de texto e imagen - altura dinámica */
#porque-cards .pq-card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
    min-height: 280px !important;
    padding: 20px 15px !important;
    margin-top: auto !important;
    background: transparent;
}

.pq-card-text {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--negro);
    /* Estado inicial: oculto */
    margin: 0 auto;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    overflow: hidden;
    position: relative;
    z-index: 10;
    /* Asegurar que esté encima de todo */
    text-shadow: none;
    font-weight: 500;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 20px;
}

/* Colores de texto específicos por tarjeta (según su background principal) */
#porque-cards .pq-card-atencion .pq-card-text {
    color: #ffffff !important;
    /* Forzar blanco para contraste garantizado */
}

#porque-cards .pq-card-certificacion .pq-card-text {
    color: var(--verde-fuerte);
    /* Verde fuerte sobre montaña blanca */
}

#porque-cards .pq-card-documentacion .pq-card-text {
    color: #000000;
    padding-top: 40px;
    /* 20px extra (20 base + 20 adicionales) */
}

/* Estado Hover: mostrar texto y expandir */
/* Estado Hover: mostrar texto y expandir */
#porque-cards .card.pq-card:hover .pq-card-text {
    max-height: 200px !important;
    opacity: 1 !important;
    margin: 20px auto 30px auto !important;
    overflow: visible;
    /* Asegurar que se vea si excede */
}

/* ===== CARD 1: Atención - Dark Grey + Two Green Diagonal Shapes ===== */
#porque-cards .pq-card-atencion .pq-card-body {
    background-color: #3C3C3B !important;
}

/* First shape - 65 degree angle (top-right coming down) */
#porque-cards .pq-card-atencion .pq-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--verde-aqua);
    clip-path: polygon(17% 25%, 100% 40%, 100% 100%, 0 100%, 0 50%);
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Hover: Both shapes expand to cover entire card */
#porque-cards .pq-card-atencion:hover .pq-card-body::before {
    width: 100%;
    height: 100%;
    clip-path: polygon(0 25%, 100% 25%, 100% 100%, 0 100%, 0 60%);
}

/* ===== CARD 2: Certificación - Green + White Curved Wave ===== */
#porque-cards .pq-card-certificacion .pq-card-body {
    background-color: var(--verde-fuerte) !important;
}

#porque-cards .pq-card-certificacion .pq-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    clip-path: polygon(17% 40%, 100% 56%, 100% 100%, 0 100%, 0 66%);
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: White curve expands to cover entire card */
#porque-cards .pq-card-certificacion:hover .pq-card-body::before {
    width: 100%;
    height: 100%;
    clip-path: polygon(0 30%, 100% 30%, 100% 100%, 0 100%, 0 60%);
}

/* ===== CARD 3: Documentación - Black + Green Diagonal + White Floor ===== */
#porque-cards .pq-card-documentacion .pq-card-body {
    background-color: #000000 !important;
}

/* Green diagonal section */
#porque-cards .pq-card-documentacion .pq-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    clip-path: polygon(17% 40%, 100% 56%, 100% 100%, 0 100%, 0 66%);
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Hover: White floor expands to cover entire card */
#porque-cards .pq-card-documentacion:hover .pq-card-body::before {
    width: 100%;
    height: 100%;
    clip-path: polygon(0 30%, 100% 30%, 100% 100%, 0 100%, 0 60%);
}


/* ===== Images ===== */
#porque-cards .pq-card-img {
    max-width: 95%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
    position: relative;
    z-index: 2;
    margin-top: 0;
    /* Margin auto puede causar conflictos con flex-end */
    /* El "padding" solicitado se maneja aqui o con margin-bottom si es necesario */
    padding-bottom: 0;
}

#porque-cards .pq-card-atencion .pq-card-img {
    max-height: 340px;
    margin-bottom: -30px;
}

#porque-cards .pq-card-certificacion .pq-card-img {
    max-height: 160px;
    margin-bottom: 60px;
}

#porque-cards .pq-card-documentacion .pq-card-img {
    max-height: 240px;
    margin-bottom: 25px;
}



/* Footer Link */
.porque-more {
    text-align: center;
    margin-top: 50px;
}

.btn-more {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: var(--verde-fuerte);
    text-decoration: none;
    border-bottom: 1px solid var(--verde-fuerte);
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.btn-more:hover {
    opacity: 0.7;
}

/* ===================================
   MAS SOBRE NOSOTROS SECTION
   =================================== */

.mas-nosotros {
    padding: 60px 0;
    background-color: var(--blanco);
    text-align: center;
}

.mas-nosotros-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.mas-nosotros-text {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--gris);
    margin-top: 25px;
    line-height: 1.6;
}

/* ===================================
   INFO CONTACTO SECTION
   =================================== */

.info-contacto {
    padding: 80px 0;
    background-color: var(--blanco);
}

.info-contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.info-contacto-intro {
    font-family: var(--font-main);
    font-size: 22px;
    color: var(--verde-fuerte);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.6;
}

.info-contacto-intro strong {
    font-weight: 700;
}

.info-contacto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.info-contacto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-contacto-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--verde-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.info-contacto-icon:hover {
    background-color: var(--verde-fuerte);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.info-contacto-icon i {
    font-size: 24px;
    color: var(--negro);
    transition: color 0.3s ease;
}

.info-contacto-icon:hover i {
    color: var(--verde-aqua);
}

.info-contacto-title {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    color: var(--verde-fuerte);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.info-contacto-value {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--verde-fuerte);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-contacto-value:hover {
    color: var(--verde-fuerte);
}

/* Responsive */
@media (max-width: 992px) {
    .info-contacto-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 576px) {
    .info-contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-contacto-intro {
        font-size: 18px;
    }

    .info-contacto-intro br {
        display: none;
    }
}

/* ===================================
   CONTACTO INICIO SECTION
   =================================== */

.contacto-inicio {
    position: relative;
    padding: 0 0 80px 0;
    min-height: 500px;
    overflow: hidden;
}

.contacto-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contacto-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.75));
}

.contacto-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 60px;
}

.contacto-form-wrapper {
    width: 100%;
}

.contacto-form-intro {
    font-family: var(--font-main);
    font-size: 24px;
    color: var(--verde-fuerte);
    margin-bottom: 50px;
    line-height: 1.7;
    text-align: center;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.form-row {
    display: flex;
    gap: 60px;
}

.form-group {
    flex: 1;
    position: relative;
    padding-top: 20px;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 28px;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--gris-oscuro, #555);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    font-family: var(--font-main);
    font-size: 14px;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #666;
    background: transparent;
    color: var(--negro);
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select {
    cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.5L1.5 4h9L6 8.5z'/%3E%3C/svg%3E") no-repeat right center;
    padding-right: 20px;
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: var(--verde-fuerte);
}

/* Floating label effect - when focused or has content */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 12px;
    color: var(--verde-fuerte);
}

.form-group input::placeholder {
    color: transparent;
}

.form-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-submit {
    font-family: var(--font-logo);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--verde-fuerte);
    background-color: var(--beige);
    padding: 5px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-submit:hover {
    background-color: var(--verde-fuerte);
    color: var(--blanco);
}

/* ===================================
   MAIN CONTENT RESPONSIVE
   =================================== */

@media (max-width: 1200px) {
    .hero-content {
        width: 100%;
        padding: 40px 40px;
        margin-left: 5%;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-badge {
        font-size: 28px;
        padding: 12px 28px;
    }

    .repse-container,
    .plagas-container,
    .cobertura-container,
    .servicios-container,
    .porque-container,
    .contacto-container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
    }

    .hero-background img {
        object-position: right center;
    }

    .hero-content {
        width: 100%;
        max-width: 500px;
        padding: 50px 30px;
        margin-left: 4%;

    }

    .hero-title {
        font-size: 36px;
    }

    .hero-badge {
        font-size: 24px;
        padding: 10px 22px;
    }

    .hero-title {
        font-size: 24px;
    }

    .repse-container {
        flex-direction: column;
        text-align: center;
    }

    .repse-list li {
        justify-content: center;
    }

    .cobertura-container {
        flex-direction: column;
        gap: 0px;
    }

    .cobertura-left {
        max-width: 100%;
        min-height: 100px;
    }

    .cobertura-photo-1 {
        width: 150px;
        height: 150px;
        left: 40px;
    }

    .cobertura-photo-2 {
        width: 130px;
        height: 130px;
        left: 170px;
    }

    .cobertura-photo-3 {
        width: 160px;
        height: 160px;
        left: 20px;
    }

    .cobertura-photo-4 {
        width: 120px;
        height: 120px;
        bottom: 100px;
        left: 170px;
    }

    .cobertura-map-img {
        width: 160px;
        height: auto;
        left: 50%;
        transform: translateX(-50%);
        top: 200px;
    }

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

    .cobertura-sectors-list {
        align-items: center;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .porque-top-grid,
    .porque-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-form-intro {
        font-size: 16px;
    }

    .form-row {
        gap: 40px;
    }

    .cobertura::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .cobertura-container {
        position: relative;
        z-index: 2;
    }

    .cobertura-description {
        max-width: 100%;
    }

    .cobertura-title,
    .cobertura-description,
    .cobertura-subtitle,
    .cobertura-sectors-list {
        color: var(--blanco);
    }

    .cobertura-sectors-list li {
        color: var(--blanco);
    }
}

@media (max-width: 768px) {
    .hero-content {
        width: 100%;
        max-width: 400px;
        padding: 40px 25px;
        margin-left: 3%;
        background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-badge {
        font-size: 20px;
        padding: 8px 18px;
    }

    .repse-container,
    .plagas-container,
    .cobertura-container,
    .servicios-container,
    .porque-container,
    .mas-nosotros-container,
    .contacto-container {
        padding: 0 30px;
    }

    .plagas,
    .cobertura,
    .servicios,
    .porque,
    .contacto-inicio {
        padding: 0px 0px 60px 0px;
    }

    .section-title {
        font-size: 24px;
    }

    .cobertura-title {
        font-size: 26px;
    }

    .cobertura-left {
        min-height: 250px;
    }

    .cobertura-photo-1 {
        width: 120px;
        height: 120px;
        top: 10px;
        left: 30px;
    }

    .cobertura-photo-2 {
        width: 110px;
        height: 110px;
        top: 30px;
        left: 140px;
    }

    .cobertura-photo-3 {
        width: 140px;
        height: 140px;
        bottom: 30px;
        left: 10px;
    }

    .cobertura-photo-4 {
        width: 100px;
        height: 100px;
        bottom: 80px;
        left: 140px;
    }

    .cobertura-map-img {
        width: 120px;
        height: auto;
        top: 140px;
        left: 50%;
        transform: translateX(-50%);
    }

    .cobertura-arc-1,
    .cobertura-arc-2,
    .cobertura-arc-3 {
        transform: scale(0.7);
    }

    .medioambiente-title {
        font-size: 32px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .porque-top-grid,
    .porque-bottom-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .porque-title {
        font-size: 24px;
        padding-top: 40px;
    }

    .porque-logo {
        font-size: 36px;
    }

    .form-row {
        flex-direction: column;
        gap: 25px;
    }

    .contacto-form {
        gap: 25px;
    }

    .contacto-form-intro {
        font-size: 15px;
    }

    .contacto-form-intro br {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        margin-left: 0;
        background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-badge {
        font-size: 16px;
        padding: 8px 16px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-features li {
        font-size: 12px;
    }

    .hero-note {
        font-size: 11px;
    }

    .repse-container,
    .plagas-container,
    .cobertura-container,
    .servicios-container,
    .porque-container,
    .mas-nosotros-container,
    .contacto-container {
        padding: 0 20px;
    }

    .repse-title {
        font-size: 20px;
    }

    .plaga-item {
        width: 100px;
    }

    .plaga-icon {
        width: 70px;
        height: 70px;
    }

    .plaga-icon img {
        width: 70px;
        height: 70px;
    }

    .cobertura-left {
        min-height: 250px;
    }

    /* Hide photos on mobile to show only the map */
    .cobertura-photo-1,
    .cobertura-photo-2,
    .cobertura-photo-3,
    .cobertura-photo-4 {
        display: none;
    }

    .cobertura-map-img {
        width: 80%;
        max-width: 280px;
        height: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .cobertura-arc-1,
    .cobertura-arc-2,
    .cobertura-arc-3 {
        display: none;
    }

    .cobertura-sectors-list li {
        font-size: 12px;
    }

    .cobertura-sectors-list li img {
        width: 22px;
        height: 22px;
    }

    .medioambiente {
        min-height: 300px;
    }

    .medioambiente-content {
        padding: 40px 20px;
    }

    .medioambiente-title {
        font-size: 26px;
    }
}


/* ===================================
   NOSOTROS
   =================================== */
.nosotros-badge {
    display: inline-block;
    transform: none;
    font-family: var(--font-main);
    background-color: var(--verde-aqua);
    font-size: 18px;
    font-weight: 300;
    color: var(--verde-fuerte);
    letter-spacing: 0px;
    padding: 10px 24px 10px 16px;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.about-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 300;
    color: var(--verde-fuerte);
    letter-spacing: 0px;
    line-height: 1.6;
}

.nosotros-link {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    color: var(--verde-fuerte);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.nosotros-link:hover {
    color: var(--verde-aqua);
}

.quienes-somos-section {
    overflow-x: hidden;
}

/* ===================================
   MISION Y VISION SECTION
   =================================== */

.mision-vision-section {
    background-color: var(--verde-fuerte);
    overflow: hidden;
}

.mision-vision-col {
    padding: 55px 65px;
}

.mision-vision-content {
    max-width: 500px;
}

.mision-vision-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background-color: var(--blanco);
    color: var(--verde-fuerte);
}

.mision-vision-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--verde-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mision-vision-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mision-vision-title {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 400;
    color: var(--verde-fuerte);
    letter-spacing: 2px;
    margin: 0;
}

.mision-vision-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    color: var(--blanco);
    line-height: 1.7;
    text-align: justify;
}

.mision-vision-text p {
    margin-bottom: 20px;
}

.mision-vision-text p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .mision-vision-col {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .mision-vision-col {
        padding: 40px 25px;
    }

    .mision-vision-content {
        max-width: 100%;
    }
}

/* ===================================
   SERVICIO SECTION (NOSOTROS)
   =================================== */

.servicio-section {
    overflow: hidden;
}

.servicio-top-bar {
    height: 12px;
    background-color: var(--verde-fuerte);
}

.servicio-content {
    background-image: url('../img/nosotros/back_losvalores.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 0 100px 0;
}

/*.servicio-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.80));
    z-index: 0;
}*/

.servicio-content .container {
    position: relative;
    z-index: 1;
}

.servicio-title {
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 300;
    color: var(--verde-fuerte);
    text-align: center;
    margin-bottom: 40px;
}

.servicio-icon-wrapper {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-icon-wrapper:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.servicio-icon-wrapper img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.servicio-label {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    color: var(--verde-fuerte);
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
}

.servicio-description {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 300;
    color: var(--verde-fuerte);
    text-align: center;
    max-width: 650px;
    margin: 100px auto;
}

.servicio-bottom-bar {
    height: 50px;
    background-color: #2a2a2a;
}

.valores-section-background {
    background-image: url('../img/nosotros/back_val.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0px 70px;
}

/* Responsive */
@media (max-width: 768px) {
    .servicio-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .servicio-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .servicio-icon-wrapper img {
        width: 70px;
        height: auto;
    }

    .servicio-label {
        font-size: 11px;
    }

    .servicio-description {
        font-size: 13px;
        margin-top: 25px;
        margin-bottom: 35px;
    }

    .valores-section-background {
        padding: 0px 40px;
    }
}

/* ===================================
   VALORES SECTION (NOSOTROS)
   =================================== */

.valores-section {
    background-color: var(--beige);
    padding: 50px 0;
    position: relative;
    top: -10vw;
}

.valores-title {
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 200;
    color: var(--verde-fuerte);
    text-align: center;
    margin-bottom: 50px;
}

.valor-nombre {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 12px;
}

.valor-descripcion {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    color: var(--gris);
    line-height: 1.6;
    margin: 0;
    padding: 0 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .valores-section {
        padding: 50px 0;
    }

    .valores-title {
        font-size: 18px;
        margin-bottom: 35px;
    }

    .valor-nombre {
        font-size: 15px;
    }

    .valor-descripcion {
        font-size: 13px;
    }
}

/* ===================================
   FOTOS TRABAJO SECTION (GALERIA)
   =================================== */

.fotos-trabajo-section {
    background-color: var(--verde-aqua);
    padding: 60px 0 80px 0;
}

.fotos-trabajo-title {
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 300;
    color: var(--verde-fuerte);
    text-align: center;
    margin-bottom: 50px;
}

.galeria-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 4/3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

/* ===================================
   LIGHTBOX STYLES
   =================================== */

.galeria-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.galeria-lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--blanco);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--verde-aqua);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: var(--blanco);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--verde-aqua);
    color: var(--verde-fuerte);
}

.lightbox-counter {
    margin-top: 20px;
    color: var(--blanco);
    font-family: var(--font-main);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .fotos-trabajo-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 24px;
    }

    .lightbox-close {
        font-size: 32px;
        top: 15px;
        right: 20px;
    }
}

/* ===================================
   CERTIFICACIONES PAGE
   =================================== */

/* Hero Section */
.certificaciones-hero {
    position: relative;
    overflow: hidden;
}

.certificaciones-hero>img {
    width: 100%;
    height: auto;
    display: block;
}

.certificaciones-hero>img {
    width: 100%;
    height: 350px;
    display: block;
}

.certificaciones-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(135deg, rgba(22, 97, 56, 0.90), rgba(0, 0, 0, 0.6));*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificaciones-badge {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 400;
    color: var(--blanco);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
}

.certificaciones-title {
    font-family: var(--font-main);
    font-size: 50px;
    font-weight: 700;
    color: var(--blanco);
    letter-spacing: 5px;
    margin-bottom: 25px;
}

.certificaciones-subtitle {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 300;
    color: var(--blanco);
    max-width: 700px;
    margin: 0 auto 20px auto;
    line-height: 1.7;
}

.certificaciones-arrow {
    color: var(--verde-aqua);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Certificaciones Grid */
.certificaciones-grid-section {
    padding-top: 200px;

    background-color: var(--blanco);
    position: relative;
}

.certificaciones-triangle {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 25px solid var(--verde-fuerte);
}

.cert-logo-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-logo-wrapper img {
    width: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.cert-logo-wrapper .cert-img-normal {
    opacity: 1;
}

.cert-logo-wrapper .cert-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.cert-logo-wrapper:hover .cert-img-normal {
    opacity: 0;
}

.cert-logo-wrapper:hover .cert-img-hover {
    opacity: 1;
}

/* New style for certifications with background hover effect */
/* New style for certifications with background hover effect */
.cert-logo-wrapper-hover-bg {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0px;
    transition: all 0.4s ease;
    margin: 0 auto;
}

/* Modifier class for Cert 5 */
/* Modifier class for Cert 5 */
.cert-gray-aqua {
    background-color: #e0e0e0;
    /* Light Gray */
}

.cert-gray-aqua:hover {
    background-color: var(--verde-aqua);
}

.cert-logo-wrapper-hover-bg img {
    max-height: 120px;
    /* Smaller image inside larger box */
    max-width: 90%;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.cert-logo-wrapper-hover-bg:hover {
    background-color: var(--verde-fuerte);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* Shadow on box, not image */
}

.cert-logo-wrapper-hover-bg-alt {
    background-color: #F2F1ED;
    /* Shadow on box, not image */
}

.cert-logo-wrapper-hover-bg:hover img {
    transform: none;
}

/* REPSE Section */
.repse-section {
    background-image: url(../img/certificaciones/back_repse.png);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.repse-content {
    padding: 60px 80px;
}

.repse-title {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 25px;
}

.repse-description {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    color: var(--blanco);
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 20px;
}

.repse-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.repse-list li {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 400;
    color: var(--blanco);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.repse-list li i {
    color: var(--blanco);
    font-size: 16px;
    border-bottom: 2px solid var(--blanco);
}

.repse-logo-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    min-height: 100%;
}

.repse-logo-wrapper {
    text-align: center;
}

.repse-logo-wrapper img {
    max-width: 100%;
    margin-bottom: 15px;
}

.repse-logo-text {
    font-family: var(--font-secondary);
    font-size: 11px;
    color: var(--gris);
    display: block;
    max-width: 200px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Compromiso Ambiental Section */
.compromiso-ambiental-section {
    background-image: url('../img/certificaciones/back_compromiso_ambi.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 20px 0;
    position: relative;
}


.compromiso-ambiental-section .container {
    position: relative;
    z-index: 1;
}

.compromiso-title {
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 300;
    color: var(--verde-fuerte);
    margin-bottom: 30px;
}

.compromiso-icon {
    margin-bottom: 30px;
}

.compromiso-icon img {
    width: 60px;
    height: auto;
}

.compromiso-text {
    margin: 0 auto;
}

.compromiso-text p {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    color: var(--verde-fuerte);
    margin-bottom: 15px;
    text-align: justify;
}

/* Responsive */
@media (max-width: 992px) {
    .certificaciones-title {
        font-size: 36px;
    }

    .repse-content {
        padding: 40px 30px;
    }

    .repse-logo-col {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .certificaciones-title {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .certificaciones-subtitle {
        font-size: 14px;
        padding: 0 20px;
    }

    .certificaciones-badge {
        font-size: 12px;
    }



    .cert-logo-wrapper-hover-bg img {
        max-height: 140px;
    }

    .repse-title {
        font-size: 22px;
    }

    .compromiso-title {
        font-size: 22px;
    }
}

/* ===================================
   CONTACTO PAGE - DATOS CONTACTO
   =================================== */

.datos-contacto-section {
    padding: 60px 0 80px 0;
    background-color: var(--blanco);
}

.contacto-intro {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 300;
    color: var(--gris);
    margin-bottom: 50px;
}

.contacto-intro b {
    color: var(--verde-fuerte);
    font-weight: 600;
}

.contacto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--verde-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde-fuerte);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contacto-icon-circle:hover {
    background-color: var(--verde-fuerte);
    color: var(--verde-aqua);
}

.contacto-icon-circle svg {
    transition: stroke 0.3s ease;
}

.contacto-label {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    color: var(--verde-fuerte);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contacto-info {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    color: var(--verde-fuerte);
    text-decoration: none;
    line-height: 1.5;
}

a.contacto-info:hover {
    color: var(--verde-aqua);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .contacto-intro {
        font-size: 16px;
        padding: 0 15px;
    }

    .contacto-icon-circle {
        width: 60px;
        height: 60px;
    }

    .contacto-icon-circle svg {
        width: 24px;
        height: 24px;
    }
}

/* ===================================
   REDES SOCIALES SECTION
   =================================== */

.redes-sociales-section {
    background-color: var(--verde-fuerte);
    padding: 40px 0;
}

.redes-sociales-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.red-social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--verde-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde-fuerte);
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.red-social-btn:hover {
    background-color: var(--verde-fuerte);
    color: var(--verde-aqua);
    border: 2px solid var(--verde-aqua);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .red-social-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .redes-sociales-wrapper {
        gap: 20px;
    }
}

/* ===================================
   RESIDENCIAL PAGE STYLES
   =================================== */

/* HERO RESIDENCIAL */
.hero-residencial {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
}



.hero-residencial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--verde-fuerte);
    clip-path: polygon(0 0, 85% 0, 70% 100%, 0 100%);
}

.hero-residencial-content {
    position: relative;
    z-index: 2;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-residencial-title {
    font-family: var(--font-logo);
    font-size: 42px;
    font-weight: 700;
    color: var(--blanco);
    line-height: 1.2;
    max-width: 400px;
}

/* INTRO RESIDENCIAL */
.intro-residencial {
    background-image: url('../img/servicio_residencial/back_control_plagasresidencial.png');
    padding: 80px 0;
}


.intro-circle {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--verde-fuerte);
}

.intro-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-circle-1 {
    width: 200px;
    height: 200px;
    top: 0;
    left: 50px;
}

.intro-circle-2 {
    width: 180px;
    height: 180px;
    bottom: 0;
    left: 120px;
}

.intro-text-wrapper {
    padding-left: 30px;
}

.intro-title {
    font-family: var(--font-logo);
    font-size: 22px;
    font-weight: 400;
    color: var(--verde);
    margin-bottom: 20px;
    line-height: 1.4;
}

.intro-subtitle {
    font-family: var(--font-secondary);
    font-size: 18px;
    color: var(--verde);
    margin-bottom: 20px;
}


.intro-description {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--verde);
    line-height: 1.7;
    text-align: justify;
}

/* COMPROMISO SEGURIDAD */
.compromiso-seguridad {
    background-color: var(--verde-fuerte);
    padding: 30px 0;
}

.compromiso-title {
    font-family: var(--font-logo);
    font-size: 28px;
    font-weight: 400;
    color: var(--blanco);
    text-transform: uppercase;
    line-height: 1.3;
}


@media (max-width: 992px) {
    .compromiso-title {
        font-size: 20px;
    }
}

.compromiso-icon-residencial-services {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.compromiso-icon-residencial-services img {
    width: auto;
    height: 150px;
    z-index: 2;
}

.compromiso-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--blanco);
    margin: 0;
    font-weight: 300;
    line-height: 1.3;
}

/* POR QUE RESIDENCIAL */
.porque-residencial {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-image: url('../img/servicio_residencial/back_porqelegir.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.porque-residencial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
}

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

.porque-residencial-title {
    font-family: var(--font-secondary);
    font-size: 32px;
    font-weight: 300;
    color: var(--verde-fuerte);
    text-align: center;
    margin-bottom: 50px;
}

.porque-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.porque-icon-circle {
    border-radius: 50%;
    background-color: var(--verde-fuerte);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.porque-icon-circle:hover {
    background-color: var(--verde-aqua);
    transform: scale(1.1);
}

.porque-icon-circle img {
    width: 100px;
    height: auto;
}

.porque-label {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    color: var(--verde-fuerte);
    text-align: center;
    text-transform: uppercase;
    max-width: 200px;
}

/* TIPOS DE PLAGAS */
.tipos-plagas {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-image: url('../img/servicio_residencial/back_tipo_plagas.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tipos-plagas-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tipos-plagas-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


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

.tipos-plagas-title {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 300;
    color: var(--blanco);
    text-align: center;
    margin-bottom: 50px;
}

.plaga-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plaga-icon-circle {
    width: 100px;
    height: auto;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--verde-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.plaga-icon-circle:hover {
    background-color: var(--verde-aqua);
    transform: scale(1.1);
}

.plaga-icon-circle img {
    width: 100px;
    height: auto;
}

.plaga-label {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 200;
    color: var(--blanco);
    text-align: center;
}

.tipos-plagas-link {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 200;
    color: var(--verde-aqua);
    text-decoration: underline;
}

.tipos-plagas-link:hover {
    color: var(--blanco);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-residencial-overlay {
        width: 100%;
        clip-path: none;
        opacity: 0.85;
    }

    .hero-residencial-title {
        font-size: 28px;
        text-align: center;
        max-width: none;
    }


    .intro-circle-1 {
        width: 150px;
        height: 150px;
        left: 20px;
    }

    .intro-circle-2 {
        width: 130px;
        height: 130px;
        left: 100px;
    }

    .intro-text-wrapper {
        padding-left: 0;
        text-align: center;
    }

    .porque-residencial-title {
        font-size: 24px;
    }

    .porque-icon-circle {
        width: 60px;
        height: 60px;
    }

    .porque-icon-circle img {
        max-width: 65px;
        max-height: 65px;
    }

    .plaga-icon-circle {
        width: 70px;
        height: 70px;
    }

    .plaga-icon-circle img {
        max-width: 70px;
        max-height: 70px;
    }
}

/* ===================================
   LOADING & ERROR STATES
   =================================== */

#main-content {
    min-height: 50vh;
    transition: opacity 0.3s ease;
    padding-top: 85px;
    /* Offset for fixed header */
}

#main-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 60px 20px;
    text-align: center;
}

.error-container h1 {
    font-family: var(--font-main);
    font-size: 32px;
    color: var(--negro);
    margin-bottom: 15px;
}

.error-container p {
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--gris);
    margin-bottom: 30px;
}

/* Active navigation state */
[data-page].active .dropdown-link-text {
    border-bottom-color: var(--verde-aqua);
}

.footer-link.active {
    color: var(--verde-aqua);
}

/* ===================================
   FOOTER STYLES
   =================================== */

.footer {
    background-color: var(--negro);
    padding: 60px 0 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 90px;
    gap: 40px;
}

/* Footer Logo */
.footer-logo {
    flex-shrink: 0;
    align-self: center;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-text {
    font-family: var(--font-logo);
    font-size: 28px;
    font-weight: 700;
    color: var(--blanco);
    letter-spacing: 2px;
}

.footer-logo-plus {
    font-family: var(--font-logo);
    font-size: 28px;
    font-weight: 700;
    color: var(--verde-aqua);
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: center;
}

.footer-services {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 400;
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.footer-link::after {
    content: ' · ▸';
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 6px;
    color: var(--blanco);
}

.footer-link:hover::after {
    opacity: 1;
}

.footer-link-text {
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
    color: var(--blanco);
}

.footer-link:hover,
.footer-link:hover .footer-link-text {
    color: var(--blanco);
    border-bottom-color: var(--blanco);
}

/* Footer Contact Icons */
.footer-contact {
    display: flex;
    gap: 15px;
}

.footer-icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--verde-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-icon-btn:hover {
    background-color: var(--verde-fuerte);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.footer-icon-btn i {
    font-size: 20px;
    color: var(--negro);
    transition: color 0.3s ease;
}

.footer-icon-btn:hover i {
    color: var(--verde-aqua);
}

/* ===================================
   INDUSTRIA PAGE STYLES
   =================================== */

.control-industria-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    /* Ajustar color de texto por si el fondo es claro */
    color: var(--verde-fuerte);
}

/* Typography */
.industria-title {
    font-family: var(--font-logo);
    /* Asumiendo que es la misma fuente sans-serif bold */
    font-size: 24px;
    font-weight: 700;
    color: var(--verde-fuerte);
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.industria-subtitle {
    font-family: var(--font-secondary);
    /* Fuente serif o light */
    font-size: 28px;
    font-weight: 300;
    color: var(--verde-fuerte);
    /* Parece un verde un poco mas claro o el mismo */
    margin-bottom: 30px;
    line-height: 1.3;
}

.industria-description {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 300;
    color: var(--verde-fuerte);
    margin-bottom: 40px;
    line-height: 1.6;
    text-align: justify;
    max-width: 90%;
}

.industria-link {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--gris);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.industria-link:hover {
    color: var(--verde-fuerte);
}

/* Images Layout */
.industria-images-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    /* Centrar horizontalmente la imagen */
    align-items: center;
    /* Centrar verticalmente si tuviera altura, pero aquí ayuda a asegurar */
}

/* Estilos legados por si se reusan, pero desactivados visualmente para el layout actual */
.industria-circle {
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--verde-fuerte);
    background-color: var(--blanco);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.industria-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Circulo Grande (Izquierda/Abajo) */
.industria-circle-1 {
    width: 350px;
    height: 350px;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Circulo Pequeño (Derecha/Arriba) */
.industria-circle-2 {
    width: 250px;
    height: 250px;
    top: 20px;
    /* Ajustar segun diseño */
    right: 20px;
    /* Ajustar segun diseño */
    z-index: 2;
}

/* Responsive */
@media (max-width: 992px) {
    .industria-images-wrapper {
        height: 400px;
        margin-top: 50px;
    }

    .industria-circle-1 {
        width: 280px;
        height: 280px;
        left: 50%;
        transform: translateX(-60%);
    }

    .industria-circle-2 {
        width: 200px;
        height: 200px;
        right: 50%;
        transform: translateX(60%);
    }
}

@media (max-width: 768px) {
    .control-industria-section {
        padding: 60px 0;
    }

    .industria-title {
        font-size: 20px;
        text-align: center;
    }

    .industria-subtitle {
        font-size: 22px;
        text-align: center;
    }

    .industria-description {
        text-align: justify;
        max-width: 100%;
    }

    .industria-link {
        display: block;
        text-align: center;
    }

    .industria-images-wrapper {
        height: 350px;
    }

    .industria-circle-1 {
        width: 220px;
        height: 220px;
        left: 0;
        transform: none;
    }

    .industria-circle-2 {
        width: 160px;
        height: 160px;
        right: 0;
        transform: none;
    }
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .footer-nav,
    .footer-services {
        align-items: center;
    }

    .footer-link::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-contact {
        justify-content: center;
    }
}

/* ===================================
   RAZONES INDUSTRIAL SECTION
   =================================== */

.razones-industrial-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.razones-industrial-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.razones-industrial-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



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

/* Título central */
.razones-title {
    font-family: var(--font-secondary);
    font-size: 42px;
    font-weight: 400;
    color: var(--blanco);
    line-height: 1.3;
}

/* Items numerados */
.razon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.razon-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--verde-aqua);
    color: var(--verde-fuerte);
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.razon-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    color: var(--blanco);
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .razones-industrial-section {
        padding: 50px 0;
    }

    .razones-title {
        font-size: 28px;
    }

    .razon-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .razon-text {
        font-size: 13px;
    }

    .razon-item {
        margin-bottom: 30px;
    }
}

/* ===================================
   SECTORES INDUSTRIALES SECTION
   =================================== */

.sectores-industrial-section {
    background-color: var(--verde-fuerte);
    padding: 50px 0;
}

.sectores-title {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 200;
    color: var(--blanco);
    text-align: center;
}

.sector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px;
}

.sector-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Cuadrado perfecto */
    background-color: var(--beige);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 20px;
    gap: 15px;
}

.sector-icon img {
    width: 65px;
    /* Un poco más grandes para llenar mejor */
    height: auto;
    object-fit: contain;
    margin-bottom: 0;
    /* Ya usamos gap en el padre */
}

.sector-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    color: var(--verde-fuerte);
    line-height: 1.4;
    margin: 0;
    width: 100%;
    /* Asegurar que el texto ocupe el ancho disponible si es necesario */
}

/* Responsive */
@media (max-width: 768px) {
    .sectores-industrial-section {
        padding: 50px 0;
    }

    .sectores-title {
        font-size: 24px;
        margin-bottom: 40px;
    }


    .sector-text {
        font-size: 12px;
    }
}

/* ===================================
   COBERTURA NACIONAL SECTION
   =================================== */

.cobertura-nacional-section {
    background-color: transparent;
    /* Remove global background */
    position: relative;
    box-shadow: none;
}

.cobertura-banner {
    display: flex;
    align-items: stretch;
    /* Match height */
    position: relative;
    min-height: 140px;
    border-radius: 50px;
    /* Optional rounded ends */
    overflow: visible;
    /* Allow center circle to protrude */
}

.cobertura-side {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 30px 40px;
}

.left-side {
    background-color: var(--verde-aqua);
    justify-content: flex-end;
    padding-right: 100px;
    /* Space for center circle */
}

.right-side {
    background-color: #333333;
    /* Dark Grey */
    justify-content: flex-start;
    padding-left: 90px;
    /* Space for center circle */
}

.cobertura-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background-color: var(--verde-aqua);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cobertura-center-circle img {
    width: 60%;
    height: auto;
    object-fit: contain;
}

/*.cobertura-title {
    font-family: var(--font-logo);
    font-size: 32px;
    font-weight: 700;
    color: var(--verde-fuerte);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}*/

.cobertura-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    color: var(--blanco);
    line-height: 1.4;
    margin: 0;
    text-align: left;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 900px) {
    .cobertura-banner {
        flex-direction: column;
        border-radius: 20px;
        overflow: hidden;
        /* Clip for cleaner mobile look? or stick with protruding */
        overflow: visible;
        height: auto;
    }

    .cobertura-side {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 60px 20px;
    }

    .left-side {
        padding-right: 20px;
        padding-bottom: 80px;
        /* Space for circle */
    }

    .right-side {
        padding-left: 20px;
        padding-top: 80px;
        /* Space for circle */
    }

    .cobertura-title {
        text-align: center;
        font-size: 26px;
        color: var(--blanco);
    }

    .cobertura-text {
        text-align: center;
        margin-top: 65px;
    }

    /* Keep circle in between */
    .cobertura-center-circle {
        top: 50%;
        /* Position relative to the full column stack */
        /* Since flex items stack, 50% is the seam */
    }
}

/* ===================================
   ENFOQUE & SEGURIDAD SECTION
   =================================== */

.enfoque-section {
    width: 100%;
}

.enfoque-col {
    padding: 30px 10%;
    /* Responsive padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

.enfoque-bg-left {
    background-color: var(--beige);
}

.enfoque-bg-right {
    background-color: #fff;
}

.enfoque-content {
    max-width: 500px;
}

.enfoque-title {
    font-family: var(--font-logo);
    /* Using primary font for consistency */
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.enfoque-text {
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    text-align: justify !important;
}

/* Specific Text Colors */
.text-green {
    color: var(--verde-fuerte);
}

.text-grey {
    color: #666;
    /* Adjust based on global vars if available, else literal grey */
}

.text-dark-grey {
    color: #444;
    /* Darker title for right side */
}

.text-green-light {
    color: var(--verde-fuerte);
    /* Using same green for text on right as per common style, or adjust if screenshot implies lighter */
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .enfoque-col {
        padding: 50px 20px;
    }


}

/* ===================================
   BENEFICIOS CLAVE SECTION (COMERCIAL)
   =================================== */

.beneficios-section {
    position: relative;
    padding: 80px 0;
    background-image: url('../img/servicio_comercial/back_comercial.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.beneficios-section .container {
    position: relative;
    z-index: 2;
    /* Content above overlay */
}

.beneficios-title {
    font-family: var(--font-secondary);
    font-size: 36px;
    font-weight: 400;
    color: var(--verde-fuerte);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}

.beneficio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.beneficio-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--verde-fuerte);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.beneficio-icon i {
    color: var(--blanco);
    font-size: 20px;
}

.beneficio-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    color: var(--verde-fuerte);
    text-align: center;
    margin: 0;
    line-height: 1.4;
    max-width: 300px;
    /* Limit line width for readability */
}


.espacios-comerciales-title {
    font-family: var(--font-secondary);
    font-weight: 200;
    font-size: 24px;
    color: white;
}

.comercial-item {
    width: 75px;
}

.commercial-text {
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 100;
    font-family: var(--font-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .beneficios-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .beneficio-item {
        margin-bottom: 40px;
    }
}

/* ===================================
   PLAGAS PAGE STYLES
   =================================== */

.plagas-card {
    height: 100%;
    border: none;
    border-radius: 0;
    padding: 40px;
    text-align: left;
    transition: transform 0.3s ease;
}

.plagas-card-green {
    background-color: var(--verde-fuerte);
    color: var(--blanco);
}

.plagas-card-beige {
    background-color: #EAEAE4;
    color: var(--verde-fuerte);
}

.plagas-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    background-color: var(--blanco);
}

.plagas-card-green .plagas-icon-circle {
    background-color: var(--blanco);
    border: 2px solid var(--verde-aqua);
}

.plagas-card-beige .plagas-icon-circle {
    background-color: var(--verde-fuerte);
}

.image-item-plagas {
    width: 70px;
}

.plagas-card-title {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.plagas-card-subtitle {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 200;
    margin-bottom: 20px;
    text-align: justify;
    display: block;
    min-height: 40px;
}

.plagas-list-title {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 10px;
    display: block;
}

.plagas-list {
    padding: 0;
    margin: 0 0 20px 20px;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
}

/*.plagas-list li::before {
    content: "�";
    margin-right: 5px;
    font-weight: bold;
}*/

.servicios-documentados-controlados-section {
    background-color: transparent;
    /* Remove global background */
    position: relative;
    box-shadow: none;
}

.servicios-documentados-controlados-banner {
    display: flex;
    align-items: stretch;
    /* Match height */
    position: relative;
    min-height: 140px;
    border-radius: 50px;
    /* Optional rounded ends */
    overflow: visible;
    /* Allow center circle to protrude */
}

.servicios-documentados-controlados-side {
    flex: 1;
    display: flex;
    align-items: center;
}

.servicios-documentados-controlados-left-side {
    background-color: var(--verde-fuerte);
    justify-content: flex-end;
    padding-right: 140px;
    /* Space for center circle */
}

.servicios-documentados-controlados-right-side {
    background-color: #333333;
    /* Dark Grey */
    justify-content: flex-start;
    padding-left: 90px;
    /* Space for center circle */
}

.servicios-documentados-controlados-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background-color: var(--verde-fuerte);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.servicios-documentados-controlados-center-circle img {
    width: 40%;
    height: auto;
    object-fit: contain;
}

.servicios-documentados-controlados-title {
    font-family: var(--font-logo);
    font-size: 24px;
    font-weight: 700;
    color: var(--blanco);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.servicios-documentados-controlados-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    color: var(--blanco);
    line-height: 1.4;
    margin: 0;
    text-align: left;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 900px) {
    .servicios-documentados-controlados-banner {
        flex-direction: column;
        border-radius: 20px;
        overflow: hidden;
        /* Clip for cleaner mobile look? or stick with protruding */
        overflow: visible;
        height: auto;
    }

    .servicios-documentados-controlados-side {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 60px 20px;
    }

    .servicios-documentados-controlados-left-side {
        padding-right: 20px;
        padding-bottom: 80px;
        /* Space for circle */
    }

    .servicios-documentados-controlados-right-side {
        padding-left: 20px;
        padding-top: 80px;
        /* Space for circle */
    }

    .servicios-documentados-controlados-title {
        text-align: center;
        font-size: 26px;
    }

    .servicios-documentados-controlados-text {
        text-align: center;
        margin-top: 65px;
    }

    /* Keep circle in between */
    .servicios-documentados-controlados-center-circle {
        top: 50%;
        /* Position relative to the full column stack */
        /* Since flex items stack, 50% is the seam */
    }
}


@media (max-width: 768px) {
    .plagas-card {
        margin-bottom: 20px;
    }
}

/* ===================================
   PERIMETER PAGE STYLES
   =================================== */

.perimetral-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-image: url('../img/servicio_control/back_control_perimetral.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.perimetral-title {
    font-family: var(--font-logo);
    font-size: 22px;
    font-weight: 400;
    color: var(--verde-fuerte);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.perimetral-subtitle {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 300;
    color: var(--verde-fuerte);
    text-align: center;
    margin-bottom: 40px;
    text-underline-offset: 5px;
}

.perimetral-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 300;
    color: var(--verde-fuerte);
    /* Dark grey for readability on white/light overlay */
    text-align: justify;
    max-width: 900px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.perimetral-question {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    color: var(--verde-fuerte);
    margin: 0 auto 20px auto;
    /* Changed to center based on layout flow */
    margin: 40px 0 50px 0;
}

.perimetral-number-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--verde-aqua);
    color: var(--verde-fuerte);
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.perimetral-benefit-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    color: var(--verde-fuerte);
    text-align: center;
    line-height: 1.4;
    padding: 0 10px;
}

/* PERIMETER SERVICES LIST */
.perimetral-services-section {
    background-color: #3C3C3B;
    /* Dark Grey matching screenshot */
    padding: 80px 0;
}

.perimetral-services-title {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 300;
    color: #CCCCCC;
    /* Light grey title */
    text-align: center;
    margin-bottom: 50px;
}

.perimetral-service-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.perimetral-plus-icon {
    color: var(--verde-aqua);
    font-size: 24px;
    /* Adjust size of the plus */
    font-weight: 900;
    /* Bold for Font Awesome */
    margin-right: 20px;
    flex-shrink: 0;
}

.perimetral-service-box {
    background-color: #F2F1ED;
    /* Beige/White background */
    width: 100%;
    padding: 7px 18px;
    /* No border radius visible in screenshot, looks like sharp rectangles */
}

.perimetral-service-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    color: var(--verde);
    margin: 0;
    text-align: left;
}

/* ===================================
   DOCUMENTED SERVICES PAGE STYLES
   =================================== */

.documentados-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-image: url('../img/servicio_documentados/back_docume.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.documentados-title {
    font-family: var(--font-logo);
    font-size: 28px;
    font-weight: 500;
    color: var(--verde-fuerte);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
}

.documentados-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 300;
    color: var(--verde-fuerte);
    text-align: justify;
    max-width: 900px;
    line-height: 1.6;
}

.documentados-subtitle {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    color: var(--verde-fuerte);
    text-align: start;
}

.documentados-number-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--verde-aqua);
    color: var(--verde-fuerte);
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.documentados-benefit-title {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 700;
    color: var(--verde-fuerte);
    text-align: center;
    margin-bottom: 10px;
    display: block;
}

.documentados-benefit-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    color: var(--verde-fuerte);
    text-align: center;
    padding: 0 10px;
}

/* DOCUMENTED SERVICES LIST SECTION */
.documentados-list-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-image: linear-gradient(rgba(51, 51, 51, 0.9), rgba(51, 51, 51, 0.9)), url('../img/servicio_documentados/back_servicios_doc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.documentados-list-title {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 300;
    /* Thin font */
    color: #CCCCCC;
    /* Light grey text */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.5;
}

/* Reusing similar structure to perimetral-service-row but specific classes to avoid conflicts if changes needed later */
.documentados-list-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.documentados-plus-icon {
    color: var(--verde-aqua);
    font-size: 24px;
    font-weight: 900;
    margin-right: 20px;
    flex-shrink: 0;
}

.documentados-list-box {
    background-color: #F2F1ED;
    width: 100%;
    padding: 6px 10px;
}

.documentados-list-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 300;
    /* Slightly bolder key text */
    color: var(--verde-fuerte);
    margin: 0;
    text-align: left;
}


/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebd57;
    color: #FFF;
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 2px;
}


/* ===================================
   SCROLL ANIMATIONS
   =================================== */

/* Base state for hidden elements */
.anim-hidden {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Modifier: Fade Up (Default) */
.anim-fade-up {
    transform: translateY(30px);
}

/* Modifier: Fade Left */
.anim-fade-left {
    transform: translateX(30px);
}

/* Modifier: Fade Right */
.anim-fade-right {
    transform: translateX(-30px);
}

/* Modifier: Zoom In */
.anim-zoom-in {
    transform: scale(0.95);
}

/* Visible State */
.anim-visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Stagger delays (helper classes if needed, or inline styles) */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* ===================================
   SERVICIOS DOCUMENTADOS CONTROLADOS SECTION
   =================================== */

.servicios-documentados-controlados-section {
    background-color: transparent;
    position: relative;
    box-shadow: none;
    padding: 0;
}

.servicios-documentados-controlados-banner {
    display: flex;
    align-items: stretch;
    position: relative;
    min-height: 140px;
    border-radius: 50px;
    overflow: visible;
}

.servicios-documentados-controlados-side {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 30px 10vw;
}

.servicios-documentados-controlados-left-side {
    background-color: var(--verde-fuerte);
    justify-content: flex-end;
    padding-right: 140px;
    /* Space for center circle */
}

.servicios-documentados-controlados-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background-color: var(--verde-fuerte);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.servicios-documentados-controlados-center-circle img {
    width: 60%;
    height: auto;
    object-fit: contain;
}

.servicios-documentados-controlados-title {
    font-family: var(--font-logo);
    font-size: 26px;
    font-weight: 700;
    color: var(--blanco);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    text-align: right;
}

.servicios-documentados-controlados-text {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 300;
    color: var(--blanco);
    line-height: 1.4;
    margin: 0;
    text-align: left;
    max-width: 400px;
}

/* Responsive for Servicios Documentados */
@media (max-width: 900px) {
    .servicios-documentados-controlados-banner {
        flex-direction: column;
        border-radius: 20px;
        overflow: visible;
        height: auto;
    }

    .servicios-documentados-controlados-side {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 60px 20px;
    }

    .servicios-documentados-controlados-left-side {
        padding-right: 20px;
        padding-bottom: 80px;
        justify-content: center;
    }

    .servicios-documentados-controlados-title {
        text-align: center;
    }

    .servicios-documentados-controlados-text {
        text-align: center;
        margin-top: 65px;
    }
}

/* ===================================
   ANIMATION OVERRIDES FOR CENTERED ELEMENTS
   =================================== */

/* Fix for Cobertura Center Circle inside absolute positioning */
.cobertura-center-circle.anim-zoom-in {
    transform: translate(-50%, -50%) scale(0.95);
}

.cobertura-center-circle.anim-visible {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* Fix for Servicios Documentados Center Circle if animated in future */
.servicios-documentados-controlados-center-circle.anim-zoom-in {
    transform: translate(-50%, -50%) scale(0.95);
}

.servicios-documentados-controlados-center-circle.anim-visible {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* ===================================
   COMPROMISO SEGURIDAD SECTION (RESIDENCIAL)
   =================================== */

.compromiso-seguridad {
    position: relative;
    padding: 30px 0;
    /* Reduced from 80px to 30px as requested */
    overflow: visible;
}

.compromiso-icon-residencial-services {
    position: relative;
    z-index: 100;
    display: flex;
    /* Changed to flex for better centering */
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Make the image pop out */
.compromiso-icon-residencial-services img {
    transform: scale(1.35);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Override animations for this specific element to maintain scale */
.compromiso-icon-residencial-services.anim-zoom-in {
    transform: scale(0.8);
    opacity: 0;
}

.compromiso-icon-residencial-services.anim-visible {
    transform: scale(1) !important;
    opacity: 1 !important;
}

/* ===================================
   AUDITORIAS SECTION
   =================================== */

.auditorias-section {
    background-color: #F7F7F7;
    /* Light background */
    padding: 60px 0;
}

.auditorias-content {
    padding-right: 40px;
}

.auditorias-title {
    font-family: var(--font-secondary);
    color: var(--verde-fuerte);
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.auditorias-text {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 300;
    color: var(--verde-fuerte);
    line-height: 1.6;
    margin-bottom: 30px;
}

.auditorias-subtitle {
    font-family: var(--font-main);
    color: var(--verde-fuerte);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.auditorias-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.auditorias-list li {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    color: var(--verde-fuerte);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.auditorias-list li i {
    color: var(--verde-fuerte);
    font-size: 20px;
    margin-right: 12px;
}

.auditorias-img {
    max-width: 100%;
    height: auto;
    /* Optional: filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1)); */
}

@media (max-width: 991px) {
    .auditorias-section {
        padding: 50px 0;
    }

    .auditorias-content {
        padding-right: 15px;
        text-align: center;
    }

    .auditorias-list li {
        justify-content: center;
    }

    .auditorias-title {
        font-size: 22px;
    }
}