:root {
    --inapet-black: #070807;
    --inapet-surface: #11130f;
    --inapet-surface-2: #191c16;
    --inapet-accent: #bc7800;
    --inapet-accent-light: #e0a63c;
    --inapet-white: #f7f8f3;
    --inapet-muted: #a8ada2;
    --inapet-border: rgba(255, 255, 255, 0.11);
    --inapet-radius: 1.35rem;
    --inapet-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--inapet-white);
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(188, 120, 0, 0.12),
            transparent 28rem
        ),
        var(--inapet-black);
    font-family:
        "Manrope",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.skip-link {
    position: fixed;
    top: -5rem;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    color: var(--inapet-black);
    background: var(--inapet-accent);
    border-radius: 0.75rem;
    transition: top 0.2s ease;
}

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

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid transparent;
    background: rgba(7, 8, 7, 0.88);
    backdrop-filter: blur(18px);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    border-color: var(--inapet-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--inapet-white);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--inapet-accent-light);
}

.brand-mark {
    display: block;
    flex: 0 0 4rem;
    width: 4rem;
    height: 3rem;
    overflow: hidden;
    background-color: #ffffff;
    background-image: url("../img/nosotros-inapet.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.24);
}

.navbar-toggler {
    color: var(--inapet-white);
    border-color: var(--inapet-border);
    box-shadow: none !important;
}

.navbar-nav .nav-link {
    position: relative;
    margin-inline: 0.15rem;
    padding: 0.65rem 0.85rem !important;
    color: #c7cbc1;
    font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    color: var(--inapet-white);
}

.navbar-nav .nav-link.active::after {
    position: absolute;
    right: 0.85rem;
    bottom: 0.35rem;
    left: 0.85rem;
    height: 2px;
    content: "";
    background: var(--inapet-accent);
    border-radius: 99px;
}

/* BOTONES */

.btn-inapet,
.btn-outline-inapet {
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--inapet-accent);
    border-radius: 999px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.btn-inapet {
    color: var(--inapet-black);
    background: var(--inapet-accent);
}

.btn-inapet:hover,
.btn-inapet:focus {
    color: var(--inapet-black);
    background: var(--inapet-accent-light);
    border-color: var(--inapet-accent-light);
    box-shadow: 0 12px 30px rgba(188, 120, 0, 0.28);
    transform: translateY(-2px);
}

.btn-outline-inapet {
    color: var(--inapet-white);
    background: transparent;
    border-color: var(--inapet-border);
}

.btn-outline-inapet:hover,
.btn-outline-inapet:focus {
    color: var(--inapet-white);
    background: var(--inapet-surface-2);
    border-color: var(--inapet-accent);
    transform: translateY(-2px);
}

/* TEXTOS */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--inapet-accent-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 1.7rem;
    height: 2px;
    content: "";
    background: currentColor;
}

.display-title {
    max-width: 13ch;
    margin-bottom: 1.25rem;
    font-size: clamp(3rem, 8vw, 7.25rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.display-title .accent {
    color: var(--inapet-accent-light);
}

.lead-copy {
    max-width: 42rem;
    color: #bdc2b7;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.text-muted-custom {
    color: var(--inapet-muted) !important;
}

.section-space {
    padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-heading {
    max-width: 14ch;
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

/* HERO */

.hero-section {
    position: relative;
    display: flex;
    min-height: calc(100vh - 76px);
    align-items: center;
    padding-block: 5rem;
}

.hero-visual,
.image-placeholder {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 32rem;
    place-items: center;
    color: #d5dacd;
    background:
        linear-gradient(
            140deg,
            rgba(188, 120, 0, 0.18),
            transparent 45%
        ),
        var(--inapet-surface);
    border: 1px solid var(--inapet-border);
    border-radius: 2rem 2rem 2rem 0.5rem;
    box-shadow: var(--inapet-shadow);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.floating-note {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    max-width: 13rem;
    padding: 1rem;
    color: var(--inapet-black);
    background: var(--inapet-accent);
    border-radius: 1rem 1rem 0.25rem 1rem;
    font-size: 0.85rem;
    font-weight: 800;
    transform: rotate(2deg);
}

/* BENEFICIOS */

.stat-strip {
    padding-block: 1.25rem;
    border-block: 1px solid var(--inapet-border);
    background: #0b0d0a;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #dfe3d9;
    font-weight: 700;
}

.stat-item i {
    color: var(--inapet-accent-light);
    font-size: 1.3rem;
}

/* TARJETAS */

.category-card,
.product-card,
.contact-panel {
    height: 100%;
    overflow: hidden;
    background: var(--inapet-surface);
    border: 1px solid var(--inapet-border);
    border-radius: var(--inapet-radius);
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.category-card:hover,
.product-card:hover {
    border-color: rgba(188, 120, 0, 0.7);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    transform: translateY(-6px);
}

.category-card {
    position: relative;
    min-height: 21rem;
    padding: 2rem;
}

.category-card .category-number {
    color: #62675d;
    font-weight: 800;
}

.category-card > i {
    display: block;
    margin: 3.5rem 0 2.5rem;
    color: var(--inapet-accent-light);
    font-size: 3rem;
}

.category-card h3 {
    font-weight: 800;
}

/* NOSOTROS */

.about-section {
    border-block: 1px solid var(--inapet-border);
    background: rgba(17, 19, 15, 0.45);
}

.about-media-column {
    min-width: 0;
}

.about-image-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 420px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid var(--inapet-border);
    border-radius: 2rem 2rem 2rem 0.5rem;
    box-shadow: var(--inapet-shadow);
    isolation: isolate;
}

.about-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0;
    padding: 1.5rem;
    object-fit: contain;
    object-position: center;
}

/* PRODUCTOS */

.product-body {
    padding: 1.4rem;
}

.product-public-image {
    display: block;
    width: 100%;
    height: 15rem;
    object-fit: cover;
    border-bottom: 1px solid var(--inapet-border);
}

.product-card .badge {
    color: var(--inapet-black);
    background: var(--inapet-accent);
}

.product-card .badge-secondary {
    color: var(--inapet-white);
    background: #34382f;
}

.product-card .text-bg-danger {
    color: #ffffff !important;
    background: #b02a37 !important;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.product-price {
    color: var(--inapet-accent-light);
    font-size: 1.3rem;
    font-weight: 800;
}

.product-card .btn {
    display: inline-grid;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    place-items: center;
    color: var(--inapet-white);
    border: 1px solid var(--inapet-border);
    border-radius: 50%;
}

.product-card .btn:hover {
    color: var(--inapet-black);
    background: var(--inapet-accent);
    border-color: var(--inapet-accent);
}

.image-placeholder.is-card {
    min-height: 15rem;
    border: 0;
    border-bottom: 1px solid var(--inapet-border);
    border-radius: 0;
    box-shadow: none;
}

.placeholder-content {
    padding: 2rem;
    text-align: center;
}

.placeholder-content i {
    display: block;
    margin-bottom: 1rem;
    color: var(--inapet-accent-light);
    font-size: 3rem;
}

.placeholder-content small {
    display: block;
    color: var(--inapet-muted);
}

/* CONTACTO */

.contact-section {
    border-top: 1px solid var(--inapet-border);
    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(188, 120, 0, 0.12),
            transparent 28rem
        );
}

.contact-panel {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--inapet-shadow);
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--inapet-border);
}

.contact-method:last-of-type {
    border-bottom: 0;
}

.contact-icon {
    display: grid;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    color: var(--inapet-black);
    background: var(--inapet-accent);
    border-radius: 0.85rem 0.85rem 0.85rem 0.25rem;
}

.contact-method strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-link {
    color: var(--inapet-accent-light);
    text-decoration: none;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--inapet-white);
    text-decoration: underline;
}

