/* ===========================================================
   GRV ENERGY — Landing page
   Tema: industrial / energía · negro + amarillo de marca
   =========================================================== */

:root {
    --black:      #0c0c0d;
    --ink:        #121316;
    --ink-2:      #17191d;
    --ink-3:      #1f2228;
    --line:       #2a2d34;
    --white:      #f5f6f7;
    --muted:      #a4a8b0;
    --muted-2:    #777b84;
    --accent:     #f2ea4e;   /* amarillo GRV */
    --accent-d:   #d8cf32;
    --radius:     14px;
    --maxw:       1180px;
    --ease:       cubic-bezier(.22,.61,.36,1);
    font-synthesis: none;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: 'Saira', sans-serif; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Saira', sans-serif; font-weight: 600; font-size: .95rem;
    letter-spacing: .02em; text-transform: uppercase;
    padding: 14px 26px; border-radius: 100px; cursor: pointer; border: 1.5px solid transparent;
    transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn--accent { background: var(--accent); color: #15140a; box-shadow: 0 8px 28px -10px rgba(242,234,78,.6); }
.btn--accent:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -10px rgba(242,234,78,.75); }
.btn--ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn--lg { padding: 17px 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Section helpers ---------- */
.section__head { max-width: 620px; margin-bottom: 54px; }
.section__kicker {
    display: inline-block; font-family: 'Saira', sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
    color: var(--accent); margin-bottom: 14px;
}
.section__kicker--light { color: var(--accent); }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--white); }
.section__title--light { color: var(--white); }
.section__sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .3s, border-color .3s, padding .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(12,12,13,.82);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__logo { height: 42px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
    font-family: 'Saira', sans-serif; font-weight: 500; font-size: .95rem; color: var(--muted);
    transition: color .2s; position: relative;
}
.nav__links a:not(.nav__cta):hover { color: var(--white); }
.nav__links a:not(.nav__cta)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--accent); transition: width .25s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { padding: 11px 20px; font-size: .82rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--white); transition: .3s; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, rgba(8,8,9,.94) 0%, rgba(8,8,9,.7) 45%, rgba(8,8,9,.35) 100%),
        url('../images/bulb-map.jpg') center/cover no-repeat;
    transform: scale(1.05);
    animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(242,234,78,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242,234,78,.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 30% 50%, #000 10%, transparent 70%);
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__eyebrow {
    display: inline-block; font-family: 'Saira', sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--accent);
    border: 1px solid rgba(242,234,78,.4); border-radius: 100px; padding: 8px 18px; margin-bottom: 28px;
    opacity: 0; animation: fadeUp .8s var(--ease) .2s forwards;
}
.hero__title {
    font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 800; color: var(--white);
    opacity: 0; animation: fadeUp .8s var(--ease) .35s forwards;
}
.hero__lead {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 560px; margin: 26px 0 38px;
    opacity: 0; animation: fadeUp .8s var(--ease) .5s forwards;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s var(--ease) .65s forwards; }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
    display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
    content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: var(--accent); border-radius: 4px; animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0;transform:translate(-50%,14px);} 100%{opacity:0;} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ===========================================================
   STATS
   =========================================================== */
.stats { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: 'Saira', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--accent); line-height: 1; }
.stat__label { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }

/* ===========================================================
   ABOUT
   =========================================================== */
.about { padding: 110px 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.about__badge {
    position: absolute; bottom: -22px; right: -22px; background: var(--accent); color: #15140a;
    border-radius: var(--radius); padding: 18px 22px; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
}
.about__badge strong { font-family: 'Saira', sans-serif; font-size: 2.4rem; line-height: 1; }
.about__badge span { font-size: .82rem; font-weight: 600; line-height: 1.15; }
.about__text p { color: var(--muted); margin: 18px 0 26px; font-size: 1.06rem; }
.about__list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--white); }
.about__list li::before {
    content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px;
    background: var(--accent); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
}

/* ===========================================================
   SOLUTIONS
   =========================================================== */
.solutions { padding: 110px 0; background: var(--ink); border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(242,234,78,.5); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.card__img { aspect-ratio: 16/10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); filter: saturate(.9); }
.card:hover .card__img img { transform: scale(1.08); filter: saturate(1.1); }
.card__body { padding: 22px 22px 26px; }
.card__body h3 { font-size: 1.22rem; color: var(--white); margin-bottom: 10px; }
.card__body p { color: var(--muted); font-size: .95rem; }

/* ===========================================================
   WHY
   =========================================================== */
