@font-face {
    font-family: 'icomoon';
    src: url('../res/fonts/icomoon.eot?4dkzcc');
    src: url('../res/fonts/icomoon.eot?4dkzcc#iefix') format('embedded-opentype'),
        url('../res/fonts/icomoon.ttf?4dkzcc') format('truetype'),
        url('../res/fonts/icomoon.woff?4dkzcc') format('woff'),
        url('../resfonts/icomoon.svg?4dkzcc#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

.glyph {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-servustech_add_field:before {
    content: "\e900";
}

.icon-servustech_add_fito:before {
    content: "\e901";
}

.icon-servustech_add_user:before {
    content: "\e902";
}

.icon-servustech_add_view:before {
    content: "\e903";
}

.icon-servustech_alert:before {
    content: "\e904";
}

.icon-servustech_arrow_down:before {
    content: "\e905";
}

.icon-servustech_arrow_left:before {
    content: "\e906";
}

.icon-servustech_arrow_right:before {
    content: "\e907";
}

.icon-servustech_arrow_up:before {
    content: "\e908";
}

.icon-servustech_bar_plot:before {
    content: "\e909";
}

.icon-servustech_bookmark:before {
    content: "\e90a";
}

.icon-servustech_box_view:before {
    content: "\e90b";
}

.icon-servustech_delete:before {
    content: "\e90c";
}

.icon-servustech_document:before {
    content: "\e90d";
}

.icon-servustech_download:before {
    content: "\e90e";
}

.icon-servustech_email:before {
    content: "\e90f";
}

.icon-servustech_external:before {
    content: "\e910";
}

.icon-servustech_eye:before {
    content: "\e911";
}

.icon-servustech_fav:before {
    content: "\e912";
}

.icon-servustech_field:before {
    content: "\e913";
}

.icon-servustech_fito:before {
    content: "\e914";
}

.icon-servustech_home:before {
    content: "\e915";
}

.icon-servustech_line_plot:before {
    content: "\e916";
}

.icon-servustech_list_view:before {
    content: "\e917";
}

.icon-servustech_minus:before {
    content: "\e918";
}

.icon-servustech_ok:before {
    content: "\e919";
}

.icon-servustech_plus:before {
    content: "\e91a";
}

.icon-servustech_search:before {
    content: "\e91b";
}

.icon-servustech_user:before {
    content: "\e91c";
}

.icon-servustech_user_list:before {
    content: "\e91d";
}

.icon-servustech_zoom_in:before {
    content: "\e91e";
}

.icon-servustech_zoom_out:before {
    content: "\e91f";
}

/* Phytopathogens Page Styles */
.banner-section {
    background-color: #595959;
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-bottom: 2rem;
}

.banner-heading {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.banner-subheading {
    font-size: 0.95rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
}

.pest-card {
    border: 1px solid #ececec;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    cursor: pointer;
}

.pest-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pest-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.pest-card-link:hover,
.pest-card-link:focus {
    color: inherit;
    text-decoration: none;
}

.pest-img-wrapper {
    position: relative;
    overflow: hidden;
}

.pest-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pest-img-wrapper:hover img {
    transform: scale(1.08);
}

.pest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pest-img-wrapper:hover .pest-overlay {
    opacity: 1;
    pointer-events: auto;
}

.action-btn {
    width: 38px;
    height: 38px;
    background-color: #d4ac0d;
    color: white !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    text-decoration: none;
}

.action-btn:hover {
    background-color: #bfa020;
}

.pest-title-box {
    padding: 20px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-top: 1px solid #ececec;
}

.pest-name-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #222;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

.pest-common-label {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
    text-align: center;
}

.pagination {
    border: none;
    gap: 15px;
    align-items: center;
}

.pagination .page-item .page-link {
    border: none;
    background: transparent;
    color: #bfa020;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin: 0;
    transition: all 0.2s ease;
    font-family: serif;
}

.pagination .page-item.active .page-link {
    background-color: #d4ac0d;
    color: white !important;
}

.pagination .page-item .ellipsis-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bfa020;
    font-size: 1.2rem;
}

.pagination .page-item .page-link:hover {
    background-color: transparent;
    color: #d4ac0d;
}

.pagination .page-item.active .page-link:hover {
    background-color: #bfa020;
    color: white !important;
}

.category-section-title {
    text-align: center;
    font-weight: 700;
    margin: 4rem 0 2.5rem 0;
    font-size: 1.8rem;
    color: #000;
}

.crop-card {
    position: relative;
    border: none;
    margin-bottom: 2rem;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 0;
}

.crop-card img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.crop-card:hover img {
    transform: scale(1.15);
}

.crop-card-body {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.98);
    width: 85%;
    text-align: center;
    padding: 1.2rem 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.crop-title-inner {
    font-size: 0.8rem;
    font-weight: 800;
    margin: 0;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crop-count-inner {
    font-size: 0.7rem;
    color: #777;
    margin-top: 4px;
    display: block;
}

@media (max-width: 768px) {
    .banner-heading {
        font-size: 1.3rem;
    }

    .pest-name-label {
        font-size: 0.8rem;
    }
}

/* Full-width shell: Bootstrap’s body.container-fluid adds 15px horizontal padding (visible white strips) */
body.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
}

/* Rows were paired with that padding via negative margins; without body padding, reset top-level rows */
body.container-fluid>.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/*
 * Pest product page: Bootstrap .col-* horizontal padding on header/article indents the whole view
 * (hero banner, grey band) → visible white side gutters. Inner .container in the view still limits text width.
 */
/* Header column: no overflow clipping (overflow-x:hidden on this col made the Empresa dropdown get cut off) */
body#home-pest_details #home-header > .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
    overflow: visible !important;
    box-sizing: border-box;
}

body#home-pest_details section.row > article.col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body#home-pest_details #home-header .navbar {
    padding-left: 15px;
    padding-right: 15px;
    overflow: visible !important;
}

/* Kill horizontal scrollbar on pest details (wide rows, tables, pills, etc.) */
body#home-pest_details {
    overflow-x: hidden;
}

