/* =========================================================
   SITE.CSS — ETAPA 1
   Dra. Nasly Guacaneme
   Alcance: variables, base, tipografía, header y hero.
   Debe cargarse DESPUÉS de styles.css y modern-beige.css.
========================================================= */

:root {
    --nasly-bg: #f7f0e6;
    --nasly-bg-soft: #fbf7f1;
    --nasly-text: #322820;
    --nasly-muted: #75695d;
    --nasly-primary: #9b7b52;
    --nasly-primary-dark: #6f5637;
    --nasly-primary-soft: #d8c4a8;
    --nasly-border: rgba(111, 86, 55, 0.18);
    --nasly-shadow: 0 18px 45px rgba(69, 50, 28, 0.12);
    --nasly-header-height: 70px;
}

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

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

body {
    margin: 0;
    padding: 0;
    color: var(--nasly-text);
    background:
        radial-gradient(circle at 15% 10%, rgba(216, 196, 168, 0.45), transparent 30%),
        radial-gradient(circle at 85% 0%, rgba(181, 139, 90, 0.16), transparent 25%),
        linear-gradient(180deg, var(--nasly-bg-soft), var(--nasly-bg));
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(111, 86, 55, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 86, 55, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
}

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

section {
    background: transparent;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--nasly-primary-dark);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.7rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.8rem); }

p {
    color: var(--nasly-muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}

/* HEADER */
#nasly-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    height: var(--nasly-header-height);
    margin: 0;
    padding: 0;
    overflow: visible;
    background: rgba(252, 247, 239, 0.96);
    border-bottom: 1px solid rgba(116, 83, 48, 0.15);
    box-shadow: 0 5px 18px rgba(86, 63, 38, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#nasly-header .nasly-navigation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    height: var(--nasly-header-height);
    margin: 0 auto;
    padding: 0 20px;
}

#nasly-header .nasly-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

#nasly-header .nasly-menu li {
    margin: 0;
    padding: 0;
}

#nasly-header .nasly-menu a {
    display: block;
    padding: 10px 13px;
    color: #765635;
    background: transparent;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

#nasly-header .nasly-menu a:hover,
#nasly-header .nasly-menu a:focus-visible {
    color: #fff;
    background: #967143;
    transform: translateY(-1px);
    outline: none;
}

#nasly-header .nasly-menu-button {
    all: unset;
    position: absolute;
    top: 50%;
    right: 18px;
    z-index: 100001;
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(150, 113, 67, 0.08);
    cursor: pointer;
    transform: translateY(-50%);
}

#nasly-header .nasly-menu-button:hover,
#nasly-header .nasly-menu-button:focus-visible {
    background: rgba(150, 113, 67, 0.16);
    outline: 2px solid rgba(150, 113, 67, 0.35);
    outline-offset: 2px;
}

#nasly-header .nasly-menu-lines,
#nasly-header .nasly-menu-lines::before,
#nasly-header .nasly-menu-lines::after {
    position: absolute;
    display: block;
    width: 27px;
    height: 3px;
    border-radius: 10px;
    background: #755535;
    transition: transform 0.25s ease, top 0.25s ease, background 0.25s ease;
}

#nasly-header .nasly-menu-lines {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#nasly-header .nasly-menu-lines::before,
#nasly-header .nasly-menu-lines::after {
    content: "";
    left: 0;
}

#nasly-header .nasly-menu-lines::before { top: -8px; }
#nasly-header .nasly-menu-lines::after { top: 8px; }

#nasly-header .nasly-menu-button.is-open .nasly-menu-lines { background: transparent; }
#nasly-header .nasly-menu-button.is-open .nasly-menu-lines::before {
    top: 0;
    transform: rotate(45deg);
}
#nasly-header .nasly-menu-button.is-open .nasly-menu-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    min-height: 88vh;
    padding: 130px 20px 76px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 46px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hero-text {
    flex: 1 1 560px;
    text-align: left;
}

.hero-text h1,
.hero-text h2,
.hero-text p {
    text-shadow: none;
}

.hero-text h1 { margin-bottom: 18px; }

.hero-text p {
    max-width: 680px;
    margin-bottom: 18px;
    color: var(--nasly-primary-dark);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-text h2 {
    margin-bottom: 28px;
    color: var(--nasly-muted);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 600;
}

.button-container { margin-top: 22px; }

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--nasly-primary), var(--nasly-primary-dark));
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    box-shadow: 0 12px 25px rgba(111, 86, 55, 0.22);
    font-weight: 800;
    text-decoration: none;
    text-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 17px 32px rgba(111, 86, 55, 0.28);
    outline: none;
}

.hero-image {
    flex: 0 1 430px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: min(390px, 88vw);
    height: min(470px, 90vw);
    object-fit: cover;
    border: 10px solid rgba(255, 250, 243, 0.86);
    border-radius: 36px;
    box-shadow: var(--nasly-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(69, 50, 28, 0.17);
}

@media (max-width: 768px) {
    :root { --nasly-header-height: 64px; }

    html { scroll-padding-top: 76px; }

    #nasly-header .nasly-navigation {
        justify-content: flex-end;
        padding: 0 12px;
    }

    #nasly-header .nasly-menu-button {
        top: 32px;
        right: 14px;
        display: block;
        width: 44px;
        height: 44px;
    }

    #nasly-header .nasly-menu {
        position: fixed;
        top: 64px;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        width: 100%;
        max-height: 0;
        margin: 0;
        padding: 0 18px;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        background: rgba(252, 247, 239, 0.99);
        border-bottom: 1px solid rgba(116, 83, 48, 0.15);
        box-shadow: 0 12px 24px rgba(86, 63, 38, 0.12);
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease, visibility 0.3s ease;
    }

    #nasly-header .nasly-menu.is-open {
        max-height: 450px;
        padding: 18px;
        visibility: visible;
        opacity: 1;
    }

    #nasly-header .nasly-menu li { width: 100%; }

    #nasly-header .nasly-menu a {
        width: 100%;
        padding: 14px;
        color: #6d4e2f;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .hero {
        min-height: auto;
        padding: 100px 16px 54px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        flex-basis: auto;
        width: 100%;
        text-align: center;
    }

    .hero-text h1 {
        margin-top: 0;
        font-size: clamp(2.15rem, 12vw, 3.45rem);
    }

    .hero-text p {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .hero-text h2 { font-size: clamp(1.55rem, 8vw, 2.1rem); }

    .hero-image { width: 100%; }

    .hero-image img {
        width: min(340px, 92vw);
        height: min(430px, 112vw);
        border-width: 7px;
        border-radius: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hero-text p { font-size: 1.08rem; }

    .hero-button {
        width: 100%;
        max-width: 330px;
    }

    .hero-image img {
        width: min(320px, 94vw);
        height: min(405px, 119vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


#sobre-mi {
    padding: 90px 20px;
}

#sobre-mi .notebook {
    max-width: 1200px;
    margin: auto;
}

#sobre-mi .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

#sobre-mi .text {
    flex: 1;
}

#sobre-mi .photo {
    flex: 0 0 360px;
    display: flex;
    justify-content: center;
}

#sobre-mi .circle-photo {
    width: 340px;
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

@media (max-width:900px) {

    #sobre-mi .content {
        flex-direction: column;
        text-align: center;
    }

    #sobre-mi .photo {
        flex: unset;
    }

}