/* ===========================
   VARIABLES & BASE
   Paleta extraída de psiquesi.net
   =========================== */
:root {
    --color-sage: #809671;
    --color-sage-dark: #6A7E5E;
    --color-sage-light: #9DB08C;
    --color-brown: #725C3A;
    --color-brown-light: #8F744A;
    --color-cream: #FCF9E2;
    --color-cream-soft: #F6EFD8;
    --color-beige: #EBDCC3;
    --color-tan: #E5D2B8;
    --color-navy: #101921;
    --color-hero-bg: #E5E0D8;
    --color-text: #3D4239;
    --color-text-light: #6B7062;
    --color-white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 4px 20px rgba(16, 25, 33, 0.08);
    --shadow-hover: 0 8px 30px rgba(16, 25, 33, 0.14);
    --radius: 14px;
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-hero-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.3;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    background-color: var(--color-cream);
    padding: 0.85rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 56px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
    height: 46px;
}

.navbar .nav-link {
    color: var(--color-brown) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    border-radius: 8px;
}

.navbar .nav-link:hover {
    color: var(--color-sage-dark) !important;
    background-color: var(--color-cream-soft);
}

.btn-nav-cta {
    background-color: var(--color-sage) !important;
    color: var(--color-cream) !important;
    border-radius: 25px !important;
    padding: 0.5rem 1.2rem !important;
    margin-left: 0.5rem;
}

.btn-nav-cta:hover {
    background-color: var(--color-sage-dark) !important;
    color: var(--color-cream) !important;
    transform: translateY(-1px);
}

.navbar-toggler {
    border-color: var(--color-tan);
}

/* Onda decorativa bajo el header */
.header-wave {
    position: relative;
    width: 100%;
    line-height: 0;
    background-color: var(--color-cream);
}

.header-wave svg {
    display: block;
    width: 100%;
    height: 38px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    padding-top: 150px;
    padding-bottom: 5rem;
    background-color: var(--color-hero-bg);
}

.hero-greeting {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    color: var(--color-brown);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-brown);
}

.text-accent {
    color: var(--color-sage-dark);
}

.hero-subtitle,
.hero-text {
    font-size: 1.08rem;
    color: var(--color-sage);
    margin-bottom: 1.2rem;
    max-width: 540px;
}

.btn-cta {
    background-color: var(--color-sage);
    color: var(--color-cream);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-cta:hover {
    background-color: var(--color-sage-dark);
    color: var(--color-cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-photo {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    object-fit: cover;
}

/* ===========================
   BANDA DE BIENVENIDA
   =========================== */
.welcome-section {
    background-color: var(--color-sage);
    padding: 5.5rem 0;
    text-align: center;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.welcome-text {
    color: var(--color-cream);
    opacity: 0.92;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-welcome {
    background-color: var(--color-cream);
    color: var(--color-brown);
    border: none;
    padding: 0.8rem 2.4rem;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-welcome:hover {
    background-color: var(--color-cream-soft);
    color: var(--color-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===========================
   SECTIONS GENERAL
   =========================== */
.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-brown);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-sage);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   SOBRE MÍ
   =========================== */
.sobre-mi-section {
    padding: 6rem 0;
    background-color: var(--color-cream);
}

.sobre-mi-section p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 1.2rem;
}

.sobre-mi-image-wrapper {
    display: flex;
    justify-content: center;
}

.photo-frame {
    position: relative;
    display: inline-block;
}

.photo-frame::before {
    content: '';
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 100%;
    height: 100%;
    background-color: var(--color-sage-light);
    border-radius: 6px;
    z-index: 0;
}

.sobre-mi-photo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    border: 12px solid var(--color-white);
    border-radius: 4px;
    box-shadow: var(--shadow-hover);
}

/* ===========================
   EDUCACIÓN (timeline)
   =========================== */
.educacion-section {
    padding: 6rem 0;
    background-color: var(--color-cream-soft);
}

.educacion-intro {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.timeline {
    position: relative;
    max-width: 920px;
    margin: 3.5rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-tan);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2.75rem;
    margin-bottom: 1.5rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    top: 1.6rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-sage-light), var(--color-sage));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
    font-size: 1.35rem;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -25px;
}

.timeline-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: left;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.edu-badge {
    display: inline-block;
    background-color: var(--color-sage);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.85rem;
}

.timeline-card h3 {
    font-size: 1.2rem;
    color: var(--color-brown);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.timeline-card p {
    color: var(--color-text-light);
    font-size: 0.98rem;
    margin: 0;
}

/* ===========================
   SERVICIOS
   =========================== */
.servicios-section {
    padding: 6rem 0;
    background-color: var(--color-beige);
}

.servicio-card {
    background-color: var(--color-cream);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.servicio-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-sage-light), var(--color-sage));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.servicio-icon i {
    font-size: 1.8rem;
    color: var(--color-cream);
}

.servicio-icon-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-cream-soft);
    border: 3px solid var(--color-sage-light);
    box-shadow: var(--shadow-soft);
    margin: 0 auto 1.5rem;
    display: block;
}

.servicio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-brown);
}

.servicio-card p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 3.5rem 0 2.5rem;
}

.footer-col {
    padding: 0.5rem 1.5rem;
}

.footer-col p,
.footer-col a {
    color: var(--color-white);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    text-decoration: none;
    word-break: break-word;
}

.footer-col a:hover {
    color: var(--color-sage-light);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-white);
    text-decoration: none;
}

.footer-brand-name:hover {
    color: var(--color-sage-light);
}

.footer-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.footer-social a img {
    width: 34px;
    height: 34px;
    transition: var(--transition);
}

.footer-social a:hover img {
    transform: translateY(-3px);
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-top: 2.5rem;
}

.footer-bottom {
    margin-top: 1.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-columns {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 2.5rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 991px) {
    .hero-greeting {
        font-size: 2.8rem;
    }

    .welcome-title {
        font-size: 2.4rem;
    }

    .hero-image-col {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 110px;
        text-align: center;
    }

    .hero-greeting {
        font-size: 2.4rem;
    }

    .hero-subtitle,
    .hero-text {
        max-width: 100%;
    }

    .hero-photo {
        max-width: 260px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .sobre-mi-section,
    .servicios-section {
        padding: 4rem 0;
    }

    .educacion-section {
        padding: 4rem 0;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding: 1rem 0 1rem 4.25rem;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 0;
        right: auto;
    }

    .footer-col {
        text-align: center;
        margin-bottom: 1rem;
    }

    .footer-brand {
        margin-top: 1rem;
    }

    .navbar-collapse {
        background-color: var(--color-cream);
        border-radius: var(--radius);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-soft);
    }

    .btn-nav-cta {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        display: inline-block;
        text-align: center;
    }
}

/* ===========================
   ANIMATIONS
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
