/* ============================================
   MEXICALI NORTEÑO - BRUTALISMO EDITORIAL
   ============================================ */

/* Variables de diseño */
:root {
    --logo-color: #1a1a1a;
    --accent: #83459a;
    --accent-light: #a05ebf;
    --bg-light: #f2f2f2;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-body: #2a2a2a;
    --text-muted: #555555;
    --border-brutal: #1a1a1a;
    --border-light: #cccccc;
    --shadow-brutal: 6px 6px 0px rgba(0, 0, 0, 0.85);
    --shadow-brutal-sm: 4px 4px 0px rgba(0, 0, 0, 0.85);
    --shadow-3d: 8px 8px 0px #1a1a1a;
    --font-mono: 'DM Mono', 'Courier New', monospace;
    --font-serif: 'PT Serif', Georgia, serif;
    --font-sans: 'Work Sans', 'Helvetica Neue', sans-serif;
    --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset y base */
* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-body);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-light);
}

strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   NAVBAR BRUTALISTA
   ============================================ */

.navbar-brutal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--border-brutal);
    height: auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition);
}

.navbar-brutal.navbar-scrolled {
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo-link {
    display: flex;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    padding: 8px 12px;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    background-color: transparent;
}

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

.btn-social-nav,
.btn-email-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid var(--border-brutal);
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: all var(--transition);
}

.btn-social-nav:hover {
    background-color: var(--accent);
    color: var(--bg-white);
    border-color: var(--accent);
}

.btn-email-nav:hover {
    background-color: var(--text-dark);
    color: var(--bg-white);
    border-color: var(--text-dark);
}

.btn-social-nav .material-icons,
.btn-email-nav .material-icons {
    font-size: 20px;
}

.sidenav-trigger {
    cursor: pointer;
    color: var(--text-dark);
}

/* Sidebar móvil */
.sidenav {
    background-color: var(--bg-white);
    border-left: 3px solid var(--border-brutal);
}

.sidenav li > a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sidenav li > a:hover {
    background-color: var(--bg-light);
    color: var(--accent);
}

.sidenav-header {
    padding: 20px 16px;
    border-bottom: 2px solid var(--border-brutal);
    text-align: center;
}

.sidenav-logo {
    height: 48px;
    width: auto;
}

.sidenav-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   TAGS BRUTALISTAS
   ============================================ */

.tag-brutal {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background-color: #f3e8f8;
    border: 2px solid var(--accent);
    padding: 4px 14px;
    margin-bottom: 16px;
    user-select: none;
}

.tag-center {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SECCIÓN HERO / PORTADA
   ============================================ */

.section-hero {
    padding: 120px 0 80px;
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--border-brutal);
}

.hero-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--logo-color);
    margin: 0 0 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-dark);
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 28px;
}

.hero-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
}

.hero-image-col {
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: sticky;
    top: 100px;
}

.hero-image {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* ============================================
   SECCIONES DE CONTENIDO
   ============================================ */

.section-content {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--border-light);
}

.section-content.section-alt {
    background-color: var(--bg-light);
}

.section-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--logo-color);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.section-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
}

.section-highlight {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-left: 6px solid var(--accent);
    padding: 16px 20px;
    margin-top: 28px;
    background-color: #faf6fd;
}

.section-text-col {
    padding: 0 16px;
}

.section-image-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 16px;
}

.section-image {
    width: 100%;
    max-width: 460px;
    height: auto;
}

.flex-reverse {
    display: flex;
}

/* ============================================
   LISTA BRUTALISTA
   ============================================ */

.brutal-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.brutal-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-brutal);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.brutal-list li:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-brutal-sm);
}

.section-alt .brutal-list li {
    background-color: #fafafa;
}

.list-icon {
    color: var(--accent);
    font-size: 24px !important;
    flex-shrink: 0;
    margin-top: 2px;
}

.brutal-list li div {
    font-family: var(--font-serif);
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-body);
}

.brutal-list li div strong {
    font-family: var(--font-sans);
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    color: var(--text-dark);
}

/* ============================================
   IMÁGENES BRUTALISTAS
   ============================================ */

