* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
}

/* ===== PALETA — Cálida y luminosa (ciruela + coral) ===== */
:root {
    --coral: #FF7A66;        /* acento principal (botones, highlights) */
    --coral-dark: #F0624D;   /* hover */
    --ciruela: #8E4A8C;      /* secundario (aros, iconos, brillos) */
    --ink: #33223A;          /* texto fuerte / títulos */
    --bg: #FDFBFC;           /* fondo luminoso */
    --surface: #FFFFFF;      /* tarjetas */
    --surface-2: #F8F1F6;    /* franjas suaves (contacto) */
    --text: #5E5262;         /* texto de párrafos */
    --soft: #857888;         /* texto apagado */
    --line: #EEE4EC;         /* bordes finos */
    --font-display: 'Cormorant', Georgia, serif;
}

body {
    color: var(--text);
    background: var(--bg);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(253, 251, 252, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar a {
    display: inline-block;
    font-size: 16px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: 0.3s;
    opacity: 0;
    animation: slideTop 0.5s ease forwards;
}

.navbar a:hover {
    color: var(--coral);
}

.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10%;
    gap: 3rem;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    font-style: italic;
    color: var(--soft);
    opacity: 0;
    animation: slideBottom 1s ease forwards;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 26px;
    font-style: normal;
    color: var(--ink);
    font-weight: 500;
}

.home-content h3 span {
    color: var(--coral);
}

.home-content h1 {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.05;
    margin: 4px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.home-content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    max-width: 480px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
}

.home-sci {
    margin: 30px 0;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid var(--ciruela);
    border-radius: 50%;
    font-size: 20px;
    color: var(--ciruela);
    text-decoration: none;
    margin-right: 15px;
    transition: 0.3s;
    box-shadow: 0 0 14px rgba(142, 74, 140, 0.35);
}

.home-sci a:hover {
    background: var(--ciruela);
    color: #fff;
    box-shadow: 0 6px 18px rgba(142, 74, 140, 0.3);
}

.btn-box {
    display: inline-block;
    padding: 13px 30px;
    background: var(--coral);
    border-radius: 999px;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.3px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(255, 122, 102, 0.35);
    transition: 0.3s;
}

.btn-box:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 122, 102, 0.45);
}

.home-content p.hook {
    margin-bottom: 12px;
}

.home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    padding: 11px 28px;
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}

/* Foto del hero */
.home-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 100%;
    max-width: 360px;
    border-radius: 50%;
    border: 3px solid var(--ciruela);
    box-shadow: 0 0 22px 0 rgba(142, 74, 140, 0.45),
                0 0 55px 12px rgba(142, 74, 140, 0.22);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Services */
.services {
    padding: 100px 10%;
    background: var(--bg);
}

.section-title {
    font-family: var(--font-display);
    text-align: center;
    font-size: 44px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 55px;
}

.section-title span {
    color: var(--coral);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 38px 30px;
    box-shadow: 0 6px 20px rgba(51, 34, 58, 0.05);
    transition: 0.3s;
}

.service-box:hover {
    border-color: var(--ciruela);
    box-shadow: 0 0 22px 0 rgba(142, 74, 140, 0.45),
                0 0 55px 12px rgba(142, 74, 140, 0.22);
    transform: translateY(-8px);
}

.service-box i {
    font-size: 42px;
    color: var(--ciruela);
    margin-bottom: 18px;
}

.service-box h3 {
    font-size: 21px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
}

.service-box p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
}

/* Animaciones */
@keyframes slideRight {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0px); opacity: 1; }
}
@keyframes slideLeft {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0px); opacity: 1; }
}
@keyframes slideTop {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0px); opacity: 1; }
}
@keyframes slideBottom {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0px); opacity: 1; }
}

/* Sobre mí */
.about {
    padding: 100px 10%;
    background: var(--surface-2);
}
.about-text {
    max-width: 68ch;
    margin: 0 auto;
}
.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 22px;
}
.about-text p:first-child {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.5;
    color: var(--ink);
}
.about-text p:last-child {
    margin-bottom: 0;
}
.about-text p.about-langs {
    font-size: 15px;
    color: var(--soft);
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.about-langs strong {
    color: var(--ink);
}

/* Proyectos */
.projects {
    padding: 100px 10%;
    background: var(--bg);
}
.projects-note {
    text-align: center;
    margin: -40px auto 50px;
    max-width: 60ch;
    font-size: 15px;
    color: var(--soft);
    font-style: italic;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}
.project-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(51, 34, 58, 0.06);
    transition: 0.3s;
}
.project-box:hover {
    border-color: var(--ciruela);
    box-shadow: 0 16px 36px rgba(142, 74, 140, 0.18);
    transform: translateY(-10px);
}
.project-img {
    height: 220px;
    background: var(--surface-2);
}
.project-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--ink) 0%, #6E3570 100%);
    color: #fff;
}
.project-cover .cover-kicker { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.project-cover .cover-score { font-family: var(--font-display); font-size: 58px; line-height: 1; color: var(--coral); }
.project-cover .cover-score small { font-size: 22px; color: #fff; opacity: .8; }
.project-cover .cover-sub { font-size: 14px; opacity: .85; }
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-info { padding: 22px 25px; }
.project-info h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.project-info p { font-size: 15px; line-height: 1.5; color: var(--text); }
.project-box { display: flex; flex-direction: column; }
.project-info { flex: 1; display: flex; flex-direction: column; }
.project-info .btn-box { margin-top: auto; align-self: flex-start; }
.project-info p { margin-bottom: 18px; }

/* Contacto */
.contact {
    padding: 100px 10%;
    background: var(--surface-2);
}
.contact-page {
    min-height: 100vh;
    padding-top: 130px;
    display: flex;
    justify-content: center;
}
.contact-page-inner {
    width: 100%;
    max-width: 640px;
}
.contact-page .section-title {
    margin-top: 28px;
    margin-bottom: 40px;
    text-align: left;
}
.contact-page .contact-info > p {
    max-width: 52ch;
}
.contact-cta {
    margin-top: 18px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ciruela);
    text-decoration: none;
    transition: 0.3s;
}
.back-link:hover { color: var(--coral); }
.navbar a.active { color: var(--coral); }

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contact-info h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}
.contact-info > p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 30px;
    max-width: 42ch;
}
.info-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--ink);
}
.info-line i {
    font-size: 22px;
    color: var(--ciruela);
}
.info-line a {
    color: var(--ink);
    text-decoration: none;
    transition: 0.3s;
}
.info-line a:hover {
    color: var(--coral);
}
.contact-sci {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.contact-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--ciruela);
    border-radius: 50%;
    font-size: 20px;
    color: var(--ciruela);
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 0 14px rgba(142, 74, 140, 0.35);
}
.contact-sci a:hover {
    background: var(--ciruela);
    color: #fff;
    box-shadow: 0 6px 18px rgba(142, 74, 140, 0.3);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-size: 15px;
    resize: none;
    transition: 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #B3A7B5;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255, 122, 102, 0.18);
}

