/*
 * ALCON DRONES — Ganadería de Precisión
 * Archivo: assets/css/ganaderia-precision.css
 * Estilos encapsulados con prefijo .gp- para evitar conflictos con otras páginas.
 */

:root {
    --gp-green: #2c3e50;
    --gp-green-dark: #1f2d3a;
    --gp-green-mid: #84BD00;
    --gp-lime: #84BD00;
    --gp-text: #273b33;
    --gp-muted: #65736c;
    --gp-light: #f4f7f3;
    --gp-white: #fff;
    --gp-border: #dfe8e0;
    --gp-shadow: 0 18px 48px rgba(14, 48, 36, .12);
}

.ganaderia-page {
    overflow-x: clip;
}

.ganaderia-page *,
.ganaderia-page *::before,
.ganaderia-page *::after { box-sizing: border-box; }

.ganaderia-page img { display: block; max-width: 100%; }
.ganaderia-page a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
.ganaderia-page a:focus-visible,
.ganaderia-page summary:focus-visible { outline: 3px solid var(--gp-lime); outline-offset: 4px; }

.gp-container { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.gp-section { padding: 20px 0; }
.gp-skip-link { position: absolute; top: -100px; left: 16px; z-index: 9999; padding: 10px 16px; background: #fff; color: var(--gp-green); }
.gp-skip-link:focus { top: 12px; }

.gp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gp-green-mid);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.5;
}
.gp-eyebrow-line { display: inline-block; width: 34px; height: 3px; border-radius: 10px; background: var(--gp-lime); }

.gp-section h2,
.gp-intro h2,
.gp-related h2 {
    margin: 12px 0 18px;
    color: var(--gp-green);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.13;
}
.gp-section h2 span,
.gp-intro h2 span,
.gp-related h2 span { color: var(--gp-green-mid); }
.gp-section-heading { max-width: 780px; margin: 0 auto 42px; text-align: center; }
.gp-section-heading > p { max-width: 690px; margin: 0 auto; color: var(--gp-muted); }
.gp-section-heading .gp-eyebrow { justify-content: center; }

.gp-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 680px;
    color: #fff;
    background: var(--gp-green-dark) url("../img/Servicios/ganaderia-precision-hero.jpg") center 48% / cover no-repeat;
    isolation: isolate;
    overflow: hidden;
}

/* El poster se ve primero; el video se incorpora después de la carga inicial. */
.gp-hero-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    background: var(--gp-green-dark);
}

.gp-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 29, 22, .91) 0%, rgba(8, 40, 30, .77) 47%, rgba(8, 40, 30, .18) 100%),
                linear-gradient(0deg, rgba(5, 29, 22, .38), transparent 45%);
}


