/* Estilos personalizados para MGP */
:root {
    --mgp-green-primary: #1e4620;
    --mgp-green-dark: #0f2d11;
    --mgp-green-light: #f1f8f3;
    --mgp-green-accent: #2e7d32;
    --mgp-text-dark: #212529;
    --mgp-text-muted: #6c757d;
    --mgp-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --mgp-shadow-hover: 0 15px 35px rgba(30, 70, 32, 0.12);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--mgp-text-dark);
    background-color: #fcfdfe;
    overflow-x: hidden;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Header & Navbar styling */
.navbar-brand img {
    object-fit: contain;
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--mgp-green-accent);
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Micro-animations and Hover states */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.2);
}

.btn-mgp-access {
    background-color: var(--mgp-green-dark);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 4px; /* Matches the slightly rounded rectangular shape of the mockup */
    padding: 0.6rem 1.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-mgp-access:hover {
    background-color: var(--mgp-green-accent);
    transform: translateY(-1px);
}


/* Card Interactivity */
.card-interactive {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow;
}

.card-interactive:hover {
    transform: translateY(-5px);
    box-shadow: var(--mgp-shadow-hover) !important;
    border-color: rgba(46, 125, 50, 0.2) !important;
}

.card-icon-wrapper {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.card-interactive:hover .card-icon-wrapper {
    background-color: var(--mgp-green-light) !important;
    transform: scale(1.08);
}

/* Help Section Card Styles */
.help-card-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-interactive:hover .help-card-icon {
    transform: scale(1.08);
}

.help-card-divider {
    width: 35px;
    height: 1.5px;
    background-color: #a3c2a6; /* soft sage green */
    margin: 12px auto;
}

.help-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--mgp-green-dark);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}


/* Hero elements */
.hero-section {
    background-image: url('../img/hero.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    min-height: 580px;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-section {
        background-image: none !important;
        min-height: auto;
        display: block;
    }
}

.drop-shadow {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
}

/* Custom list bullet icons */
ul.list-unstyled li i {
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Target Audience Section (¿Para quién es MGP?) */
.target-audience-container {
    gap: 0;
}

.target-audience-item {
    flex: 1 1 0px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0.5rem;
    transition: transform 0.2s ease;
}

.target-audience-item:hover {
    transform: translateY(-3px);
}

.target-icon {
    color: var(--mgp-green-primary);
    font-size: 2rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    stroke: var(--mgp-green-primary);
}

.target-icon svg {
    width: 100%;
    height: 100%;
}

.target-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.target-audience-item:hover .target-icon-img {
    transform: scale(1.1);
}

.hero-check-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.target-audience-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mgp-text-dark);
    line-height: 1.3;
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .target-audience-item:not(:last-child) {
        border-right: 1px solid #b2cbb5; /* thin green-tinted vertical line */
    }
}

@media (max-width: 767.98px) {
    .target-audience-item {
        flex: 1 0 45%;
        border-bottom: 1px solid #e9ecef;
    }
    .target-audience-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* Nosotros Page Custom Styles */
@media (min-width: 992px) {
    .border-lg-end {
        border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
}

@media (min-width: 768px) {
    .border-md-end {
        border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
}

/* Custom separator line on small layout (between columns 1 and 2, 3 and 4) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .border-sm-end-odd:nth-child(odd) {
        border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
}

.building-drawing-bg {
    background-image: url('../img/hero.png');
    background-size: 650px;
    background-position: 15% center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.shield-crop-wrapper {
    width: 70px;
    height: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-crop-img {
    height: 70px;
    width: auto;
    object-fit: cover;
    object-position: -2px center;
    max-width: none;
}

.nosotros-hero-section {
    background-image: url('../img/nosotros.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    min-height: 580px;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .nosotros-hero-section {
        background-image: none !important;
        min-height: auto;
        display: block;
    }
}

/* Servicios Page Custom Styles */
.servicios-hero-section {
    background-image: url('../img/servicios.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    min-height: 580px;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .servicios-hero-section {
        background-image: none !important;
        min-height: auto;
        display: block;
    }
}

.service-card-number {
    background-color: #f0f6f1;
    color: var(--mgp-green-accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
}

.service-card-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #e9f2eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.card-interactive:hover .service-card-icon-circle {
    background-color: #dbebe0 !important;
    transform: scale(1.08);
}

.service-card-footer-badge {
    background-color: #f0f6f1;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.76rem;
    color: var(--mgp-green-primary);
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.service-card-footer-badge img,
.service-card-footer-badge i {
    flex-shrink: 0;
}

/* Contacto Page Custom Styles */
.contacto-hero-section {
    background-image: url('../img/contacto.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .contacto-hero-section {
        background-image: none !important;
        min-height: auto;
        display: block;
    }
}

.contact-icon-circle {
    width: 54px;
    height: 54px;
    background-color: var(--mgp-green-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-info-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 70, 32, 0.08) !important;
}

.contact-info-card:hover .contact-icon-circle {
    background-color: var(--mgp-green-accent);
    transform: scale(1.05);
}

.contact-input-group {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

.contact-input-group:focus-within {
    border-color: var(--mgp-green-accent) !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.contact-input-group .input-group-text {
    background-color: #ffffff;
    border: none;
    color: #8c98a5;
    padding-right: 0.25rem;
    font-size: 1.05rem;
}

.contact-input-group .form-control {
    border: none;
    padding-left: 0.5rem;
    font-size: 0.88rem;
    color: var(--mgp-text-dark);
}

.contact-input-group .form-control::placeholder {
    color: #adb5bd;
}

.contact-input-group .form-control:focus {
    box-shadow: none;
    background-color: #ffffff;
}
