/* =========================================================
   AVALQUIMICO S.A.S. - Hoja de estilos principal
   Esta versión incorpora:
   - Logo corporativo PNG
   - Hero más compacto
   - Franja de diferenciales visible
   - Clientes con carrusel animado
   - PQR
   - Botón flotante de WhatsApp
========================================================= */

:root {
    --green: #159447;
    --green-dark: #08753a;
    --orange: #f28a00;
    --orange-dark: #d86f00;
    --ink: #173129;
    --muted: #68756f;
    --surface: #f5f8f6;
    --white: #ffffff;
    --line: #dfe8e2;
    --shadow: 0 18px 50px rgba(16, 55, 37, 0.10);
    --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

section[id] { scroll-margin-top: 92px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: flex; align-items: center; min-width: 190px; }

.brand img {
    display: block;
    width: 190px;
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: .88rem;
    font-weight: 600;
}

.main-nav a {
    position: relative;
    padding: 10px 0;
}

.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 3px;
    height: 2px;
    background: var(--orange);
    transition: right .25s ease;
}

.main-nav a:not(.nav-cta):hover::after { right: 0; }

.nav-cta {
    padding: 11px 17px !important;
    border-radius: 999px;
    color: var(--white);
    background: var(--green);
}

.nav-cta:hover { background: var(--green-dark); }

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px;
    background: var(--ink);
}

/* ---------- Generic ---------- */
.section { padding: 90px 0; }

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--orange-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.eyebrow.light { color: #ffd59d; }

.section-heading { margin-bottom: 42px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; max-width: 780px; }

.section-heading h2,
.section-content h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.section-heading p,
.section-content p {
    color: var(--muted);
    max-width: 760px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { color: var(--white); background: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); }

.btn-secondary,
.btn-outline {
    color: var(--green-dark);
    background: transparent;
    border-color: var(--green);
}

.btn-secondary:hover,
.btn-outline:hover { color: var(--white); background: var(--green); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 535px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 30%, rgba(21,148,71,.10), transparent 30%),
        linear-gradient(135deg, #fbfdfc 0%, #f1f7f3 100%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 55px;
    padding: 42px 0;
}

.hero-content h1 {
    max-width: 720px;
    margin-bottom: 20px;
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-content h1 span { color: var(--green); }

.hero-content > p {
    max-width: 670px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
    color: var(--green-dark);
    font-size: .86rem;
    font-weight: 700;
}

.hero-visual { display: flex; justify-content: center; }

.lab-card {
    width: min(470px, 100%);
    min-height: 330px;
    padding: 22px;
    border: 1px solid rgba(21,148,71,.15);
    border-radius: 28px;
    background: rgba(255,255,255,.78);
    box-shadow: var(--shadow);
}

.lab-card-top,
.lab-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: .78rem;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(21,148,71,.10);
}

.lab-illustration {
    position: relative;
    height: 230px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(transparent 95%, rgba(21,148,71,.12) 96%),
        repeating-linear-gradient(90deg, rgba(21,148,71,.05) 0 1px, transparent 1px 44px);
}

.flask {
    position: absolute;
    bottom: 35px;
    width: 80px;
    height: 110px;
    border: 5px solid rgba(21,148,71,.5);
    border-top: 0;
    border-radius: 10px 10px 35px 35px;
    transform: rotate(8deg);
}

.flask::before {
    content: "";
    position: absolute;
    left: 21px;
    top: -44px;
    width: 30px;
    height: 45px;
    border: 5px solid rgba(21,148,71,.5);
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.flask::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    height: 42px;
    border-radius: 0 0 25px 25px;
    background: rgba(242,138,0,.30);
}

.flask-one { left: 23%; transform: rotate(-7deg); }
.flask-two { left: 48%; bottom: 48px; transform: rotate(6deg) scale(.9); }
.flask-three { left: 68%; bottom: 25px; transform: rotate(-10deg) scale(.75); }

.lab-line {
    position: absolute;
    height: 3px;
    background: rgba(242,138,0,.45);
    border-radius: 999px;
}
.line-one { width: 70%; left: 12%; bottom: 25px; }
.line-two { width: 35%; right: 8%; top: 45px; }

.lab-card-bottom { padding-top: 4px; }

/* ---------- Trust strip ---------- */
.trust-strip {
    position: relative;
    z-index: 3;
    background: var(--green);
    color: var(--white);
    box-shadow: 0 12px 35px rgba(0,0,0,.10);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
    min-height: 112px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,.18);
}