.contact-notice {
    max-width: 36rem;
    padding: 1rem;
    color: #d4d8cf;
    background: var(--inapet-surface);
    border: 1px solid var(--inapet-border);
    border-radius: 1rem;
}

/* PÁGINA DE PRODUCTOS */

.page-hero {
    padding-block:
        clamp(5rem, 11vw, 9rem)
        clamp(3rem, 7vw, 6rem);
    border-bottom: 1px solid var(--inapet-border);
}

.page-hero h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 38rem;
    color: var(--inapet-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.filter-bar {
    padding: 1rem;
    background: var(--inapet-surface);
    border: 1px solid var(--inapet-border);
    border-radius: 1.25rem;
}

.filter-btn {
    padding: 0.7rem 1rem;
    color: var(--inapet-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--inapet-black);
    background: var(--inapet-accent);
}

.form-control {
    min-height: 3.25rem;
    color: var(--inapet-white);
    background-color: #0c0e0b;
    border: 1px solid var(--inapet-border);
}

.form-control:focus {
    color: var(--inapet-white);
    background-color: #0c0e0b;
    border-color: var(--inapet-accent);
    box-shadow: 0 0 0 0.25rem rgba(188, 120, 0, 0.18);
}

.form-control::placeholder {
    color: #72776e;
}

.empty-results {
    padding: 3rem;
    color: var(--inapet-muted);
    text-align: center;
    background: var(--inapet-surface);
    border: 1px dashed var(--inapet-border);
    border-radius: var(--inapet-radius);
}

/* FOOTER */

.site-footer {
    position: relative;
    padding-block: 4rem 1.5rem;
    background: #040504;
    border-top: 1px solid var(--inapet-border);
}

.footer-link {
    color: var(--inapet-muted);
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--inapet-accent-light);
}

.social-link {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    color: var(--inapet-white);
    border: 1px solid var(--inapet-border);
    border-radius: 50%;
    text-decoration: none;
}

.social-link:hover,
.social-link:focus {
    color: var(--inapet-black);
    background: var(--inapet-accent);
    border-color: var(--inapet-accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/*
 * Candado gris claro que lleva al login administrativo.
 */
.admin-entry {
    display: inline-grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #9a9d98;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 0.65;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.admin-entry:hover,
.admin-entry:focus-visible {
    color: #e1e3df;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    opacity: 1;
    transform: translateY(-2px);
}

/* ANIMACIONES */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: #0d0f0c;
        border: 1px solid var(--inapet-border);
        border-radius: 1rem;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-visual {
        min-height: 26rem;
    }

    .about-image-container {
        height: 360px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        gap: 0.45rem;
        font-size: 1rem;
    }

    .brand-mark {
        flex-basis: 3.25rem;
        width: 3.25rem;
        height: 2.4rem;
    }

    .display-title {
        font-size: clamp(2.8rem, 15vw, 4.2rem);
    }

    .hero-section {
        padding-block: 3.5rem;
    }

    .hero-visual,
    .image-placeholder {
        min-height: 22rem;
        border-radius: 1.4rem 1.4rem 1.4rem 0.4rem;
    }

    .section-space {
        padding-block: 4rem;
    }

    .filter-bar {
        border-radius: 1rem;
    }

    .about-image-container {
        height: 280px;
        border-radius: 1.4rem 1.4rem 1.4rem 0.4rem;
    }

    .about-image {
        padding: 0.75rem;
    }

    .footer-bottom {
        align-items: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}