@font-face {
    font-family: "Nari Titulos";
    src: local("Berlin Sans FB Demi Bold"), local("Berlin Sans FB Demi"),
       local("Berlin Sans FB Bold"), url("../assets/fonts/LilitaOne-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans Local";
    src: url("../assets/fonts/NotoSans-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --nari-crema: #faf2e8;
    --nari-fucsia: #d01b6e;
    --nari-amarillo: #f3b131;
    --nari-negro: #000;
    --nari-blanco: #fff;
    --nari-texto: #292329;
    --nari-secundario: #62545b;
    --nari-hover: #a91659;
    --nari-borde: #d9cbd2;
    --fuente-texto: "Ebrima", "Noto Sans Local", "Segoe UI", Arial, sans-serif;
    --fuente-titulo: "Nari Titulos", "Noto Sans Local", sans-serif;
    --radio: .5rem;
    --espacio-seccion: 5rem;
    --titulo-xl: 3.5rem;
    --titulo-lg: 2.5rem;
    --titulo-md: 1.5rem;
    --bs-body-font-family: var(--fuente-texto);
    --bs-body-font-size: 1rem;
    --bs-body-color: var(--nari-texto);
    --bs-body-bg: var(--nari-blanco);
    --bs-primary: var(--nari-fucsia);
    --bs-primary-rgb: 208, 27, 110;
    --bs-link-color: var(--nari-fucsia);
    --bs-link-hover-color: var(--nari-hover);
    --bs-border-radius: var(--radio);
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
}

main:focus {
    outline: none;
}

h1, h2, h3 {
    font-family: var(--fuente-titulo);
    font-weight: 700;
}

h1 {
    font-size: var(--titulo-xl);
    line-height: 1.12;
}

h2 {
    font-size: var(--titulo-lg);
    line-height: 1.2;
    margin: 0 0 2rem;
}

h3 {
    font-size: var(--titulo-md);
    line-height: 1.25;
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--nari-negro) !important;
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -8rem;
    z-index: 2000;
    padding: 1rem;
    color: #fff;
    background: #000;
}

.skip-link:focus {
    top: 1rem;
}

.section-space {
    padding-block: var(--espacio-seccion);
}

.section-label {
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--nari-hover);
    margin: 0 0 1.25rem;
}

.section-intro {
    color: var(--nari-secundario);
    margin: -1rem 0 2rem;
}

.photo-frame {
    background: var(--nari-crema);
    border-radius: var(--radio);
    overflow: hidden;
}

.container {
    --bs-gutter-x: 2rem;
}

.btn {
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: 1rem;
    --bs-btn-font-size: .875rem;
    --bs-btn-font-weight: 700;
    --bs-btn-border-radius: var(--radio);
    min-height: 3.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--nari-fucsia);
    --bs-btn-border-color: var(--nari-fucsia);
    --bs-btn-hover-bg: var(--nari-hover);
    --bs-btn-hover-border-color: var(--nari-hover);
    --bs-btn-active-bg: var(--nari-hover);
    --bs-btn-active-border-color: var(--nari-hover);
    --bs-btn-focus-shadow-rgb: 208,27,110;
}

.btn-outline-primary {
    --bs-btn-color: var(--nari-hover);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--nari-fucsia);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--nari-fucsia);
    --bs-btn-hover-border-color: var(--nari-fucsia);
    --bs-btn-active-bg: var(--nari-hover);
    --bs-btn-active-border-color: var(--nari-hover);
    --bs-btn-focus-shadow-rgb: 208,27,110;
}

.card {
    --bs-card-border-color: var(--nari-borde);
    --bs-card-border-radius: var(--radio);
    overflow: hidden;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1312px;
    }
}

.site-header {
    background: var(--nari-blanco);
}

.navbar {
    min-height: 125px;
    padding-block: 1.25rem;
}

.navbar-brand {
    margin: 0;
    padding: 0;
}

.navbar-brand img, .footer-logo {
    width: 120px;
    height: auto;
}

.navbar-nav {
    gap: .25rem;
}

.navbar .nav-link {
    color: var(--nari-texto);
    padding: .75rem !important;
}

.navbar .nav-link:hover, .navbar .nav-link[aria-current="location"] {
    color: var(--nari-hover);
}

.navbar-toggler {
    border-color: var(--nari-fucsia);
    min-width: 48px;
    min-height: 48px;
    padding: .5rem;
}

.hero {
    background: var(--nari-crema);
    padding-block: 5rem;
}