.trust-grid > div:last-child { border-right: 0; }

.trust-grid strong { font-size: .98rem; margin-bottom: 4px; }
.trust-grid span { color: rgba(255,255,255,.82); font-size: .79rem; line-height: 1.45; }

/* ---------- About ---------- */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.image-placeholder {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #b9cbc0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f3f7f4, #e8f1eb);
    color: var(--green-dark);
    text-align: center;
}

.image-placeholder span { font-weight: 800; }
.image-placeholder small { margin-top: 8px; color: var(--muted); }

.section-content p + p { margin-top: 14px; }

.text-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--green-dark);
    font-weight: 800;
}

/* ---------- Services ---------- */
.services-section { background: var(--surface); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 25px rgba(16,55,37,.05);
}

.service-card.featured {
    border-color: rgba(242,138,0,.45);
    box-shadow: 0 14px 34px rgba(242,138,0,.10);
}

.service-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 11px;
    color: var(--white);
    background: var(--green);
    font-weight: 800;
}

.service-card h3 { margin-bottom: 9px; font-size: 1.15rem; }
.service-card p { color: var(--muted); font-size: .88rem; }

.service-card ul {
    margin: 15px 0 20px;
    padding-left: 17px;
    color: var(--muted);
    font-size: .82rem;
}

.service-card li + li { margin-top: 5px; }

.service-card > a {
    color: var(--orange-dark);
    font-weight: 800;
    font-size: .86rem;
}