.why { position: relative; padding: 110px 0; overflow: hidden; }
.why__bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        linear-gradient(rgba(8,8,9,.93), rgba(8,8,9,.93)),
        url('../images/red-particulas.jpg') center/cover no-repeat fixed;
}
.why .container { position: relative; z-index: 1; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit {
    background: rgba(23,25,29,.7); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 26px; backdrop-filter: blur(4px); transition: transform .3s var(--ease), border-color .3s;
}
.benefit:hover { transform: translateY(-6px); border-color: rgba(242,234,78,.55); }
.benefit__icon {
    width: 56px; height: 56px; border-radius: 14px; background: rgba(242,234,78,.12);
    display: grid; place-items: center; color: var(--accent); margin-bottom: 20px;
}
.benefit__icon svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.25rem; color: var(--white); margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: .95rem; }

/* ===========================================================
   MAINTENANCE
   =========================================================== */
.maint { padding: 110px 0; background: var(--ink); border-top: 1px solid var(--line); }
.maint__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.maint__card {
    position: relative; background: var(--ink-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 44px 30px 36px; overflow: hidden;
}
.maint__step {
    font-family: 'Saira', sans-serif; font-weight: 800; font-size: 3.2rem;
    color: rgba(255,255,255,.08); line-height: 1; display: block; margin-bottom: 14px;
}
.maint__card h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.maint__card p { color: var(--muted); }
.maint__card--accent { background: var(--accent); border-color: var(--accent); }
.maint__card--accent .maint__step { color: rgba(21,20,10,.18); }
.maint__card--accent h3, .maint__card--accent p { color: #15140a; }

/* ===========================================================
   CTA
   =========================================================== */
.cta { position: relative; padding: 120px 0; text-align: center; overflow: hidden; }
.cta__bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(rgba(8,8,9,.86), rgba(8,8,9,.9)),
        url('../images/ciudad-aerea.jpg') center/cover no-repeat;
}
.cta__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta__inner h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--white); }
.cta__inner p { color: var(--muted); font-size: 1.15rem; margin: 18px 0 34px; }

/* ===========================================================
   CONTACT
   =========================================================== */
.contact { padding: 110px 0; background: var(--ink); border-top: 1px solid var(--line); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__list { margin-top: 28px; }
.contact__list li { display: flex; gap: 18px; margin-bottom: 26px; }
.contact__ic {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: rgba(242,234,78,.12);
    display: grid; place-items: center; color: var(--accent);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__list strong { display: block; font-family: 'Saira', sans-serif; color: var(--white); margin-bottom: 4px; }
.contact__list div { color: var(--muted); font-size: .98rem; }
.contact__list a { color: var(--accent); transition: color .2s; }
.contact__list a:hover { color: var(--white); }

.contact__form { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: 'Saira', sans-serif; font-size: .85rem; color: var(--muted); margin-bottom: 8px; letter-spacing: .03em; }
.field input, .field select, .field textarea {
    width: 100%; background: var(--ink-3); border: 1px solid var(--line); border-radius: 10px;
    padding: 13px 15px; color: var(--white); font-family: inherit; font-size: .98rem; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.form__note { margin-top: 14px; color: var(--accent); font-size: .9rem; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: 50px 0 36px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer__brand img { height: 46px; margin: 0 auto 12px; }
.footer__brand p { color: var(--muted); font-size: .95rem; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--muted); transition: .25s var(--ease);
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: #15140a; transform: translateY(-3px); }
.footer__social svg { width: 20px; height: 20px; }
.footer__copy { color: var(--muted-2); font-size: .85rem; }

/* ===========================================================
   REVEAL ON SCROLL
   =========================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 960px) {
    .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 48px; }
    .about__media { max-width: 520px; }
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .maint__grid { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
    .why__bg { background-attachment: scroll; }
}
@media (max-width: 720px) {
    .nav__links {
        position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0;
        background: rgba(12,12,13,.97); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line); padding: 14px 24px 26px;
        transform: translateY(-120%); transition: transform .35s var(--ease); align-items: stretch;
    }
    .nav__links.open { transform: translateY(0); }
    .nav__links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
    .nav__links a::after { display: none; }
    .nav__cta { margin-top: 14px; border-bottom: 0 !important; }
    .nav__toggle { display: flex; }
    .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle.open span:nth-child(2) { opacity: 0; }
    .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .about, .solutions, .why, .maint, .contact { padding: 72px 0; }
    .cta { padding: 84px 0; }
    .contact__form { padding: 26px; }
}
@media (max-width: 460px) {
    .benefits { grid-template-columns: 1fr; }
    .about__badge { right: 12px; bottom: -18px; }
}