.gp-hero-lead { max-width: 660px; margin: 0; color: #f0f5f1; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; }
.gp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.gp-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 21px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: .96rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}
.gp-btn:hover { transform: translateY(-2px); }
.gp-btn-primary { color: #102d22; background: #84BD00; border-color: #a8d365; }
.gp-btn-primary:hover { color: #102d22; background: #bce27e; border-color: #bce27e; }
.gp-btn-ghost { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.6); }
.gp-btn-ghost:hover { color: #fff; background: rgba(255,255,255,.16); }
.gp-btn-dark { color: #fff; background: var(--gp-green); }
.gp-btn-dark:hover { color: #fff; background: var(--gp-green-dark); }
.gp-hero-note { display: flex; align-items: center; gap: 9px; margin: 24px 0 0; color: #d8e5dc; font-size: .88rem; }
.gp-hero-bottom { position: absolute; right: 0; bottom: 0; left: 0; height: 5px; background: rgba(255,255,255,.18); }
.gp-hero-bottom span { display: block; width: min(240px, 30%); height: 100%; background: var(--gp-lime); }

.gp-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}
.gp-intro-copy p { margin: 0 0 16px; color: #5c6b63; }
.gp-intro-copy h2 { margin-bottom: 22px; }
.gp-text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--gp-green-mid); font-weight: 800; text-decoration: none; }
.gp-text-link:hover { color: var(--gp-green-dark); gap: 13px; }
.gp-intro-visual { position: relative; padding: 0 0 28px 28px; }
.gp-intro-visual::before { position: absolute; z-index: -1; top: 26px; right: 26px; bottom: 0; left: 0; border-radius: 20px; background: #e8f0e5; content: ""; }
.gp-intro-visual > img { width: 100%; min-height: 340px; aspect-ratio: 4 / 3; border-radius: 18px; object-fit: cover; box-shadow: var(--gp-shadow); }
.gp-visual-caption { position: absolute; right: -10px; bottom: 0; display: flex; align-items: center; gap: 13px; max-width: 330px; padding: 16px 20px; border: 1px solid var(--gp-border); border-radius: 12px; background: #fff; box-shadow: 0 12px 34px rgba(14,48,36,.13); }
.gp-visual-caption > i { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border-radius: 50%; color: var(--gp-green); background: #edf4e8; font-size: 1.25rem; }
.gp-visual-caption strong, .gp-visual-caption small { display: block; }
.gp-visual-caption strong { color: var(--gp-green); font-size: .95rem; }
.gp-visual-caption small { color: var(--gp-muted); font-size: .78rem; line-height: 1.4; }

.gp-benefits { background: var(--gp-light); }
.gp-benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gp-benefit-card { padding: 27px 23px 29px; border: 1px solid #e4ebe3; border-radius: 13px; background: #fff; box-shadow: 0 8px 25px rgba(23,75,59,.035); }
.gp-icon { display: grid; width: 55px; height: 55px; margin-bottom: 20px; place-items: center; border-radius: 14px; color: var(--gp-green); background: #eaf2e6; font-size: 1.4rem; }
.gp-benefit-card h3 { margin: 0 0 10px; color: var(--gp-green); font-size: 1.12rem; line-height: 1.3; }
.gp-benefit-card p { margin: 0; color: var(--gp-muted); font-size: .94rem; }

.gp-services { color: #eef6f0; background: var(--gp-green-dark); }
.gp-services .gp-section-heading h2 { color: #fff; }
.gp-services .gp-section-heading h2 span { color: #84BD00; }
.gp-services .gp-section-heading > p { color: #ccdad1; }
.gp-service-list { display: grid; gap: 30px; }
.gp-service-item { display: grid; grid-template-columns: .92fr 1.08fr; align-items: stretch; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.055); }
.gp-service-reverse .gp-service-media { order: 2; }
.gp-service-reverse .gp-service-content { order: 1; }
.gp-service-media { position: relative; min-height: 100%; }
.gp-service-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.gp-service-index { position: absolute; top: 18px; left: 18px; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: rgba(12,46,36,.86); font-size: 1rem; font-weight: 800; }
.gp-service-content { padding: clamp(26px, 4vw, 48px); }
.gp-service-kicker { color: #84BD00; font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
.gp-service-content h3 { margin: 11px 0 15px; color: #fff; font-size: clamp(1.55rem, 2.7vw, 2.1rem); letter-spacing: -.025em; line-height: 1.2; }
.gp-service-content p { color: #d2dfd6; }
.gp-check-list { display: grid; gap: 11px; margin: 20px 0; padding: 0; list-style: none; }
.gp-check-list li { display: flex; align-items: flex-start; gap: 10px; color: #eef6f0; font-size: .94rem; line-height: 1.5; }
.gp-check-list i { margin-top: 5px; color: #84BD00; }
.gp-service-content .gp-text-link { color: #c0e28b; }
.gp-service-content .gp-text-link:hover { color: #fff; }
.gp-small-note { padding-left: 13px; border-left: 2px solid #84BD00; font-size: .84rem; line-height: 1.55; }

.gp-deliverables-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 70px; }
.gp-deliverables-grid > div > p { max-width: 680px; color: var(--gp-muted); }
.gp-deliverable-list { display: grid; gap: 19px; margin: 28px 0 0; padding: 0; list-style: none; }
.gp-deliverable-list li { display: flex; align-items: flex-start; gap: 15px; }
.gp-deliverable-list li > i { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 12px; color: var(--gp-green); background: #eaf2e6; font-size: 1.12rem; }
.gp-deliverable-list strong, .gp-deliverable-list small { display: block; }
.gp-deliverable-list strong { margin-bottom: 3px; color: var(--gp-green); }
.gp-deliverable-list small { color: var(--gp-muted); font-size: .92rem; line-height: 1.55; }
.gp-deliverables-card { padding: 36px; border-radius: 18px; background: var(--gp-light); }
.gp-deliverables-card > i { color: var(--gp-green-mid); font-size: 2.3rem; }
.gp-deliverables-card h3 { margin: 20px 0 10px; color: var(--gp-green); font-size: 1.55rem; line-height: 1.25; }
.gp-deliverables-card p { margin-bottom: 24px; color: var(--gp-muted); }

.gp-method { background: var(--gp-green); }
.gp-method .gp-section-heading h2 { color: #fff; }
.gp-method .gp-section-heading h2 span { color: #84BD00; }
.gp-method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gp-method-grid article { padding: 25px 22px; border-top: 3px solid #84BD00; background: rgba(255,255,255,.07); }
.gp-method-grid article > span { color: #84BD00; font-size: 1.8rem; font-weight: 800; }
.gp-method-grid h3 { margin: 14px 0 9px; color: #fff; font-size: 1.12rem; line-height: 1.3; }
.gp-method-grid p { margin: 0; color: #d5e3d9; font-size: .93rem; }

.gp-related { padding-block: 56px; background: #eef4e9; }
.gp-related-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px; }
.gp-related-icon { display: grid; width: 74px; height: 74px; place-items: center; border-radius: 18px; color: #fff; background: var(--gp-green); font-size: 1.8rem; }
.gp-related h2 { margin: 8px 0 8px; font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.gp-related-copy p { max-width: 760px; margin: 0; color: #5c6b63; }
.gp-related-copy a { color: var(--gp-green); font-weight: 800; }

.gp-faq { background: #fff; }
.gp-faq-list { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--gp-border); }
.gp-faq-list details { border-bottom: 1px solid var(--gp-border); }
.gp-faq-list summary { position: relative; padding: 21px 48px 21px 2px; color: var(--gp-green); cursor: pointer; font-weight: 750; list-style: none; }
.gp-faq-list summary::-webkit-details-marker { display: none; }
.gp-faq-list summary::after { position: absolute; top: 50%; right: 6px; color: var(--gp-green-mid); content: "+"; font-size: 1.55rem; transform: translateY(-50%); }
.gp-faq-list details[open] summary::after { content: "−"; }
.gp-faq-list details p { max-width: 820px; margin: 0; padding: 0 25px 22px 2px; color: var(--gp-muted); }
.gp-faq-list details a { color: var(--gp-green-mid); font-weight: 750; }

.gp-final-cta { position: relative; overflow: hidden; color: #fff; background: var(--gp-green-dark) url("../img/Servicios/ganaderia-precision-hero.jpg") center 58% / cover no-repeat; isolation: isolate; }
.gp-final-shade { position: absolute; inset: 0; z-index: -1; background: rgba(8, 42, 31, .88); }
.gp-final-inner { padding-block: 88px; text-align: center; }
.gp-final-inner h2 { max-width: 850px; margin: 15px auto; color: #fff; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.1; letter-spacing: -.035em; }
.gp-final-inner > p:not(.gp-contact-line) { max-width: 690px; margin: 0 auto; color: #dce9df; font-size: 1.08rem; }
.gp-final-inner .gp-actions { justify-content: center; }
.gp-contact-line { margin: 24px 0 0; color: #dce9df; }
.gp-contact-line i { margin-right: 6px; }

@media (max-width: 1000px) {
    .gp-benefit-grid, .gp-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gp-deliverables-grid { gap: 36px; }
    .gp-related-inner { grid-template-columns: auto 1fr; }
    .gp-related-inner > .gp-btn { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
    .gp-container { width: min(100% - 34px, 600px); }
    .gp-section { padding: 66px 0; }
    .gp-hero { min-height: 620px; background-position: 58% center; }
    .gp-hero-shade { background: linear-gradient(90deg, rgba(5,29,22,.9), rgba(5,29,22,.55)), linear-gradient(0deg, rgba(5,29,22,.38), transparent); }
    .gp-hero-inner { padding-block: 72px 82px; }
    .gp-hero h1 { font-size: clamp(2.55rem, 11vw, 4.1rem); }
    .gp-hero-note { align-items: flex-start; }
    .gp-intro-grid, .gp-deliverables-grid { grid-template-columns: 1fr; gap: 38px; }
    .gp-intro-visual { margin-right: 9px; }
    .gp-intro-visual > img { min-height: 270px; }
    .gp-visual-caption { right: -8px; max-width: 300px; }
    .gp-benefit-grid { gap: 13px; }
    .gp-benefit-card { padding: 22px 18px; }
    .gp-service-item { grid-template-columns: 1fr; }
    .gp-service-reverse .gp-service-media, .gp-service-reverse .gp-service-content { order: initial; }
    .gp-service-media img { min-height: 270px; max-height: 360px; }
    .gp-service-content { padding: 27px 23px 30px; }
    .gp-method-grid { gap: 13px; }
    .gp-related-inner { grid-template-columns: 1fr; gap: 16px; }
    .gp-related-icon { width: 60px; height: 60px; }
    .gp-related-inner > .gp-btn { grid-column: auto; justify-self: start; }
    .gp-final-inner { padding-block: 68px; }
}

@media (max-width: 480px) {
    .gp-container { width: calc(100% - 30px); }
    .gp-hero { min-height: 600px; }
    .gp-hero h1 { font-size: 2.55rem; }
    .gp-actions { align-items: stretch; flex-direction: column; }
    .gp-btn { width: 100%; }
    .gp-benefit-grid, .gp-method-grid { grid-template-columns: 1fr; }
    .gp-benefit-card { padding: 23px; }
    .gp-visual-caption { position: relative; right: auto; bottom: auto; margin: -24px 10px 0 18px; }
    .gp-deliverables-card { padding: 27px 23px; }
    .gp-faq-list summary { padding-right: 38px; font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ganaderia-page *, .ganaderia-page *::before, .ganaderia-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