body#home-pest_details section.row {
    max-width: 100%;
}

/* Pest details product row: do not stretch the gallery column to the height of long copy */
body#home-pest_details .pd-content > .row.pd-main-row {
    align-items: flex-start !important;
}

body#home-pest_details .pd-content > .row.pd-main-row > .col-lg-5 {
    align-self: flex-start !important;
}

body#home-pest_details .pd-left-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

body#home-pest_details .pd-meta-below-gallery {
    margin-top: 0 !important;
}

/* Editor trailing <hr> still showing as a blank strip */
body#home-pest_details .product-description-text > hr:last-child {
    display: none !important;
}

/* Plan/Currency <select>: Bootstrap .form-control defaults to white — force gold pill (also in pest_details.css) */
body#home-pest_details .pd-plan-block select.form-control.pd-plan-select {
    background-color: #d4af37 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 14px 14px !important;
    color: #000 !important;
    border: 1px solid #b8962e !important;
    border-radius: 9999px !important;
    height: 44px !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    padding-right: 52px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Dropdown menu items (options) should be white */
body#home-pest_details .pd-plan-block select.form-control.pd-plan-select option {
    background: #fff;
    color: #000;
}

body#home-pest_details .pd-plan-block select.form-control.pd-plan-select:focus {
    outline: none !important;
    border-color: #9a7b26 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(212, 175, 55, 0.45) !important;
}

/* Footer gold bar — vertical center (must live here: pages load main-styles.min.css, not main-styles.css) */
footer .final-text {
    padding: 22px 28px !important;
    display: flex !important;
    align-items: center !important;
    min-height: 76px !important;
    box-sizing: border-box !important;
}

footer .final-text .justify-text {
    margin: 0 !important;
    width: 100%;
}

footer .final-text ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

footer .final-text li {
    line-height: 1.45 !important;
}

/* Center column content when footer is a single legal column */
footer.row>.col-md-6.no-padding {
    display: flex;
    align-items: center;
}

/* Front site header polish */
#home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
    background: #ffffff;
    overflow: visible !important;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#home-header.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#home-header>.col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.container-fluid.has-sticky-header {
    padding-top: 84px !important;
}

