/* =========================================
   Flor — Psicóloga · Aesthetic personal site
   Palette: warm sand, terracotta, ink, cream
   ========================================= */

:root {
    --cream: #f5efe6;
    --sand: #ebe2d3;
    --beige: #ddd0bb;
    --terracotta: #b56e54;
    --terracotta-deep: #8c4f3a;
    --olive: #6b6f4a;
    --ink: #2b2724;
    --ink-soft: #5a534c;
    --line: rgba(43, 39, 36, 0.12);

    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1180px;
    --radius: 4px;
    --transition: 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: opacity 0.3s ease, color 0.3s ease; }
a:hover { opacity: 0.65; }

img, svg { display: block; max-width: 100%; }

em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--terracotta);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(245, 239, 230, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding:0px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
}
.nav-logo-img {
    width: 110px;
    height: 110px;
    background-image: url('images/logo-png.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.dot { color: var(--terracotta); }
.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}
.nav-links a {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--ink-soft);
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--terracotta);
    transition: width 0.4s ease;
}
.nav-links a:hover { opacity: 1; color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 160px 32px 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    /* Para cambiar la foto del hero reemplazá hero-3.png por hero-1.png o hero-2.png */
    background:
        linear-gradient(180deg, rgba(245,239,230,0.45) 0%, rgba(235,226,211,0.7) 100%),
        url('images/hero-3.png') center center / cover no-repeat;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.1s, transform 1s ease 0.1s;
}
.hero-content.in-view { opacity: 1; transform: translateY(0); }

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
    margin-bottom: 28px;
}
.hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 32px;
}
.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto 48px;
    font-weight: 300;
}
.hero-cta {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-decor {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 380px;
    color: var(--terracotta);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
    animation: drift 24s ease-in-out infinite;
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(8deg); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--ink);
    color: var(--cream);
}
.btn-primary:hover {
    background: var(--terracotta-deep);
    color: var(--cream);
    transform: translateY(-2px);
    opacity: 1;
}
.btn-ghost {
    color: var(--ink);
    border-color: var(--ink);
    background: transparent;
}
.btn-ghost:hover {
    background: var(--ink);
    color: var(--cream);
    opacity: 1;
}
.btn-large {
    padding: 20px 44px;
    font-size: 14px;
    letter-spacing: 0.14em;
}

/* ---------- Sections base ---------- */
section {
    padding: 120px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}
section.in-view { opacity: 1; transform: translateY(0); }

.section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
    margin-bottom: 18px;
    position: relative;
    padding-left: 36px;
}
.section-eyebrow::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 24px; height: 1px;
    background: var(--terracotta-deep);
}
.section-eyebrow.centered {
    padding-left: 0;
    text-align: center;
}
.section-eyebrow.centered::before {
    left: 50%;
    transform: translate(-50%, 14px);
    width: 32px;
    background: var(--terracotta-deep);
}
.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}
.section-title.centered { text-align: center; }

/* ---------- About ---------- */
.about {
    background: var(--cream);
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 100px;
    align-items: stretch;
}
.about-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.about-image {
    position: relative;
    aspect-ratio: 4 / 3;
}
.image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--sand);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(43, 39, 36, 0.25);
}
.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.image-decor {
    position: absolute;
    bottom: -28px; right: -28px;
    width: 80%; height: 80%;
    border: 1px solid var(--terracotta);
    border-radius: 4px;
    z-index: -1;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.about-text .lead {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 24px;
    font-weight: 400;
}
.about-text p {
    color: var(--ink-soft);
    margin-bottom: 18px;
    max-width: 540px;
    text-align: justify;
    hyphens: auto;
}
.credentials {
    list-style: none;
    border-top: 1px solid var(--line);
    padding-top: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.credentials li {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink);
}
.credentials li span {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--terracotta);
    font-size: 18px;
    min-width: 32px;
}

/* ---------- Approach ---------- */
.approach {
    background: var(--sand);
    position: relative;
}
.approach-header {
    text-align: center;
    margin-bottom: 80px;
}
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.approach-card {
    background: var(--cream);
    padding: 56px 40px;
    border-radius: 4px;
    border: 1px solid var(--line);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.approach-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -30px rgba(43, 39, 36, 0.18);
}
.card-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 38px;
    color: var(--terracotta);
    margin-bottom: 20px;
    line-height: 1;
}
.approach-card h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 26px;
    margin-bottom: 14px;
    letter-spacing: -0.005em;
}
.approach-card p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
}

