
/* =========================================================
   VOLTICA — GLOBAL STYLES
   ========================================================= */

:root {
    --dark: #101815;
    --dark-soft: #17211d;
    --green: #b8e986;
    --green-dark: #78a957;
    --cream: #f4f5ef;
    --light: #f8f9f6;
    --white: #ffffff;
    --text: #1c2621;
    --muted: #66716b;
    --border: #dfe4df;

    --container: 1180px;
    --radius: 12px;
}


/* =========================================================
   RESET
   ========================================================= */

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

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

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--green-dark);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   GENERAL
   ========================================================= */

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

.section {
    padding: 120px 0;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;

    color: var(--green-dark);
    margin-bottom: 20px;
}

.section-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;

    margin-bottom: 65px;
}

.section-header h2,
.about h2,
.solutions h2,
.contact h2 {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -2px;
}

.section-header > p {
    align-self: end;
    color: var(--muted);
    max-width: 430px;
    font-size: 1.05rem;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(223, 228, 223, 0.8);
}

.header-content {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.5px;
}

.logo-mark {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    background: var(--dark);
    color: var(--green);

    border-radius: 7px;

    font-size: 0.9rem;
    font-weight: 900;
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a {
    position: relative;

    font-size: 0.9rem;
    font-weight: 600;

    color: #4d5953;

    transition:
        color 0.2s ease;
}

.nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--green-dark);

    transition: width 0.2s ease;
}

.nav a:hover {
    color: var(--dark);
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    width: 21px;
    height: 2px;
    background: var(--dark);
}

.header-button {
    padding: 11px 19px;

    background: var(--dark);
    color: var(--white);

    border-radius: 6px;

    font-size: 0.85rem;
    font-weight: 750;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.header-button:hover {
    transform: translateY(-2px);
    background: var(--dark-soft);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--dark);
    color: var(--white);
}

.hero-background {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(16, 24, 21, 0.96) 0%,
            rgba(16, 24, 21, 0.78) 48%,
            rgba(16, 24, 21, 0.35) 100%
        ),
        url("../images/Paneles atardecer.jpeg") center / cover no-repeat,
        radial-gradient(
            circle at 80% 25%,
            rgba(184, 233, 134, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at 15% 90%,
            rgba(120, 169, 87, 0.12),
            transparent 35%
        );
}

.hero-background::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 70px 70px;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
}

.hero-text {
    max-width: 850px;

    padding-bottom: 90px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--green);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;

    margin-bottom: 28px;
}

.hero-tag::before {
    content: "";

    width: 35px;
    height: 2px;

    background: var(--green);
}

.hero h1 {
    max-width: 850px;

    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: 0.94;
    letter-spacing: -5px;

    margin-bottom: 30px;
}

