/* --- VARIABLES DE GREENCHEM --- */
:root {
    --primary-green: #0BA14A;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --max-width: 1920px;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('../res/fonts/SofiaPro/sofiapro-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('../res/fonts/SofiaPro/sofiapro-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('../res/fonts/SofiaPro/sofiapro-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

body {
    font-family: 'Sofia Pro', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- ESTRUCTURA GREENCHEM --- */
.width-lock {
    max-width: var(--max-width);
    margin: auto;
}

main.width-lock {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HERO / BANNER (Estructura Greenchem) --- */
.hero.banner-wrapper {
    position: relative;
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero.banner-wrapper {
        height: auto;
        min-height: 400px;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .hero.banner-wrapper {
        height: auto;
        min-height: 300px;
        aspect-ratio: 4 / 3;
    }
}

.banner-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.banner-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.banner-title-container {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-h1 {
    font-size: 6rem;
    line-height: 0.85;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -3px;
}

.hero-h1 .light {
    font-weight: 300;
}

.hero-h1 .bold {
    font-weight: 800;
    color: var(--primary-green);
}

.hero-sub {
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 15px;
    letter-spacing: 8px;
    opacity: 0.9;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .hero-h1 {
        font-size: 4rem;
    }

    .hero-sub {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    .banner-title-container {
        left: 5%;
        top: 50%;
        text-align: center;
        width: 90%;
    }

    .hero-h1 {
        font-size: 3.5rem;
    }
}

/* --- SECCIONES --- */
.section-padding {
    padding: 100px 0;
}

/* --- SECONDARY HERO --- */
.secondary-hero {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.secondary-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.secondary-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.hero-title-large {
    font-size: 8rem;
    font-weight: 800;
    color: #333;
    line-height: 0.8;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -5px;
}

.hero-title-small {
    font-size: 3rem;
    font-weight: 300;
    color: #333;
    text-transform: uppercase;
    margin: 0;
}

@media (max-width: 768px) {
    .hero-title-large {
        font-size: 4rem;
        letter-spacing: -2px;
    }

    .hero-title-small {
        font-size: 1.5rem;
    }

    .secondary-hero {
        height: 300px;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* --- HEADER DE SECCIÓN (Estilo Greenchem) --- */
.award-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.arrow-icon.triangle-icon {
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 20px solid var(--primary-green);
    margin-top: 5px;
    flex-shrink: 0;
}

.award-title-line {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-green-vibrant {
    color: var(--primary-green);
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-vibrant {
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 0;
    /* Rectangular como en la imagen */
}

.btn-vibrant:hover {
    background-color: #008a3d;
    transform: translateY(-2px);
}

/* --- SECCIÓN INDUSTRIAL --- */
.industrial-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    max-width: 550px;
}

.industrial-image img {
    width: 100%;
    border-radius: 0;
}

/* --- SECCIÓN ALIGNED (Staggered Images) --- */
.aligned-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 70px;
    align-items: center;
}

.staggered-images {
    position: relative;
    height: 550px;
    width: 100%;
}

.img-large {
    width: 340px;
    max-width: 80%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.img-small {
    width: 280px;
    max-width: 60%;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
}

.staggered-images img {
    box-shadow: none;
}

.aligned-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

/* --- QUOTE SECTION (Estilo Newsletter Greenchem 2 Columnas) --- */
.quote-section.newsletter-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    background-image: url('../res/imgs/imagen-get-a-quote.png');
    background-size: cover;
    background-position: center;
}

@media (min-width: 900px) {
    .quote-section.newsletter-section {
        flex-direction: row;
        min-height: 600px;
    }
}

/* Left Side */
.newsletter-left {
    flex: 1.2;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 80px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.newsletter-content-left {
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.newsletter-title-left {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

.highlight-green-box {
    color: #0BA14A;
    background-color: transparent;
    padding: 0;
    font-weight: 800;
}

.newsletter-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    background-color: #0BA14A;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    width: fit-content;
    transition: transform 0.3s ease;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.whatsapp-btn:hover {
    transform: scale(1.03);
}

.whatsapp-icon-bg {
    background-color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    color: #0BA14A;
}

.whatsapp-text {
    padding: 0 20px;
}

/* Right Side */
.newsletter-right {
    flex: 1;
    background-color: #f2f2f2;
    padding: 80px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.newsletter-content-right {
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.newsletter-title-right {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.newsletter-input {
    padding: 12px 15px;
    border: 1px solid #999;
    border-radius: 0;
    font-size: 1rem;
    outline: none;
    background: white;
    width: 100%;
    font-family: 'Sofia Pro', sans-serif;
}

.newsletter-input:focus {
    border-color: #0BA14A;
}

.newsletter-submit-btn {
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid #0BA14A;
    color: #0BA14A;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    margin: 10px auto 0 0;
}

@media (max-width: 900px) {
    .newsletter-submit-btn {
        margin: 10px auto;
        width: 100%;
    }
}

.newsletter-submit-btn:hover {
    background-color: #0BA14A;
    color: white;
}

/* --- FOOTER (Estilo Nuevo) --- */
footer#footer {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    padding: 60px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.footer-left {
    position: relative;
    display: flex;
    flex-direction: column;
}

.footer-watermark {
    font-size: 8rem;
    font-weight: 900;
    color: #f7f7f7;
    line-height: 1;
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    user-select: none;
    letter-spacing: -5px;
}

.footer-company-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 5px;
}

.footer-info {
    font-size: 0.9rem;
    color: #888;
}

.footer-links {
    font-size: 0.9rem;
    color: #888;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0BA14A;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-right {
        text-align: center;
        align-items: center;
    }

    .footer-watermark {
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

    .grid-2,
    .aligned-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .staggered-images {
        height: 400px;
    }

    .img-large {
        width: 250px;
    }

    .img-small {
        width: 200px;
    }

    .form-container.newsletter-right {
        width: 100%;
        margin-right: 0;
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .award-title-line {
        font-size: 1.4rem;
    }

    .mobile-reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .award-header {
        gap: 10px;
    }

    .arrow-icon.triangle-icon {
        border-top-width: 15px;
        border-bottom-width: 15px;
        border-left-width: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title-large {
        font-size: 3rem;
    }

    .hero-title-small {
        font-size: 1.2rem;
    }

    .newsletter-title-left,
    .newsletter-title-right {
        font-size: 1.8rem;
    }

    .whatsapp-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .footer-watermark {
        font-size: 4rem;
    }

    .footer-company-name {
        font-size: 1.2rem;
    }
}