/* ==========================================================================
           1. CSS Variables & Theme
           ========================================================================== */
:root {
    --color-brand-green: #A6CE39;
    --color-brand-blue: #3165B0;
    --color-brand-dark: #16161D;
    --color-brand-gray: #787878;
    --color-brand-light: #F6F6F6;
    --color-brand-text: #1A1C1E;
    --color-brand-subtext: #696969;

    --font-sans: 'Roboto Flex', sans-serif;
    --font-condensed: 'Roboto Condensed', sans-serif;

    --border-color: #d1d5db;
    /* Gris claro para bordes */
    --max-width: 1280px;

    letter-spacing: -0.25px;
}

/* ==========================================================================
           2. Modern CSS Reset
           ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-sans);
    color: var(--color-brand-text);
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
           3. Layout & Utility Classes
           ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0.75rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

p {
    text-wrap: balance;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.flex-grow {
    flex-grow: 1;
}

/* ==========================================================================
           4. Component Styles
           ========================================================================== */

/* Header Principal */
.site-header {
    padding-left: 1rem;
    padding-right: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.header-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .header-layout {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem 0;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo img {
    width: 50px;
    height: 40px;
    flex-shrink: 0;
}

.brand-titles h1 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.brand-titles span {
    font-size: 0.875rem;
    font-weight: 400;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-brand-gray);
    font-weight: 500;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.btn-action:hover {
    opacity: 0.8;
    color: var(--color-brand-blue);
}

/* Navegación */
.site-nav {
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .nav-list {
        gap: 2rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-brand-subtext);
    transition: color 0.2s ease;
}

.nav-link.highlight {
    color: var(--color-brand-gray);
}

.nav-link:hover {
    color: var(--color-brand-blue);
}

/* Hero Section */
.hero-section {
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 5rem 0;
    }
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

@media (min-width: 768px) {
    .hero-layout {
        flex-direction: row;
        gap: 5rem;
    }
}

.hero-graphic {
    position: relative;
    width: 16rem;
    height: 14rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .hero-graphic {
        width: 18rem;
        height: 15rem;
    }
}

.hero-graphic svg {
    position: absolute;
    top: 0;
}

.hero-graphic svg:nth-child(1) {
    left: 4rem;
}

.hero-graphic svg:nth-child(2) {
    left: 8rem;
}

@media (min-width: 768px) {
    .hero-graphic svg:nth-child(2) {
        left: 9rem;
    }
}

.hero-graphic svg:nth-child(3) {
    left: 0;
}

.hero-title {
    font-family: var(--font-condensed);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #000;
    max-width: 42rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
        text-align: left;
    }
}

/* Information Section (What we do / Who we are) */
.info-section {
    background-color: var(--color-brand-light);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .info-section {
        padding: 5rem 0;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
    }
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.45rem;
    border-top: 6px solid var(--color-brand-gray);
}

.info-card.blue-top {
    border-top: 6px solid var(--color-brand-blue);
}

.info-card.green-top {
    border-top: 6px solid var(--color-brand-green);
}

.info-card h3 {
    font-family: var(--font-condensed);
    font-size: 2.25rem;
    font-weight: 700;
    color: #000;
}

@media (min-width: 768px) {
    .info-card h3 {
        font-size: 3rem;
    }
}

.info-card p,
.info-card ul {
    font-size: 0.875rem;
    color: #000;
    line-height: 1.6;
}

.info-card.text-justify p {
    text-align: justify;
}

.info-card ul li {
    margin-bottom: 0.5rem;
}

/* Partner Section (Dark Mode) */
.partner-section {
    background-color: var(--color-brand-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .partner-section {
        padding: 6rem 0;
    }
}

.partner-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

@media (min-width: 768px) {
    .partner-layout {
        flex-direction: row;
    }
}

.partner-text-content {
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .partner-text-content {
        text-align: left;
    }
}

.partner-text-content h2 {
    font-family: var(--font-condensed);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: #F4F4F4;
}

@media (min-width: 768px) {
    .partner-text-content h2 {
        font-size: 3.75rem;
    }
}

.partner-text-content p {
    font-size: 0.9375rem;
    /* 15px */
    line-height: 1.6;
    color: #F4F4F4;
}

.partner-logo {
    position: relative;
    width: 16rem;
    height: 16rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .partner-logo {
        width: 270px;
        height: 270px;
    }
}

.partner-logo svg {
    width: 100%;
    height: 100%;
}

/* Footer */
.site-footer {
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-brand-logo {
    position: relative;
    width: 6rem;
    height: 4rem;
    flex-shrink: 0;
}

.footer-brand-logo svg {
    position: absolute;
    top: 0;
}

.footer-brand-logo svg:nth-child(1) {
    left: 1.25rem;
}

.footer-brand-logo svg:nth-child(2) {
    left: 2.5rem;
}

.footer-brand-logo svg:nth-child(3) {
    left: 0;
}

.footer-brand-text {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand-text {
        text-align: left;
    }
}

.footer-brand-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-brand-gray);
    line-height: 1.2;
}

.footer-brand-text span {
    font-size: 0.875rem;
    color: var(--color-brand-gray);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .footer-nav {
        align-items: flex-end;
    }
}

.footer-nav h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-brand-subtext);
    margin-bottom: 0.5rem;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer-nav-list {
        align-items: flex-end;
    }
}

.footer-nav-link {
    font-size: 0.75rem;
    color: var(--color-brand-subtext);
    transition: color 0.2s ease;
}

.footer-nav-link.highlight {
    color: var(--color-brand-gray);
}

.footer-nav-link:hover {
    color: var(--color-brand-blue);
}

.text-right {
    text-align: right;
}

@media (min-width: 1024px) {

    /* Forzar el orden específico en desktop como en el diseño original */
    .footer-nav-products {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-nav-general {
        grid-column: 3;
    }
}