#home-header .navbar.fc-navbar-ref {
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#home-header .fc-navbar-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#home-header .fc-brand-horizontal {
    display: inline-flex !important;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
}

#home-header .fc-navbar-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

#home-header .fc-brand-mark.main-logo {
    margin-left: 0 !important;
    margin-top: 0 !important;
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

#home-header .fc-brand-wordmark {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    line-height: 1;
    font-size: 1rem;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

#home-header .fc-brand-futur {
    font-weight: 800;
    color: #1a1a1a;
}

#home-header .fc-brand-crop {
    font-weight: 500;
    color: #6b7280;
}

@media (min-width: 992px) {
    #home-header .fc-navbar-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

#home-header #top-links.navbar-nav .nav-link {
    padding-top: 12px;
    padding-bottom: 8px;
    padding-left: 12px;
    padding-right: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    background: transparent;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    /* Align with border-bottom of header */
    transition: all 0.2s ease;
}

#home-header #top-links.navbar-nav .nav-link:hover,
#home-header #top-links.navbar-nav .nav-link:focus {
    background: transparent;
    color: #4b5563 !important;
    border-bottom-color: rgba(197, 160, 72, 0.35);
}

/* Two-line labels (Modelos predictivos, Preguntas frecuentes) */
#home-header #top-links .fc-nav-item-stack .nav-link {
    display: block;
    max-width: 6.5rem;
    text-align: center;
    line-height: 1.18;
    white-space: normal;
    hyphens: manual;
}

#home-header #top-links .fc-nav-item-stack-faq .nav-link {
    max-width: 8.5rem;
}

@media (min-width: 992px) {

    #home-header #top-links .fc-nav-item-stack,
    #home-header #top-links .fc-nav-item-stack-faq {
        align-self: flex-end;
    }
}

@media (max-width: 991.98px) {

    #home-header #top-links .fc-nav-item-stack .nav-link,
    #home-header #top-links .fc-nav-item-stack-faq .nav-link {
        max-width: none;
        text-align: left;
    }

    #home-header #top-links .fc-nav-company-menu.dropdown-menu {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}

#home-header .navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.35rem 0.55rem;
}

/* Reference-like header layout: logo left, nav centered, actions right */
#home-header #main-menu .fc-header-bar {
    gap: 12px;
}

@media (min-width: 992px) {
    #home-header #main-menu .fc-header-bar {
        min-height: 72px;
    }

    #home-header #top-links {
        flex: 1 1 auto;
        justify-content: center;
        align-items: flex-end;
        gap: 4px;
    }

    #home-header .fc-header-right {
        flex: 0 0 auto;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        overflow: visible !important;
        min-width: 0;
    }
}

/* Compact language switch */
#home-header .fc-lang-item .nav-link.fc-lang-link {
    padding: 0.35rem 0.4rem;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #6b7280 !important;
}

#home-header .fc-lang-item .fc-lang-link:hover {
    color: #111827 !important;
}

/* App CTA (text + circled arrow, reference style) */
#home-header .fc-app-cta,
#home-header a.fc-app-cta.fc-app-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    margin: 0;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a !important;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1.2;
    transition: all 0.2s ease;
}

#home-header .fc-app-cta:hover,
#home-header a.fc-app-cta.fc-app-cta-link:hover {
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

#home-header .fc-app-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #1a1a1a;
    font-size: 12px;
    color: #1a1a1a;
}

#home-header .fc-app-cta:hover .fc-app-cta-icon,
#home-header a.fc-app-cta.fc-app-cta-link:hover .fc-app-cta-icon {
    border-color: rgba(17, 24, 39, 0.28);
    color: #111827;
}

/* Header CTA button */
#home-header .fc-login-btn {
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 400;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 18px rgba(207, 176, 35, 0.22);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Active link: gold text and underline */
#home-header #top-links .nav-item.active .nav-link,
#home-header #top-links .nav-item[aria-current="page"] .nav-link,
#home-header #top-links .nav-link.active {
    color: #d4a72c !important;
    border-bottom-color: #d4a72c;
}

#home-header #top-links .nav-link:hover {
    color: #d4a72c !important;
}

