/**
 * Inversiones Castillo LLC
 * Core Reset, Editorial Layout & Typography System
 */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tactile Minimal Dot Grid Canvas */
body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    content: '';
    opacity: 0.055;
    background-image: radial-gradient(rgba(255, 255, 255, 0.45) 0.5px, transparent 0.5px);
    background-size: 6px 6px;
}

/* Subtle Cursor Glow (Desktop Only) */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(245, 179, 22, 0.07) 0%, rgba(220, 38, 38, 0.02) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

@media (pointer: coarse) {
    .cursor-glow {
        display: none;
    }
}

::selection {
    background-color: var(--gold);
    color: #000;
}

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

button, a, summary {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

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

/* Container Shell */
.container {
    width: min(var(--shell-max), calc(100% - var(--shell-padding) * 2));
    margin-inline: auto;
}

.section {
    padding-block: clamp(75px, 9vw, 130px);
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--line);
}

/* Modern Editorial Section Header */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: clamp(36px, 5vw, 68px);
}

@media (max-width: 860px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

.section-header-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow-mark {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: var(--gold);
    transform: rotate(45deg);
}

.eyebrow-mark.mark-crimson {
    background: var(--crimson);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.94;
    margin: 0;
    color: #fff;
}

.section-title .kinetic-line--accent {
    display: block;
    margin-top: 0.1em;
    color: var(--gold);
}

.section-title .kinetic-line--crimson {
    display: block;
    margin-top: 0.1em;
    color: var(--crimson-light);
}

.section-subtitle {
    width: min(100%, 360px);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 860px) {
    .section-subtitle {
        width: 100%;
    }
}