.hero-row {
    --bs-gutter-x: 3.5rem;
}

.hero-copy {
    padding-top: .2rem;
}

.hero h1 {
    margin-bottom: 2rem;
    color: var(--nari-fucsia);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-body {
    font-size: 1.25rem;
    color: var(--nari-secundario);
    line-height: 1.6;
}

.hero-note {
    font-size: .875rem;
    color: var(--nari-secundario);
    margin: 1.5rem 0 0;
}

.hero-portrait .photo-frame {
    height: 560px;
    background: var(--nari-blanco);
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

figcaption {
    margin-top: 1rem;
    font-size: .875rem;
    color: var(--nari-secundario);
}

/* 7. Sobre mí. */
.about-row {
    --bs-gutter-x: 4rem;
}

.about-photo {
    height: 488px;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-copy p {
    margin-bottom: 1.5rem;
}

.fact-row {
    margin-top: .5rem;
}

.fact-block {
    background: var(--nari-crema);
    padding: 1.5rem;
    border-top: 3px solid var(--nari-amarillo);
}

.fact-block h3 {
    margin-bottom: 1rem;
}

.fact-block p {
    margin: 0;
}

.portfolio-section {
    background: var(--nari-crema);
}

.portfolio-filters {
    gap: .25rem 1rem;
    margin-block: 2.25rem;
}

.filter-button {
    --bs-btn-color: var(--nari-secundario);
    --bs-btn-hover-color: var(--nari-hover);
    --bs-btn-hover-bg: #fff;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-weight: 400;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.filter-button[aria-pressed="true"] {
    color: var(--nari-hover);
    border-bottom-color: var(--nari-fucsia);
    font-weight: 700;
}

.filter-reset {
    color: var(--nari-hover);
    text-decoration: underline;
}

.project-card .card-img-top {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #fff;
}

.project-card .card-body {
    padding: 2.5rem 1.5rem 1.5rem;
}

.project-category {
    font-size: .875rem;
    font-weight: 700;
    color: var(--nari-hover);
    margin-bottom: 1.5rem;
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card .card-text {
    margin-bottom: 1rem;
}

.empty-projects {
    padding: 2rem;
    border-left: 4px solid var(--nari-fucsia);
    background: #fff;
}

.interest-card {
    padding: 1rem;
}

.interest-card .card-body {
    padding: 1rem 0 0;
}

.interest-card .card-title {
    margin-bottom: 1rem;
}

.interest-tinted {
    background: var(--nari-crema);
}

.interest-image {
    height: 200px;
    background: var(--nari-crema);
    border-radius: .375rem;
    overflow: hidden;
}

.interest-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.interest-tinted .interest-image {
    background: #fff;
}

.interest-tinted {
    margin-top: 0;
}



.process-section {
    background: var(--nari-crema);
}

.process-list {
    margin-bottom: 0;
}

.process-card {
    padding: 1.25rem 1rem;
    background: #fff;
}

.step-number {
    display: block;
    color: var(--nari-hover);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-card h3 {
    font-family: var(--fuente-texto);
    font-size: .875rem;
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 1.25rem;
    overflow-wrap: anywhere;
}

.process-card p {
    margin: 0;
}

.contact-row {
    margin-top: 0;
}

.contact-block {
    background: var(--nari-crema);
    color: var(--nari-texto);
    padding: 1.5rem;
    text-decoration: none;
    border-bottom: 3px solid var(--nari-amarillo);
    height: 100%;
}

.contact-block:hover {
    color: var(--nari-hover);
    background: #fff6ec;
}

.contact-block h3 {
    margin: 0 0 1rem;
}

.contact-block span {
    font-size: .875rem;
    overflow-wrap: anywhere;
}

.contact-cta {
    margin-top: 2rem;
}

.site-footer {
    padding-block: 5rem;
    background: var(--nari-crema);
}

.footer-tagline {
    font-family: var(--fuente-titulo);
    font-size: 1.5rem;
    margin: 2rem 0;
}

.footer-nav .btn {
    min-width: 8.5rem;
}

.footer-social {
    margin-top: 2rem;
}

.footer-social .btn {
    min-width: 8.5rem;
}

.footer-legal, .footer-location {
    color: var(--nari-secundario);
    font-size: .875rem;
}

.footer-legal {
    margin: 2rem 0;
}

.footer-location {
    margin-bottom: 0;
}

/* 13. Fichas de proyecto: composición de las vistas de detalle de Figma. */
.project-detail {
    padding-block: 5rem;
}

.project-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 1.75rem;
}

.detail-image {
    width: 100%;
    height: 640px;
    background: var(--nari-crema);
    border-radius: var(--radio);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-description {
    font-size: 1.25rem;
}


/* 14. Animaciones discretas y movimiento reducido. */
.btn, .contact-block, .nav-link {
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* 15. Ajustes responsive: la retícula base y Collapse pertenecen a Bootstrap. */
@media (max-width: 1399.98px) and (min-width: 992px) {
    :root {
        --titulo-xl: 3rem;
    }
    .hero-row {
        --bs-gutter-x: 2rem;
    }
    .hero-portrait .photo-frame {
        height: 520px;
    }
    .project-card .card-img-top {
        height: 240px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --espacio-seccion: 4rem;
        --titulo-xl: 2.75rem;
        --titulo-lg: 2.25rem;
    }
    .navbar-collapse {
        padding-top: 1rem;
    }
    .navbar-nav {
        flex-wrap: wrap;
        flex-direction: row;
    }
    .navbar-nav .nav-link {
        min-height: 44px;
    }
    .hero {
        padding-block: 3rem;
    }
    .hero-row {
        --bs-gutter-x: 1.5rem;
    }
    .hero-portrait {
        margin-top: 2rem;
    }
    .hero-portrait .photo-frame {
        height: 480px;
    }
    .hero-copy {
        padding-top: 0;
    }
    .about-row {
        --bs-gutter-x: 1.5rem;
    }
    .about-photo {
        height: 420px;
        margin-bottom: 2rem;
    }
    .about-copy p:last-child {
        margin-bottom: 0;
    }
    .fact-row {
        margin-top: 1rem;
    }
    .detail-image {
        height: 460px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --titulo-xl: 2.5rem;
        --titulo-lg: 1.875rem;
        --titulo-md: 1.5rem;
    }
    .navbar {
        min-height: 120px;
        padding-block: 1.25rem;
    }
    .navbar-brand img {
        width: 120px;
    }
    .mobile-contact {
        padding: .75rem 1rem;
        min-height: 48px;
    }
    .navbar-nav {
        gap: 0;
    }
    .navbar .nav-link {
        padding: .75rem .65rem !important;
    }
    .hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .hero h1 {
        max-width: 355px;
        margin-bottom: 1.5rem;
    }
    .hero-subtitle, .hero-body {
        font-size: 1.25rem;
    }
    .hero-body {
        line-height: 1.6;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-portrait .photo-frame {
        height: 386px;
    }
    h2 {
        margin-bottom: 2rem;
    }
    .section-label {
        font-size: .8125rem;
    }
    .about-photo {
        height: 400px;
        margin-bottom: 2rem;
    }
    .fact-block {
        padding: 1.5rem;
    }
    .portfolio-filters {
        gap: .25rem 1rem;
    }
    .project-card .card-img-top {
        height: 240px;
    }
    .project-card .card-body {
        padding: 2rem 1.5rem 1.5rem;
    }
    .interest-image, .interest-tinted .interest-image {
        height: 280px;
    }
    .interest-card {
        padding: 1rem;
    }
    .process-card {
        padding: 1.5rem;
    }
    .process-card h3 {
        font-size: 1rem;
    }
    .contact-cta {
        width: 100%;
    }
    .site-footer {
        padding-block: 4rem;
    }
    .footer-social {
        flex-direction: column;
    }
    .footer-tagline {
        max-width: 330px;
    }
    .footer-nav .btn {
        min-width: 8.5rem;
    }
    .project-detail {
        padding-block: 1.5rem;
    }
    .project-detail h1 {
        font-size: 2rem;
    }
    .detail-image {
        height: 300px;
    }
}
/* Movimiento suave de botones */
.btn {
  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              background-color 0.2s ease;
}

/* Al pasar el cursor */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(208, 27, 110, 0.18);
  }
}

/* Mientras se pulsa */
.btn:active {
  transform: scale(0.96);
  box-shadow: none;
}
/* JavaScript activa este estado antes de la aparición */
.aparecer.preparado {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.aparecer.preparado.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .aparecer.preparado {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 16. Animación del titular de la página de inicio. */
#hero-title .titular-linea {
    display: block;
    transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
    #hero-title .titular-linea {
        animation: entrada-titular-nari 1.6s cubic-bezier(.16, 1, .3, 1) both;
    }
    #hero-title .titular-saludo { animation-delay: .15s; }
    #hero-title .titular-creativo { animation-delay: .65s; }
}

@keyframes entrada-titular-nari {
    from {
        opacity: 0;
        transform: translateY(32px) scale(.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
        

/* 17. Servicios y testimonios: componentes de la retícula Bootstrap. */
.service-card .card-body { padding: 1.75rem; }
.service-card .card-title { margin-bottom: .85rem; }
.service-card .card-text { color: var(--nari-secundario); margin-bottom: 0; }
.service-visual {
    min-height: 168px;
    display: grid;
    place-items: center;
    background: var(--nari-crema);
    border-bottom: 3px solid var(--nari-amarillo);
}
.service-card { transition: transform .22s ease, box-shadow .22s ease; }
@media (hover: hover) {
    .service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(208,27,110,.12); }
}
.testimonials-section { background: var(--nari-blanco); }
.testimonial-card { padding: clamp(1.25rem, 3vw, 2rem); border-top: 3px solid var(--nari-amarillo); background: var(--nari-crema); }
.testimonial-avatar { flex-shrink: 0; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.testimonial-profile h3 { font-size: 1.25rem; margin: 0 0 .35rem; }
.testimonial-role { margin: 0; font-size: .875rem; color: var(--nari-secundario); }
.testimonial-quote { font-family: var(--fuente-titulo); font-size: 3.5rem; line-height: 1; color: var(--nari-fucsia); margin-top: .9rem; }
.testimonial-text { margin-bottom: .75rem; }
.testimonial-status { font-size: .8125rem; color: var(--nari-hover); margin-bottom: 0; font-weight: 700; }

/* 18. Ajustes del Hero, tarjetas y navegación. */
.navbar { min-height: 100px; }
.navbar-nav { gap: 0; }
.navbar .nav-link { padding: .65rem !important; font-size: .9rem; white-space: nowrap; }
.hero { padding-block: clamp(1.5rem, 4vh, 3rem); }
.hero h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); margin-bottom: 1.1rem; }
.hero-subtitle { margin-bottom: .8rem; font-weight: 700; }
.hero-body { margin-bottom: 1.25rem; }
.hero-portrait .photo-frame { height: clamp(340px, 65vh, 560px); }
.hero-portrait img { object-fit: cover; object-position: 50% 34%; }
.hero-portrait figcaption { margin-top: .5rem; }
.interest-card, .project-card { height: 100%; }
.interest-image, .interest-tinted .interest-image { height: auto; aspect-ratio: 1 / 1; }
.interest-image img { object-fit: cover; }
.project-card .card-body { display: flex; flex-direction: column; }
.project-card .card-body .btn { margin-top: auto; }
.fact-block { height: 100%; }
.detail-subheading { font-size: 1.5rem; margin: 1.5rem 0 .75rem; }
.detail-header { border-bottom: 1px solid var(--nari-borde); }
.detail-header .navbar-brand img { width: 100px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand img { width: 90px; }
    .navbar .nav-link { padding: .5rem !important; font-size: .84rem; }
    .navbar .btn-primary { padding-inline: .9rem; }
}
@media (max-width: 991.98px) {
    .hero-row { --bs-gutter-x: 1.5rem; }
    .hero-portrait { margin-top: 1.25rem; }
    .hero-portrait .photo-frame { height: clamp(240px, 42vh, 400px); }
    .hero-portrait img { object-position: center 33%; }
    .hero-copy .section-label { margin-bottom: .65rem; }
}
@media (max-width: 575.98px) {
    .navbar { min-height: 72px; padding-block: .5rem; }
    .navbar-brand img { width: 80px; }
    .mobile-contact { min-height: 40px; padding: .5rem .65rem; font-size: .78rem; }
    .navbar-toggler { min-width: 42px; min-height: 42px; padding: .3rem; }
    .hero { padding-block: 1.25rem 1.5rem; }
    .hero h1 { max-width: none; font-size: clamp(1.85rem, 7.8vw, 2.6rem); margin-bottom: .65rem; line-height: 1.08; }
    .hero-subtitle { font-size: .95rem; margin-bottom: .55rem; }
    .hero-body { font-size: .95rem; line-height: 1.45; margin-bottom: .85rem; }
    .hero-actions .btn { min-height: 44px; padding-block: .6rem; }
    .hero-portrait { margin-top: 1rem; }
    .hero-portrait .photo-frame { height: clamp(185px, 31vh, 320px); }
    .hero-portrait figcaption { font-size: .75rem; margin-top: .4rem; }
    .service-card .card-body { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .btn:hover, .btn:active, .service-card:hover { transform: none; }
}