.dropdown {
    width: auto !important;
}

/* Default caret offset (Empresa uses custom caret below — avoids border-artifact “vertical line”) */
#home-header #top-links .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.12em;
}

/*
 * Empresa: Bootstrap’s ::after caret uses transparent side borders — some browsers draw a stray
 * vertical line through the label. Replace with SVG; hide border-based triangle entirely.
 */
#home-header #top-links .fc-nav-company .nav-link.dropdown-toggle::after {
    display: inline-block !important;
    content: "" !important;
    border: none !important;
    width: 10px !important;
    height: 10px !important;
    margin-left: 0.35em !important;
    vertical-align: 0.12em !important;
    background-image: 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='%236b7280' d='M6 8.2L1.3 3.5h9.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#home-header #top-links .fc-nav-company .nav-link.dropdown-toggle {
    border-left: none !important;
    border-right: none !important;
}

#home-header #top-links .fc-nav-company .nav-link.dropdown-toggle:focus {
    outline: none;
}

#home-header #top-links .fc-nav-company .nav-link.dropdown-toggle:focus-visible {
    outline: 2px solid rgba(212, 167, 44, 0.55);
    outline-offset: 2px;
}

/* Empresa dropdown: must not be clipped by any navbar ancestor (also avoids stray mini-scrollbars) */
@media (min-width: 992px) {
    #home-header .navbar.fc-navbar-ref,
    #home-header .fc-navbar-inner,
    #home-header #main-menu.collapse,
    #home-header #main-menu.collapse.show,
    #home-header #main-menu .fc-header-bar,
    #home-header #top-links.navbar-nav {
        overflow: visible !important;
    }
}

#home-header #top-links .fc-nav-company.dropdown {
    position: relative;
}

/* Empresa: fixed width; stack above page bands (banner uses stacking too) */
#home-header #top-links .fc-nav-company-menu.dropdown-menu {
    min-width: 220px !important;
    width: 220px !important;
    max-width: 220px !important;
    border: 1px solid rgba(197, 160, 72, 0.25);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
    padding: 0.5rem 0;
    margin-top: 0.35rem;
    background-color: #ffffff !important;
    z-index: 1070 !important;
}

#home-header #top-links .fc-nav-company-menu .dropdown-item {
    font-size: 13px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    color: #1f2937 !important;
    white-space: normal;
    line-height: 1.25;
}

#home-header #top-links .fc-nav-company-menu .dropdown-item:hover,
#home-header #top-links .fc-nav-company-menu .dropdown-item:focus {
    background: rgba(197, 160, 72, 0.12);
    color: #111827 !important;
}

/* Logged-in user info in header */
.fc-user-info {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 4px 0 !important;
}

.fc-user-greeting {
    font-size: 0.78rem;
    font-weight: 400;
    color: #1a1a2e;
    white-space: nowrap;
    line-height: 1.2;
}

.fc-user-meta {
    font-size: 0.72rem;
    color: #6b7280;
    white-space: nowrap;
    line-height: 1.2;
}

.fc-user-meta a {
    color: #CFB023;
    text-decoration: none;
    font-weight: 600;
}

.fc-user-meta a:hover {
    text-decoration: underline;
}

/* Modal styling */
.fc-modal .modal-header {
    border-bottom: 1px solid rgba(17, 24, 39, 0.10);
}

.fc-modal .modal-title {
    font-weight: 900;
    letter-spacing: 0.2px;
}

.fc-modal .form-control {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.16);
}

.fc-modal .btn.btn-primary {
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(207, 176, 35, 0.22);
}

.fc-modal-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 13px;
}

.fc-modal-links a {
    color: rgba(31, 41, 55, 0.82) !important;
    text-decoration: none;
}

.fc-modal-links a:hover {
    color: #111827 !important;
    text-decoration: underline;
}

#home-header .navbar-brand {
    margin-left: 50px;
    width: 100px !important;
    height: 100px !important;
}

/* Keep header compact on small screens */
@media (max-width: 991.98px) {
    #home-header #top-links.navbar-nav .nav-link {
        padding: 0.55rem 0.5rem;
    }
}