/*
 * HOME PAGE STYLES
 * 
 * EASY CUSTOMIZATION GUIDE:
 * Edit the CSS variables below to customize fonts, colors, spacing, and sizes
 * All values are centralized here for quick adjustments
 */

:root {
    /* Typography */
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --heading-size: 4rem;
    --heading-weight: 500;
    --heading-letter-spacing: -0.02em;
    --heading-line-height: 1.1;

    --description-size: 1.125rem;
    --description-weight: 350; /* Aumenta el grosor */
    --description-letter-spacing: 0.018em; /* Añade espacio entre letras */
    --description-line-height: 1.6;
    --small-text-size: 0.875rem;

    /* Colors */
    --bg-color: #000;
    --text-color: #fff;
    --button-bg: #fff;
    --button-text: #000;
    --button-hover-bg: #e0e0e0;

    /* Spacing */
    --heading-margin-bottom: 2.5rem;
    --description-margin-bottom: 4rem;
    --button-margin-bottom: 8rem;
    --container-padding-left: 3rem;
    --page-padding-top: 4rem;
    --page-padding-sides: 2rem;

    /* Button */
    --button-padding: 1rem 1.4rem;
    --button-font-weight: 600;
    --button-letter-spacing: 0.05em;

    /* Layout */
    --container-max-width: 600px;
    --description-max-width: 500px;
    
    /* Footer */
    --footer-margin-top: 3rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    :root {
        --heading-size: 2.5rem;
        --heading-margin-bottom: 2rem;
        --description-size: 1rem;
        --description-margin-bottom: 3rem;
        --button-margin-bottom: 4rem;
        --container-padding-left: 1rem;
    }
}

/* ============================================
   BASE STYLES (edit with caution)
   ============================================ */

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: var(--page-padding-top) var(--page-padding-sides) var(--page-padding-sides) var(--page-padding-sides);
    cursor: none;
}

body * {
    cursor: inherit;
}

.container {
    max-width: var(--container-max-width);
    padding-left: var(--container-padding-left);
}

h1 {
    font-size: var(--heading-size);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-letter-spacing);
    margin-bottom: var(--heading-margin-bottom);
    line-height: var(--heading-line-height);
}

.description {
    font-size: var(--description-size);
    font-weight: var(--description-weight);      /* Ajuste de grosor */
    letter-spacing: var(--description-letter-spacing); /* Espacio letras */
    color: var(--text-color);
    line-height: var(--description-line-height);
    margin-bottom: var(--description-margin-bottom);
    max-width: var(--description-max-width);
}

.cta-button {
    display: inline-block;
    padding: var(--button-padding);
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    text-decoration: none;
    font-size: var(--small-text-size);
    font-weight: var(--button-font-weight);
    letter-spacing: var(--button-letter-spacing);
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: var(--button-margin-bottom);
}

.cta-button:hover {
    background: var(--button-hover-bg);
}

.download-cv {
    position: fixed;
    top: var(--page-padding-top);
    right: var(--page-padding-sides);
    font-size: var(--small-text-size);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.download-cv:hover {
    opacity: 0.7;
}

.footer {
    position: fixed;
    bottom: var(--page-padding-sides);
    left: calc(var(--page-padding-sides) + var(--container-padding-left));
    font-size: var(--small-text-size);
    color: var(--text-color);
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.credits {
    position: fixed;
    bottom: var(--page-padding-sides);
    right: var(--page-padding-sides);
    font-size: var(--small-text-size);
    color: var(--text-color);
}

/* Custom Rotating Cursor */
#cursor {
    position: absolute;
    left: -28px;
    top: -34px;
    will-change: transform;
    transform: translate(-999px, -999px);
    pointer-events: none;
    z-index: 9999;
}

#cursor img {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ============================================
   EMOJI WITH PARALLAX
   ============================================ */

#emoji {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 0 1rem 0;
    padding: 0;
    list-style: none;
    transform: translate3d(0, 0, 0);
}

.layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.face {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 80px;
    height: 80px;
    background-color: #FECA32;
    border-radius: 100%;
    box-shadow: inset rgba(0, 0, 0, 0.4) 0 0 10px;
}

.shine {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 67px;
    height: 72px;
    background: linear-gradient(to bottom, #FFFFFF, rgba(255,255,255,0) 50%, rgba(255,255,255,0));
    border-radius: 100%;
    opacity: 0.8;
}

.eye {
    width: 8px;
    height: 13px;
    background-color: #A1620F;
    border-radius: 100%;
    box-shadow: inset rgba(0, 0, 0, 0.5) 0 2px 4px, rgba(255, 255, 255, 0.2) 0 1px 0 1px;
    animation: blink 5s infinite;
}

.eye.left {
    position: absolute;
    top: 0;
    bottom: 14px;
    right: 24px;
    left: 0;
    margin: auto;
}

.eye.right {
    position: absolute;
    top: 0;
    bottom: 14px;
    left: 24px;
    right: 0;
    margin: auto;
}

.mouth {
    position: absolute;
    top: 31px;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    overflow: hidden;
    width: 33px;
    height: 17px;
    transform: translate3d(0, 0, 0);
}

.mouth:before {
    position: absolute;
    top: 0;
    bottom: 3px;
    right: 0;
    left: 0;
    margin: auto;
    content: "";
    width: 100%;
    height: 100%;
    background-color: #6E440B;
    border-radius: 100%;
    box-shadow: rgba(255, 255, 255, 0.25) 0 1px 0;
    transform: scale(1.0);
}

.mouth:after {
    position: absolute;
    top: 0;
    bottom: 9px;
    left: 0;
    right: 0;
    margin: auto;
    content: "";
    width: calc(100% - 7px);
    height: 100%;
    background-color: #FECA32;
    border-radius: 100%;
    box-shadow: rgba(0, 0, 0, 0.8) 0 1px 1px -1px;
    transform-origin: 50% 100%;
    transform: scale(1.6);
}

@keyframes blink {
    0%, 96% { transform: scaleY(1.0) }
    98% { transform: scaleY(0.1); }
    100% { transform: scaleY(1.0); }
}

/* Mobile emoji adjustments */
@media (max-width: 768px) {
    #emoji {
        width: 60px;
        height: 60px;
        margin: 0 0 0.75rem 0;
    }
    
    .face {
        width: 60px;
        height: 60px;
    }
    
    .shine {
        width: 50px;
        height: 54px;
    }
    
    .eye {
        width: 6px;
        height: 10px;
    }
    
    .eye.left {
        bottom: 10px;
        right: 18px;
    }
    
    .eye.right {
        bottom: 10px;
        left: 18px;
    }
    
    .mouth {
        top: 23px;
        width: 25px;
        height: 13px;
    }
    
    .mouth:before {
        bottom: 2px;
    }
    
    .mouth:after {
        bottom: 7px;
        width: calc(100% - 5px);
    }
}