/* Footer */
.footer {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    padding: 26px 10% 14px;
}
.footer-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem 2rem;
    flex-wrap: wrap;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.footer-brand p {
    margin-top: 2px;
    font-size: 14px;
    color: var(--soft);
}
.footer-links {
    margin-top: 6px;
    font-size: 14px;
    color: var(--soft);
}
.footer-links a {
    color: var(--ciruela);
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover { color: var(--coral); }
.footer-nav {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
.footer-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition: 0.3s;
}
.footer-nav a:hover { color: var(--coral); }
.footer-copy {
    max-width: 760px;
    margin: 16px auto 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 13px;
    color: var(--soft);
}

/* Responsive - móvil */
@media (max-width: 900px) {
    .header { padding: 20px 5%; }
    .home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 110px 5% 60px;
    }
    .home-content { order: 2; }
    .home-img { order: 1; }
    .home-content p { margin: 0 auto; }
    .home-img img { max-width: 260px; }
    .home-sci { justify-content: center; }
    .home-content h1 { font-size: 46px; }
    .services-container { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer { padding: 26px 5% 14px; }
    .footer-inner { flex-direction: column; text-align: center; gap: 0.9rem; }
    .footer-nav { justify-content: center; gap: 12px 22px; }
}

/* Menú en pantallas estrechas: logo arriba, enlaces debajo */
@media (max-width: 640px) {
    .header {
        flex-direction: column;
        gap: 8px;
        padding: 14px 5%;
    }
    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 14px;
    }
    .navbar a {
        margin-left: 0;
        font-size: 14px;
    }
    .home { padding-top: 140px; }
    .home-cta { justify-content: center; }
    .contact-page { padding-top: 160px; }
}

/* Antes y después (imágenes) */
.showcase {
    position: relative;
    overflow: hidden;
    padding: 100px 10%;
    background: linear-gradient(160deg, #FFF4EE 0%, #FFE6DC 55%, #FDEFE8 100%);
}
.showcase::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    width: 60%;
    height: 60%;
    animation: showcaseGlow 18s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes showcaseGlow {
    from { transform: translate(0, 0); }
    to { transform: translate(110%, 60%); }
}
.showcase-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.showcase-kicker {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ciruela);
    margin-bottom: 10px;
}
.showcase .section-title { text-wrap: balance; margin-bottom: 18px; }
.showcase-intro {
    max-width: 62ch;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr 0.9fr;
    gap: 28px;
    align-items: center;
}
.step {
    position: relative;
    margin: 0;
    background: var(--surface);
    border-radius: 18px;
    padding: 12px 12px 16px;
    box-shadow: 0 14px 34px rgba(51, 34, 58, 0.10);
}
.step img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.step-num {
    display: inline-block;
    margin: 4px 4px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
}
.step figcaption { margin: 12px 4px 0; font-size: 14px; line-height: 1.5; color: var(--soft); }
.step:not(.step-hero)::after {
    content: "\2192";
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 700;
    color: var(--coral);
}
.step-hero { transform: rotate(-1.2deg); }
.callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.callout { position: relative; padding-left: 46px; }
.callout::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 34px;
    height: 2px;
    background: var(--coral);
}
.callout strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ink);
}
.callout span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text); }
.showcase-note { margin-top: 40px; text-align: center; font-size: 13px; color: var(--soft); }

/* Entrada al hacer scroll: solo si el JS la activa */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .callout.reveal { transform: translateX(-28px); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .step-hero.reveal.is-visible { transform: rotate(-1.2deg); }

@media (max-width: 1100px) {
    .showcase-grid { grid-template-columns: repeat(3, 1fr); }
    .callouts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .showcase { padding: 80px 5%; }
    .showcase-grid { grid-template-columns: 1fr; gap: 36px; }
    .step:not(.step-hero)::after { content: "\2193"; right: 50%; top: auto; bottom: -32px; transform: translateX(50%); }
    .step-hero, .js-reveal .step-hero.reveal.is-visible { transform: none; }
    .callouts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .showcase::before { animation: none; }
    .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
