/* =========================================================
   Pirómano Studio — estilos propios sobre Bootstrap 5
   El color de acento y las variables de marca están aquí abajo.
   ========================================================= */

:root {
    --acento: #ff3b00;
    --acento-oscuro: #cc2f00;
    --font-display: "Space Grotesk", "Inter", sans-serif;
    --font-sans: "Inter", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: #0a0a0a;
    background: #fff;
    overflow-x: hidden;
}

/* Deja espacio para que la barra flotante inferior no tape el contenido en móvil */
@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom));
    }
}

/* Ritmo vertical de las secciones, con más aire en escritorio */
.section-py {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 992px) {
    .section-py {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Botones a ancho completo en móvil para facilitar el toque, tamaño natural desde sm */
@media (max-width: 575.98px) {
    .btn-mobile-full {
        display: block;
        width: 100%;
        text-align: center;
    }
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Header / navbar ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    z-index: 1030;
}

.navbar-brand span {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: #0a0a0a !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--acento) !important;
}

/* ---------- Barra de navegación inferior (móvil, estilo "vidrio esmerilado") ---------- */
.bottom-nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 1030;
    display: flex;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.75rem;
    box-shadow: 0 16px 40px -16px rgba(10, 10, 10, 0.35);
    padding: 0.4rem;
}

.bottom-nav-link {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.4rem 0.2rem 0.5rem;
    border-radius: 1.35rem;
    color: #5c5c5c;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.bottom-nav-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.95rem;
    background: rgba(10, 10, 10, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: background-color 0.2s ease-out;
}

.bottom-nav-icono svg {
    width: 19px;
    height: 19px;
}

.bottom-nav-label {
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1;
}

.bottom-nav-link.active {
    color: var(--acento);
}

.bottom-nav-link.active .bottom-nav-icono {
    background: rgba(255, 59, 0, 0.16);
}

/* ---------- Botones ---------- */
.btn-acento {
    background-color: var(--acento);
    border-color: var(--acento);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.9rem 2rem;
    transition: background-color 0.2s ease-out;
}

.btn-acento:hover {
    background-color: var(--acento-oscuro);
    border-color: var(--acento-oscuro);
    color: #fff;
}

.btn-outline-dark {
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.9rem 2rem;
}

/* ---------- Hero ---------- */
.hero-kicker {
    color: var(--acento);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-titulo {
    font-size: clamp(1.85rem, 7vw, 3.75rem);
    line-height: 1.08;
}

.hero-subtitulo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.15rem, 4vw, 1.5rem);
}

#rotating-text {
    color: var(--acento);
    display: inline-block;
    transition: opacity 0.2s ease-out;
}

#rotating-text.is-fading {
    opacity: 0;
}

.hero-image-frame {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(160deg, rgba(255, 59, 0, 0.08), rgba(255, 59, 0, 0.02));
    box-shadow: 0 20px 45px -20px rgba(10, 10, 10, 0.25);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 576px) {
    .hero-image-frame {
        aspect-ratio: 4 / 3;
    }
}

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

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    border-top: 1px solid rgba(10, 10, 10, 0.1);
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    background: #0a0a0a;
    padding: 1.25rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.5rem;
    padding: 0 1rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Tarjetas de proyecto ---------- */
.project-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-out;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 59, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-overlay p:first-child {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
}

.project-card-overlay p:last-child {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Producción ---------- */
.produccion-item {
    height: 100%;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 35px -22px rgba(10, 10, 10, 0.3);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.produccion-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -18px rgba(10, 10, 10, 0.35);
}

.produccion-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(255, 59, 0, 0.1);
    color: var(--acento);
}

/* ---------- Servicios ---------- */
.servicio-numero {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--acento);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid rgba(10, 10, 10, 0.1);
    background: #fff;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #737373;
    margin-bottom: 0.75rem;
}

.site-footer a:hover {
    color: var(--acento);
}

/* ---------- Página Servicios ---------- */
.servicio-icono-grande {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(10, 10, 10, 0.15);
    color: var(--acento);
}

/* ---------- Página Nosotros / Contacto ---------- */
.nosotros-foto {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.nosotros-red {
    color: #0a0a0a;
}

.nosotros-red:hover,
.contacto-email:hover {
    color: var(--acento);
}

.contacto-email {
    display: block;
    margin-top: 0.25rem;
}

/* ---------- Filtros de portafolio ---------- */
.filtro-btn {
    border: 1px solid #0a0a0a;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.filtro-btn.active {
    background: #0a0a0a;
    color: #fff;
}

/* ---------- Detalle de proyecto ---------- */
.proyecto-nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
}

.proyecto-nav-link:hover {
    color: var(--acento);
}

/* ---------- Animaciones de entrada ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-rise {
    animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@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;
    }
}
