/* --- 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;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- ESTRUCTURA GREENCHEM --- */
.width-lock {
    max-width: var(--max-width);
    margin: auto;
}

main.width-lock {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* --- HERO / BANNER (Estructura Greenchem) --- */
.hero.banner-wrapper {
    position: relative;
    height: 50vh;
    height: 50dvh;
    min-height: 380px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .hero.banner-wrapper {
        min-height: 340px;
        padding: 24px 0;
    }
}

@media (max-width: 768px) {
    .hero.banner-wrapper {
        height: auto;
        min-height: 300px;
        padding: 24px 0;
    }
}

@media (max-width: 480px) {
    .hero.banner-wrapper {
        min-height: 260px;
        padding: 20px 0;
    }
}

@media (max-width: 360px) {
    .hero.banner-wrapper {
        min-height: 220px;
        padding: 16px 0;
    }
}

.banner-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.banner-media video,
.banner-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

/* Banner text content - Secondary Butanol hero */
.banner-text-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-logo-box {
    background: #ffffff;
    padding: 12px 24px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.banner-logo {
    height: 42px;
    width: auto;
    display: block;
}

.banner-title-primary {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    color: #333333;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.1em 0;
    line-height: 0.95;
}

.banner-title-secondary {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 600;
    color: #333333;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.4em 0;
    line-height: 1;
}

.banner-subheading {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 500;
    color: #555555;
    margin: 0 0 1em 0;
    line-height: 1.4;
}

.banner-description {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 400;
    color: #666666;
    line-height: 1.75;
    margin: 0;
    max-width: 640px;
    text-align: left;
}

@media (max-width: 768px) {
    .banner-text-content {
        padding: 0 20px;
    }

    .banner-logo {
        height: 36px;
    }

    .banner-logo-box {
        padding: 10px 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .banner-text-content {
        padding: 0 16px;
    }

    .banner-logo {
        height: 32px;
    }

    .banner-logo-box {
        padding: 8px 16px;
        margin-bottom: 16px;
    }

    .banner-title-primary {
        font-size: 2.2rem;
    }

    .banner-title-secondary {
        font-size: 1.6rem;
    }

    .banner-subheading {
        font-size: 0.95rem;
    }

    .banner-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .banner-text-content {
        padding: 0 12px;
    }

    .banner-logo {
        height: 28px;
    }

    .banner-title-primary {
        font-size: 1.9rem;
    }

    .banner-title-secondary {
        font-size: 1.4rem;
    }

    .banner-subheading {
        font-size: 0.9rem;
    }

    .banner-description {
        font-size: 0.85rem;
    }
}

.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: 240px;
    }

    .secondary-hero-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .secondary-hero {
        height: 180px;
    }

    .hero-title-large {
        font-size: 2.8rem;
    }

    .hero-title-small {
        font-size: 1.2rem;
    }

    .secondary-hero-content {
        padding: 0 16px;
    }
}

@media (max-width: 360px) {
    .secondary-hero {
        height: 160px;
    }

    .hero-title-large {
        font-size: 2.4rem;
    }

    .hero-title-small {
        font-size: 1.1rem;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-width: 0;
}

/* --- 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 {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.industrial-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 580px;
    display: block;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1024px) {
    .industrial-image img {
        max-height: 460px;
    }
}

@media (max-width: 768px) {
    .industrial-image {
        max-width: 480px;
        margin: 0 auto;
    }

    .industrial-image img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .industrial-image {
        max-width: 320px;
    }

    .industrial-image img {
        max-height: 240px;
    }
}

@media (max-width: 360px) {
    .industrial-image {
        max-width: 280px;
    }

    .industrial-image img {
        max-height: 200px;
    }
}

/* --- LONG-TERM SECTION (Banner style) --- */
.long-term-section {
    padding: 0 0 60px 0;
}

.long-term-banner {
    position: relative;
    min-height: 320px;
    width: calc(100% - 680.016px);
    max-width: 100%;
    margin-left: 340.008px;
    margin-right: 340.008px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.long-term-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../res/imgs/imagen-3.webp');
    background-size: cover;
    background-position: center;
    filter: grayscale(70%) blur(2px);
    z-index: 0;
}

.long-term-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

.long-term-content-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 56px 24px;
    max-width: 700px;
    margin: 0 auto;
}

.long-term-header {
    margin-bottom: 24px;
}

.long-term-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

.long-term-title-green {
    color: var(--primary-green);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.long-term-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    margin: 0;
}

.long-term-btn-wrapper {
    text-align: center;
    padding: 32px 340.008px 0 340.008px;
}

.long-term-btn {
    border-radius: 8px;
}

@media (max-width: 1400px) {
    .long-term-banner {
        width: calc(100% - 160px);
        margin-left: 80px;
        margin-right: 80px;
    }

    .long-term-btn-wrapper {
        padding: 32px 80px 0 80px;
    }
}

@media (max-width: 768px) {
    .long-term-banner {
        min-height: 280px;
        width: calc(100% - 48px);
        margin-left: 24px;
        margin-right: 24px;
    }

    .long-term-content-inner {
        padding: 44px 20px;
    }

    .long-term-btn-wrapper {
        padding: 24px 24px 0 24px;
    }

    .long-term-section {
        padding-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .long-term-banner {
        min-height: 220px;
        width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }

    .long-term-content-inner {
        padding: 36px 16px;
    }

    .long-term-btn-wrapper {
        padding: 20px 16px 0 16px;
    }

    .long-term-section {
        padding-bottom: 40px;
    }

    .long-term-title {
        font-size: 1.4rem;
    }

    .long-term-title-green {
        font-size: 1.6rem;
    }

    .long-term-text {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .long-term-banner {
        width: calc(100% - 24px);
        margin-left: 12px;
        margin-right: 12px;
        min-height: 200px;
    }

    .long-term-content-inner {
        padding: 28px 12px;
    }

    .long-term-btn-wrapper {
        padding: 16px 12px 0 12px;
    }
}

/* --- 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;
    overflow: hidden;
    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: 480px;
    }
}

@media (max-width: 480px) {
    .quote-section.newsletter-section {
        min-height: auto;
    }
}

/* 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;
    min-width: 0;
}

@media (max-width: 768px) {
    .newsletter-left {
        padding: 50px 5%;
    }
}

@media (max-width: 480px) {
    .newsletter-left {
        padding: 40px 20px;
    }
}

.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;
    min-width: 0;
}

@media (max-width: 768px) {
    .newsletter-right {
        padding: 50px 5%;
    }
}

@media (max-width: 480px) {
    .newsletter-right {
        padding: 40px 20px;
    }

    .newsletter-content-right {
        max-width: 100%;
    }
}

.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;
    min-width: 0;
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
    }
}

.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#footer {
        padding: 48px 0;
    }

    .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%);
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    footer#footer {
        padding: 40px 0;
    }

    .footer-container {
        gap: 32px;
    }

    .footer-watermark {
        font-size: 4rem;
    }

    .footer-company-name {
        font-size: 1.2rem;
    }

    .footer-logo {
        height: 38px;
    }

    .footer-info,
    .footer-links {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .footer-watermark {
        font-size: 3rem;
    }

    .footer-company-name {
        font-size: 1.1rem;
    }
}

/* --- RESPONSIVE GLOBAL --- */
@media (max-width: 1200px) {
    .grid-2 {
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .grid-2,
    .aligned-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .industrial-content p {
        max-width: 100%;
    }

    .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;
    }

    .grid-2 {
        gap: 36px;
    }

    .btn {
        padding: 12px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 48px 0;
    }

    .hero-title-large {
        font-size: 3rem;
    }

    .hero-title-small {
        font-size: 1.2rem;
    }

    .award-title-line {
        font-size: 1.25rem;
    }

    .industrial-content p,
    .aligned-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .newsletter-title-left,
    .newsletter-title-right {
        font-size: 1.6rem;
    }

    .newsletter-text {
        font-size: 1rem;
    }

    .whatsapp-btn {
        font-size: 1rem;
    }

    .whatsapp-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }

    .grid-2 {
        gap: 28px;
    }
}

@media (max-width: 360px) {
    .section-padding {
        padding: 40px 0;
    }

    .award-title-line {
        font-size: 1.15rem;
    }

    .newsletter-title-left,
    .newsletter-title-right {
        font-size: 1.4rem;
    }
}