/* ---------- Process ---------- */
.process {
    background: var(--sand);
}
.process-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}
.process-facts {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 36px;
}
.process-facts li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.process-facts strong {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
    font-weight: 500;
}
.process-facts span {
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--ink);
}
.process-info > p {
    color: var(--ink-soft);
    max-width: 540px;
    text-align: justify;
    hyphens: auto;
}
.process-goals {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 44px 40px;
}
.goals-label {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 19px;
    color: var(--ink);
    margin-bottom: 22px;
}
.goals-list {
    list-style: none;
}
.goals-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 15px;
}
.goals-list li:last-child { border-bottom: none; }
.goals-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 21px;
    width: 12px; height: 1px;
    background: var(--terracotta);
}

/* ---------- Services ---------- */
.services {
    /* Alternativa más suave: cambiar servicios-1.png por servicios-2.png */
    background-image: url('images/servicios-2.png');
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}
.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 24, 20, 0.55);
}
.services .container { position: relative; z-index: 1; }
.services .section-eyebrow { color: rgba(245, 239, 230, 0.7); }
.services .section-eyebrow::before { background: rgba(245, 239, 230, 0.5); }
.services .section-title { color: var(--cream); margin-bottom: 70px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(245, 239, 230, 0.2);
    border-left: 1px solid rgba(245, 239, 230, 0.2);
    text-align: left;
}
.service-item {
    padding: 44px 36px;
    border-right: 1px solid rgba(245, 239, 230, 0.2);
    border-bottom: 1px solid rgba(245, 239, 230, 0.2);
    transition: background var(--transition);
}
.service-item:hover { background: rgba(245, 239, 230, 0.08); }
.service-item h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--cream);
}
.service-item p {
    color: rgba(245, 239, 230, 0.65);
    font-size: 14.5px;
    text-align: justify;
    hyphens: auto;
}

/* ---------- Contact ---------- */
.contact {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(181, 110, 84, 0.08), transparent 60%),
        var(--sand);
}
.contact-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 80px 60px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 40px 80px -40px rgba(43, 39, 36, 0.2);
}
.contact-intro {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.form-note {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 14px;
    letter-spacing: 0.06em;
    font-style: italic;
}
.contact-divider {
    margin: 56px 0 36px;
    text-align: center;
    position: relative;
    color: var(--ink-soft);
}
.contact-divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--line);
}
.contact-divider span {
    background: var(--cream);
    padding: 0 20px;
    position: relative;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15px;
}
.contact-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
}
.contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
}
.contact-list a, .contact-list span:not(.contact-label) {
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--ink);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: var(--cream);
    padding: 10px 0 50px;
}
.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.footer-logo {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
}
.footer-logo .dot { color: var(--terracotta); }
.footer-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.footer-copy {
    font-size: 13px;
    color: rgba(245, 239, 230, 0.7);
    letter-spacing: 0.04em;
}
.footer-fine {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: rgba(245, 239, 230, 0.5);
    margin-top: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 12px; }

    .two-col {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-text { order: -1; min-width: 0; }
    .about-left { min-width: 0; }
    .about-image { width: 100%; max-width: 100%; margin: 0; aspect-ratio: 4 / 5; }
    .image-decor { display: none; }

    .approach-grid { grid-template-columns: 1fr; gap: 20px; }

    .process-grid { grid-template-columns: 1fr; gap: 48px; }
    .process-facts { grid-template-columns: 1fr 1fr; gap: 22px; }

    .services-grid { grid-template-columns: 1fr; }

    .contact-card { padding: 56px 28px; }
    .contact-list { grid-template-columns: 1fr; gap: 22px; }

    section { padding: 90px 0; }
}

@media (max-width: 560px) {
    .container { padding: 0 22px; }
    .hero { padding: 140px 22px 80px; }
    .hero-title br { display: none; }
    .hero-cta .btn { width: 100%; text-align: center; }
    .nav-links { display: none; }
    .nav-inner { justify-content: center; }

    .process-facts { grid-template-columns: 1fr; }
    .process-goals { padding: 36px 28px; }
}
