/* Variables de Color y Tipografía */
:root {
    --bg-color: #f4f2f2;
    --brand-color: #60bfba;
    --accent-color: #f16169;
    --white: #ffffff;
    --text-color: #1f1011;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --base-font-size: 16px;
}

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

html {
    font-size: var(--base-font-size);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Contenedor centralizado para el contenido */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Alternancia de fondos de lado a lado */
.site-section {
    width: 100%;
    padding: 4rem 0;
}

.page-content .site-section:nth-child(odd) {
    background-color: var(--white);
}

.page-content .site-section:nth-child(even) {
    background-color: var(--bg-color);
}

/* Títulos H2 de Sección (Sin text-transform: uppercase para mantener Title Case) */
.section-title {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-weight: 800;
    color: var(--brand-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 0.5rem;
}

/* 1. HERO SECTION */
.hero-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-avatar {
    width: 260px;
    height: 260px;
    max-width: 300px;
    max-height: 300px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 4px solid var(--brand-color);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text {
    max-width: 800px;
}

.tagline {
    display: block;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--brand-color);
    margin-bottom: 0.75rem;
}

.name {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.3;
}

/* 2. SECCIÓN DE BOLETÍN */
.newsletter-embed {
    max-width: 500px;
}

.substack-iframe {
    width: 100%;
    height: 320px;
    border: none;
    background: transparent;
}

/* 3. BIOGRAFÍA */
.bio-heading {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 900px;
}

.bio-text p {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    max-width: 850px;
}

.cta-wrapper {
    margin-top: 2rem;
}

.btn-accent {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-accent:hover {
    background-color: #d64d55;
}

/* 4. LOGOTIPOS (ACTUALIZADO: HASTA 200PX DE ANCHO) */
.logos-inline-container {
    width: 100%;
    overflow-x: auto;
}

.logos-inline-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
}

.logos-inline-track img {
    max-width: 200px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.2s ease;
}

.logos-inline-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* 5. SERVICIOS Y HERRAMIENTAS */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.swiss-list {
    list-style: none;
}

.swiss-list li {
    font-size: 1.05rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dcd9d9;
}

.swiss-list li:first-child {
    border-top: 1px solid #dcd9d9;
}

/* FOOTER */
.footer {
    padding: 3rem 0;
    background-color: var(--text-color);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 850px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .hero-avatar {
        width: 200px;
        height: 200px;
    }
}