.hero-description {
    max-width: 620px;

    color: #b8c2bd;

    font-size: 1.2rem;
    line-height: 1.7;

    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 52px;

    padding: 0 23px;

    border-radius: 6px;

    font-size: 0.9rem;
    font-weight: 750;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

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

.button-primary {
    background: var(--green);
    color: var(--dark);
}

.button-primary:hover {
    background: #c7f39d;
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
}

.button-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.button-light {
    background: var(--white);
    color: var(--dark);
}

.button-light:hover {
    background: var(--cream);
}


/* =========================================================
   HERO STATS
   ========================================================= */

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.hero-stat {
    padding: 20px 0;

    display: flex;
    align-items: center;
    gap: 14px;

    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat:not(:first-child) {
    padding-left: 35px;
}

.hero-stat:last-child {
    border-right: 0;
}

.hero-stat strong {
    color: var(--green);

    font-size: 0.9rem;
    font-weight: 800;
}

.hero-stat span {
    color: #aeb8b3;

    font-size: 0.8rem;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
    background: var(--cream);
}

.intro-content {
    display: grid;
    grid-template-columns: 0.35fr 1fr;
    gap: 80px;
}

.intro-label {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--green-dark);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.intro-label span {
    width: 8px;
    height: 8px;

    background: var(--green-dark);
    border-radius: 50%;
}

.intro-text {
    max-width: 850px;
}

.intro-text h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -3px;

    margin-bottom: 35px;
}

.intro-text p {
    max-width: 690px;

    color: var(--muted);

    font-size: 1.15rem;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services {
    background: var(--white);
}

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

.service-card {
    position: relative;

    min-height: 330px;

    padding: 40px;

    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #bcc6bf;
}

.service-featured {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.service-number {
    position: absolute;
    top: 35px;
    right: 38px;

    color: #aeb8b3;

    font-size: 0.75rem;
    font-weight: 800;
}

.service-featured .service-number {
    color: #718078;
}

.service-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 35px;

    border-radius: 10px;

    background: #e9eee8;

    font-size: 1.45rem;
}

.service-featured .service-icon {
    background: rgba(184, 233, 134, 0.12);
    color: var(--green);
}

.service-card h3 {
    font-size: 1.8rem;
    letter-spacing: -0.8px;

    margin-bottom: 15px;
}

.service-card p {
    max-width: 470px;

    color: var(--muted);

    font-size: 0.98rem;
}

.service-featured p {
    color: #aeb8b3;
}

.service-link {
    position: absolute;
    left: 40px;
    bottom: 32px;

    font-size: 0.85rem;
    font-weight: 750;

    color: var(--green-dark);
}

.service-featured .service-link {
    color: var(--green);
}


/* =========================================================
   SOLUTIONS
   ========================================================= */

.solutions {
    background: var(--cream);
}

.solutions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.solutions-text {
    max-width: 600px;
}

.solutions-text h2 {
    margin-bottom: 30px;
}

.solutions-text > p:not(.section-tag) {
    color: var(--muted);

    font-size: 1.05rem;

    margin-bottom: 35px;
}

.text-link {
    display: inline-block;

    color: var(--dark);

    font-size: 0.9rem;
    font-weight: 800;

    border-bottom: 1px solid var(--dark);

    padding-bottom: 4px;
}

.solutions-types {
    border-top: 1px solid #d4dad5;
}

.solution-type {
    padding: 27px 0;

    display: grid;
    grid-template-columns: 55px 1fr;
    column-gap: 20px;

    border-bottom: 1px solid #d4dad5;
}

.solution-type > span {
    grid-row: span 2;

    color: var(--green-dark);

    font-size: 0.75rem;
    font-weight: 800;
}

.solution-type h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.solution-type p {
    color: var(--muted);
    font-size: 0.9rem;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects {
    background: var(--dark);
    color: var(--white);
}

.projects .section-tag {
    color: var(--green);
}

.projects-header {
    align-items: end;
}

.projects-header > p {
    color: #aeb8b3;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr;
    grid-template-rows: repeat(2, 245px);
    gap: 16px;
}

.project-image {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--dark-soft);
}

.project-image-wide {
    grid-row: span 2;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-image:hover img {
    transform: scale(1.04);
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(16, 24, 21, 0.85));
    pointer-events: none;
}

.project-image figcaption {
    position: absolute;
    right: 20px;
    bottom: 17px;
    left: 20px;
    z-index: 1;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 750;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-title h2 {
    max-width: 520px;
}

.about-text {
    max-width: 610px;
}

.about-lead {
    font-size: 1.35rem;
    line-height: 1.5;

    margin-bottom: 25px;
}

.about-text > p:not(.about-lead) {
    color: var(--muted);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 55px;

    border-top: 1px solid var(--border);
}

.about-values div {
    padding-top: 20px;

    display: flex;
    flex-direction: column;
    gap: 7px;
}

.about-values strong {
    color: var(--green-dark);

    font-size: 0.75rem;
}

.about-values span {
    font-size: 0.9rem;
    font-weight: 750;
}


/* =========================================================
   PROCESS
   ========================================================= */

.process {
    background: var(--dark);
    color: var(--white);
}

.process-header {
    display: block;
    max-width: 720px;
    margin-left: 0;
}

.process-header h2 {
    margin-bottom: 25px;
}

.process-header > p:last-child {
    color: #aeb8b3;
    max-width: 540px;
}

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

    margin-top: 70px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.process-step {
    min-height: 250px;

    padding: 30px 30px 30px 0;

    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.process-step:not(:first-child) {
    padding-left: 30px;
}

.process-step:last-child {
    border-right: 0;
}

.process-number {
    display: block;

    color: var(--green);

    font-size: 0.75rem;
    font-weight: 800;

    margin-bottom: 70px;
}

.process-step h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.process-step p {
    color: #9da9a3;

    font-size: 0.9rem;

    max-width: 220px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
    background: var(--green);
}

.contact-box {
    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

.contact-content {
    max-width: 700px;
}

.contact .section-tag {
    color: #45632f;
}

.contact h2 {
    margin-bottom: 25px;
}

.contact-content > p:last-child {
    max-width: 520px;

    color: #41533a;

    font-size: 1.05rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;

    min-width: 210px;
}

.contact-buttons .button {
    width: 100%;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: var(--dark);
    color: var(--white);

    padding: 65px 0 25px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 50px;

    padding-bottom: 60px;
}

.footer-brand p {
    color: #8f9b95;

    font-size: 0.85rem;

    margin-top: 15px;
}

.footer-logo {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #aeb8b3;

    font-size: 0.85rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 20px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: #69756f;

    font-size: 0.75rem;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .container {
        width: min(var(--container), calc(100% - 36px));
    }

    .section {
        padding: 85px 0;
    }

    .header-content {
        position: relative;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 18px 16px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(16, 24, 21, 0.08);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px 0;
    }

    .nav a::after {
        bottom: 5px;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .solutions-content,
    .about-content,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .projects-grid {
        grid-template-rows: 360px repeat(3, 220px);
        gap: 16px;
    }

    .project-image-wide {
        grid-row: auto;
    }

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

    .process-step:nth-child(2) {
        border-right: 0;
    }

    .process-step:nth-child(3),
    .process-step:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .contact-box {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .contact-buttons {
        width: 100%;
        max-width: 350px;
    }
}


@media (max-width: 650px) {

    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .header-content {
        min-height: 68px;
    }

    .header-button {
        display: none;
    }

    .hero {
        min-height: 680px;
    }

    .hero-text {
        padding-bottom: 110px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 15vw, 4.5rem);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat,
    .hero-stat:not(:first-child) {
        padding: 10px 0;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-stat:last-child {
        border-bottom: 0;
    }

    .hero-stat span {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 310px;
        padding: 30px;
    }

    .service-link {
        left: 30px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step,
    .process-step:not(:first-child) {
        min-height: auto;

        padding: 25px 0;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .process-step:first-child {
        padding-top: 25px;
    }

    .process-step:last-child {
        border-bottom: 0;
    }

    .process-number {
        margin-bottom: 35px;
    }

    .about-values {
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        padding-bottom: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

