:root {
    /* Paleta de colores: Nueces, Almendras, Castañas, Maní */
    --color-walnut-dark: #2A1A12;   /* Fondo muy oscuro, cáscara nuez */
    --color-walnut-light: #5A3A22;  /* Marrón medio */
    --color-peanut-red: #7A3B22;    /* Piel del maní */
    --color-almond-warm: #8A6242;   /* Cáscara almendra */
    --color-cashew-light: #F4E5C2;  /* Interior claro castaña/almendra */
    --color-cashew-mid: #E8D5B5;    /* Tono crema cálido */

    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--color-walnut-dark);
    color: var(--color-cashew-light);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Preloader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-walnut-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(244, 229, 194, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-cashew-light);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Canvas Container */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through */
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content Overlay */
#main-content {
    position: relative;
    z-index: 10;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    position: relative;
}

/* Hero Section */
.hero-section {
    align-items: center;
    text-align: center;
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.5));
}

.hero-text .subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--color-cashew-mid);
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-almond-warm);
    color: var(--color-walnut-dark);
    box-shadow: 0 10px 20px rgba(138, 98, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(138, 98, 66, 0.5);
    background-color: var(--color-cashew-mid);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-cashew-light);
    border: 2px solid var(--color-peanut-red);
    box-shadow: 0 10px 20px rgba(122, 59, 34, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(122, 59, 34, 0.3);
    background-color: rgba(122, 59, 34, 0.15);
    border-color: var(--color-cashew-mid);
    color: var(--color-cashew-mid);
}

/* Info Sections */
.text-block {
    background: rgba(42, 26, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 229, 194, 0.1);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.text-block h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-cashew-light);
}

.text-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-cashew-mid);
}

.text-block.left {
    align-self: flex-start;
}

.text-block.right {
    align-self: flex-end;
}

.text-block.center {
    align-self: center;
    text-align: center;
}

.footer-spacer {
    height: 50vh;
}