.brutal-image {
    border: 3px solid var(--border-brutal);
    box-shadow: var(--shadow-3d);
    transition: transform var(--transition), box-shadow var(--transition);
    object-fit: cover;
    filter: contrast(1.02) saturate(0.95);
}

.brutal-image:hover {
    transform: translate(-3px, -3px);
    box-shadow: 12px 12px 0px #1a1a1a;
}

.hero-image {
    border: 3px solid var(--border-brutal);
    box-shadow: 10px 10px 0px #1a1a1a;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-image:hover {
    transform: translate(-4px, -4px);
    box-shadow: 14px 14px 0px #1a1a1a;
}

.section-image {
    border: 3px solid var(--border-brutal);
    box-shadow: var(--shadow-3d);
    transition: transform var(--transition), box-shadow var(--transition);
}

.section-image:hover {
    transform: translate(-3px, -3px);
    box-shadow: 12px 12px 0px #1a1a1a;
}

/* ============================================
   CTA / LLAMADAS A LA ACCIÓN
   ============================================ */

.cta-brutal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.cta-brutal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 22px;
    border: 3px solid var(--border-brutal);
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.cta-brutal .material-icons {
    font-size: 18px;
}

.cta-fb {
    background-color: #f0e6f7;
    border-color: var(--accent);
    color: var(--accent);
}

.cta-fb:hover {
    background-color: var(--accent);
    color: var(--bg-white);
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-brutal-sm);
}

.cta-email {
    background-color: var(--logo-color);
    color: var(--bg-white);
    border-color: var(--logo-color);
}

.cta-email:hover {
    background-color: var(--bg-white);
    color: var(--logo-color);
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-brutal-sm);
}

.cta-large {
    font-size: 0.95rem;
    padding: 16px 28px;
}

.cta-large .material-icons {
    font-size: 22px;
}

/* ============================================
   SECCIÓN ÚNETE
   ============================================ */

.section-cta-final {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--border-brutal);
}

.cta-title {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--logo-color);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.cta-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.cta-final-row {
    justify-content: center;
    margin-top: 32px;
}

.cta-closing {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 32px;
    padding: 20px;
    border: 2px dashed var(--accent);
    display: inline-block;
}

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

.footer-brutal {
    background-color: var(--logo-color);
    color: #cccccc;
    padding: 48px 0 24px;
    border-top: 4px solid var(--accent);
}

.footer-row {
    margin-bottom: 24px;
}

.footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #999;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    text-align: right;
}

.footer-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #cccccc;
    text-decoration: none;
    margin-left: 20px;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--accent-light);
}

.footer-link .material-icons {
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 16px;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #777;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-image-col {
        margin-top: 32px;
    }
    
    .hero-image-wrapper {
        position: static;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .section-image-col {
        margin-bottom: 32px;
    }
    
    .section-image {
        max-width: 100%;
    }
    
    .flex-reverse {
        flex-direction: column-reverse;
    }
    
    .footer-links {
        text-align: left;
        margin-top: 16px;
    }
    
    .footer-link {
        margin-left: 0;
        margin-right: 20px;
    }
    
    .cta-brutal-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-brutal {
        justify-content: center;
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding-left: 14px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .brutal-list li {
        flex-direction: column;
        gap: 6px;
    }
    
    .brutal-list li div {
        padding-left: 0;
    }
    
    .section-hero {
        padding: 100px 0 48px;
    }
    
    .section-content {
        padding: 48px 0;
    }
    
    .section-cta-final {
        padding: 48px 0;
    }
    
    .cta-title {
        font-size: 1.6rem;
    }
    
    .cta-large {
        font-size: 0.85rem;
        padding: 14px 20px;
    }
    
    .cta-closing {
        font-size: 0.95rem;
    }
}

/* ============================================
   ANIMACIONES Y UTILIDADES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content,
.section-hero,
.section-cta-final {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Scrollbar para navegadores webkit */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-brutal);
    border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Mejoras de accesibilidad */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Imagen placeholder si no existe */
img[src$=".jpg"] {
    background-color: #e8e8e8;
    min-height: 200px;
}