/* ---------- Sectors ---------- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.sector-item {
    min-height: 230px;
    padding: 24px;
    border-top: 3px solid var(--green);
    background: #fbfcfb;
}

.sector-number {
    display: block;
    margin-bottom: 35px;
    color: var(--orange);
    font-weight: 800;
}

.sector-item h3 { margin-bottom: 8px; }
.sector-item p { color: var(--muted); font-size: .88rem; }

/* ---------- Clients ---------- */
.clients-section {
    padding: 82px 0;
    background: #f8faf8;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.logo-marquee {
    overflow: hidden;
    width: 100%;
    margin-top: 30px;
    padding: 8px 0;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.logo-track {
    width: max-content;
    display: flex;
    gap: 18px;
    animation: clients-scroll 28s linear infinite;
}

.logo-marquee:hover .logo-track { animation-play-state: paused; }

.client-logo-placeholder {
    width: 190px;
    height: 86px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: #8b9891;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}

@keyframes clients-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Quality ---------- */
.quality-section { background: #edf6f0; }

.quality-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: stretch;
}

.standards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.standard {
    padding: 18px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--line);
}

.standard strong { display: block; color: var(--green-dark); }
.standard span { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }

.quality-panel {
    min-height: 330px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(145deg, var(--green-dark), var(--green));
    box-shadow: var(--shadow);
}

.quality-panel-label { color: #bde9cc; font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.quality-panel h3 { margin: 10px 0; font-size: 1.7rem; }
.quality-panel p { color: rgba(255,255,255,.82); }
.quality-line { width: 70px; height: 3px; margin: 24px 0 12px; background: var(--orange); }

/* ---------- Methods ---------- */
.method-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.method-tags span {
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--green-dark);
    background: #fbfdfb;
    font-size: .82rem;
    font-weight: 700;
}

/* ---------- PQR ---------- */
.pqr-section { background: var(--surface); }

.pqr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.pqr-note {
    display: grid;
    gap: 3px;
    margin-top: 25px;
    padding: 18px;
    border-left: 4px solid var(--orange);
    background: var(--white);
    color: var(--muted);
    font-size: .86rem;
}

.pqr-note strong { color: var(--ink); }

.pqr-form,
.quote-form {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.pqr-form label,
.quote-form label {
    display: block;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
}

.pqr-form input,
.pqr-form select,
.pqr-form textarea,
.quote-form input,
.quote-form textarea {
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid #cedbd3;
    border-radius: 9px;
    background: #fbfdfc;
    font: inherit;
    color: var(--ink);
}

.pqr-form input:focus,
.pqr-form select:focus,
.pqr-form textarea:focus,
.quote-form input:focus,
.quote-form textarea:focus {
    outline: 2px solid rgba(21,148,71,.18);
    border-color: var(--green);
}

.form-note { margin-top: 12px; color: var(--muted); font-size: .73rem; }

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.process-step {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.process-step > span {
    display: block;
    margin-bottom: 18px;
    color: var(--orange);
    font-weight: 800;
}

.process-step h3 { font-size: 1rem; margin-bottom: 7px; }
.process-step p { color: var(--muted); font-size: .78rem; }

/* ---------- Quote ---------- */
.quote-section {
    padding: 85px 0;
    color: var(--white);
    background: linear-gradient(135deg, #0d5130, #159447);
}

.quote-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 55px;
    align-items: center;
}

.quote-grid h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.quote-grid > div > p { color: rgba(255,255,255,.82); }

.contact-data { display: grid; gap: 13px; margin-top: 28px; }
.contact-data span { display: block; color: #bde9cc; font-size: .72rem; }
.contact-data strong { display: block; margin-top: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: #20b95a;
    box-shadow: 0 12px 28px rgba(0,0,0,.20);
    font-weight: 900;
    transition: transform .2s ease;
}

.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- Footer ---------- */
.site-footer {
    color: #dbe8df;
    background: #10261d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding: 55px 0;
}

.footer-logo {
    width: 230px;
    max-height: 75px;
    object-fit: contain;
    object-position: left center;
    /* El logo ya es PNG con fondo transparente: no agregar fondo blanco. */
}

.footer-brand { font-size: 1.3rem; font-weight: 800; }
.footer-grid p { margin-top: 8px; color: #9db0a4; }
.footer-grid h4 { margin-bottom: 12px; color: #fff; }
.footer-grid a,
.footer-grid span { display: block; margin: 6px 0; color: #a9b9b0; font-size: .85rem; }

.footer-grid a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.10);
    color: #8fa197;
    font-size: .74rem;
}

.footer-bottom .container {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
    .main-nav { gap: 13px; font-size: .78rem; }
    .brand img { width: 160px; }
    .hero-grid { gap: 35px; }
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        display: none;
        padding: 15px 20px 22px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 15px 30px rgba(0,0,0,.08);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 9px 0; }
    .nav-cta { text-align: center; }

    .hero { min-height: auto; }
    .hero-grid,
    .two-column,
    .quality-grid,
    .pqr-grid,
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual { order: -1; }
    .hero-grid { padding: 42px 0 50px; }
    .hero-content { text-align: center; }
    .hero-actions,
    .hero-highlights { justify-content: center; }

    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid > div:nth-child(2) { border-right: 0; }
    .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .standards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .container { width: min(100% - 28px, 1180px); }
    .section { padding: 65px 0; }

    .brand img { width: 155px; max-height: 58px; }
    .nav-container { min-height: 72px; }

    .hero-grid { padding-top: 25px; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-visual { display: none; }

    .trust-grid,
    .services-grid,
    .sectors-grid,
    .process-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
    .trust-grid > div:last-child { border-bottom: 0; }

    .form-row { grid-template-columns: 1fr; }

    .footer-bottom .container {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
        text-align: center;
    }

    .whatsapp-float { right: 16px; bottom: 16px; }
}
