/* =========================
        GLOBAL
========================= */

body {
    font-family: 'Manrope', sans-serif;
    color: #111827;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
}

p {
    font-family: 'Manrope', sans-serif;
}

/* =========================
        HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(11, 44, 95, 0.06);
}

.custom-navbar {
    min-height: 78px;
    padding: 0;
}

.custom-logo-link img {
    width: 170px;
    height: auto;
}

.navbar-nav .nav-link {
    position: relative;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    padding: 26px 0;
    transition: 0.25s ease;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd;
}

.navbar-nav .current-menu-item > .nav-link {
    color: #111827;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 0;
    height: 3px;
    background: #0d6efd;
    border-radius: 20px;
    transform: translateX(-50%);
    transition: 0.25s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0d6efd 0%, #075bd8 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(13, 110, 253, 0.28);
    transition: 0.25s ease;
    
}

.btn-header:hover {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.35);
}



/* Botón hamburguesa personalizado */

.custom-menu-toggle {
    width: 54px;
    height: 46px;
    border: 2px solid #dbeafe;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(11, 44, 95, 0.08);
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.custom-menu-toggle:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.custom-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #0b2c5f;
    border-radius: 99px;
    transition: 0.25s ease;
}

.custom-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.custom-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.custom-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
    .navbar-nav {
        gap: 34px !important;
    }

    .btn-header {
        margin-left: 28px;
    }
}

@media (max-width: 991px) {
    .custom-navbar {
        padding: 12px 0;
    }

    .custom-logo-link img {
        width: 145px;
    }

    .custom-menu-toggle {
        display: inline-flex;
    }

    .navbar-collapse {
        background: #ffffff;
        border: 1px solid #e5edf7;
        border-radius: 22px;
        margin-top: 16px;
        padding: 18px;
        box-shadow: 0 20px 50px rgba(11, 44, 95, 0.12);
    }

    .navbar-nav {
        gap: 6px !important;
    }

    .navbar-nav .nav-link {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .navbar-nav .nav-link:hover {
        background: #f1f7ff;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .btn-header {
    margin-top: 12px;
    margin-left: 0;
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    }
}


/* =========================
            HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    min-height: 780px;

    background-image:
        url('../img/hero-industrial-bg.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 16, 35, 0.92) 0%,
            rgba(4, 16, 35, 0.88) 35%,
            rgba(4, 16, 35, 0.55) 58%,
            rgba(4, 16, 35, 0.18) 100%
        );

    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 680px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;

    border-radius: 999px;

    background: rgba(13, 110, 253, 0.14);

    border: 1px solid rgba(59, 130, 246, 0.4);

    color: #93c5fd;

    font-weight: 700;

    margin-bottom: 24px;

    backdrop-filter: blur(10px);
}

.hero-label::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #0d6efd;
}

.hero-title {
    font-size: 64px;
    max-width: 680px;
    line-height: 1.02;

    font-weight: 800;

    color: #ffffff;

    margin-bottom: 28px;

    letter-spacing: -3px;
}

.hero-text {
    font-size: 21px;

    color: #d6e2f1;

    max-width: 620px;

    line-height: 1.8;

    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;

    margin-bottom: 44px;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 28px;

    border-radius: 14px;

    font-weight: 700;

    transition: all 0.25s ease;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #075bd8 100%);

    color: #ffffff;

    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.35);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);

    color: #ffffff;
}

.btn-hero-secondary {
    border: 1px solid rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);

    color: #ffffff;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.14);

    color: #ffffff;

    transform: translateY(-2px);
}

.hero-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    max-width: 700px;
}

.hero-stats div {
    padding: 22px;

    border-radius: 18px;

    background: rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(12px);
}

.hero-stats strong {
    display: block;

    font-size: 30px;

    color: #ffffff;

    margin-bottom: 6px;
}

.hero-stats span {
    color: #d6e2f1;

    font-size: 15px;

    line-height: 1.5;
}

/* MOBILE */

@media (max-width: 991px) {

    .hero {
        padding: 100px 0;
        min-height: auto;

        background-position: center;
    }

    .hero-title {
        font-size: 46px;
    }

    .hero-text {
        font-size: 18px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {

    .hero {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }
}

/* =========================
        SERVICIOS
========================= */

.services {
    position: relative;
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
}

.services::before {
    content: "";
    position: absolute;
    left: -180px;
    top: 120px;
    width: 360px;
    height: 360px;
    background: rgba(13, 110, 253, 0.06);
    border-radius: 50%;
}

.services .container {
    position: relative;
    z-index: 2;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 70px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #0d6efd;
    border-radius: 50%;
}

.section-title {
    font-size: 46px;
    line-height: 1.12;
    font-weight: 800;
    color: #0b2c5f;
    margin-bottom: 18px;
}

.section-description {
    color: #6b7280;
    font-size: 18px;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    height: 100%;
    min-height: 330px;
    padding: 42px 34px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5edf7;
    box-shadow: 0 18px 45px rgba(11, 44, 95, 0.06);
    overflow: hidden;
    transition: 0.3s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 160px;
    height: 160px;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 50%;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(11, 44, 95, 0.1);
}

.service-number {
    position: absolute;
    top: 28px;
    right: 30px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(13, 110, 253, 0.08);
    line-height: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf3ff;
    color: #0d6efd;
    border-radius: 18px;
    font-size: 34px;
    margin-bottom: 28px;
}

.service-card h3 {
    font-size: 26px;
    font-weight: 800;
    color: #0b2c5f;
    margin-bottom: 16px;
}

.service-card p {
    color: #5f6f85;
    line-height: 1.8;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .services {
        padding: 80px 0;
    }

    .section-title {
        font-size: 36px;
    }
}

/* =========================
    EQUIPOS DESTACADOS
========================= */

.products {
    padding: 110px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(11, 44, 95, 0.08);
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 70px rgba(11, 44, 95, 0.13);
}

.product-image {
    display: block;
    overflow: hidden;
    background: #eef6ff;
}

.product-image img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 30px;
}

.product-content::before {
    content: "Equipo industrial";
    display: inline-flex;
    width: fit-content;
    background: #eaf3ff;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 13px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.product-title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.product-title a {
    color: #0b2c5f;
    text-decoration: none;
}

.product-title a:hover {
    color: #0d6efd;
}

.product-content p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 22px;
}

.product-specs {
    margin-bottom: 26px;
    padding-left: 0;
    list-style: none;
}

.product-specs li {
    padding: 10px 0;
    border-bottom: 1px solid #e5edf7;
    color: #475569;
}

.product-specs strong {
    color: #0b2c5f;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: auto;
}

.btn-details,
.btn-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 13px;
    font-weight: 800;
    transition: 0.25s ease;
    text-decoration: none !important;
}

.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1f6fff 0%, #0052cc 100%);
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: 0.25s ease;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
}

.btn-details:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(13, 110, 253, 0.30);
}

.btn-product {
    background: #ffffff;
    color: #128c4a;
    border: 1px solid #b7f0cd;
}

.btn-product:hover {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #0b2c5f !important;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
    box-shadow: 0 10px 24px rgba(11, 44, 95, 0.08);
}

.btn-secondary-custom:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(13, 110, 253, 0.22);
}

/* =========================
        SINGLE EQUIPO
========================= */

.single-equipo-page {
    background: #f8fbff;
}

.single-equipo-hero {
    padding: 100px 0;
}

.single-equipo-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #0b2c5f;
    margin: 20px 0;
}

.single-equipo-description {
    color: #6b7280;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ===== GALERÍA ===== */

.product-gallery-wrapper {
    width: 100%;
}

.product-main-image {
    width: 100%;
    height: 560px;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.product-main-image:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.product-thumb {
    width: 120px;
    height: 90px;
    border: 3px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    cursor: pointer;
    transition: 0.25s ease;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.product-thumb:hover img {
    transform: scale(1.08);
}

.product-thumb:hover {
    transform: translateY(-3px);
}

.product-thumb.active {
    border-color: #0d6efd;
}

/* ===== ESPECIFICACIONES ===== */

.product-specs {
    margin-bottom: 26px;
    padding-left: 0;
    list-style: none;
}

.product-specs li {
    padding: 14px 0;
    border-bottom: 1px solid #dbe3ec;
    color: #374151;
}

.product-specs strong {
    color: #0b2c5f;
}

/* ===== BOTONES SINGLE EQUIPO ===== */

.single-equipo-page .btn-details {
    display: inline-block;
    width: 100%;
    text-align: center;
    border: 2px solid #0d6efd;
    color: #0d6efd;
    padding: 13px;
    border-radius: 8px;
    font-weight: 800;
    margin-top: auto;
    margin-bottom: 12px;
    transition: 0.3s ease;
}

.single-equipo-page .btn-details:hover {
    background: #0d6efd;
    color: #ffffff;
}

.single-equipo-page .btn-product {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #25D366;
    color: #ffffff;
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    transition: 0.3s ease;
}

.btn-product:hover {
    background: #1ebe5d;
    color: #ffffff;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991px) {

    .single-equipo-hero {
        padding: 70px 0;
    }

    .single-equipo-hero h1 {
        font-size: 40px;
    }

    .product-main-image {
        height: 420px;
    }
}

@media (max-width: 576px) {

    .product-main-image {
        height: 320px;
    }

    .product-thumbnails {
        gap: 10px;
    }

    .product-thumb {
        width: calc(50% - 5px);
        height: 90px;
    }
}

/* =========================
        CATÁLOGO
========================= */

.catalog-page {
    background: #f8fbff;
}

.catalog-hero {
    padding: 90px 0 50px;
    text-align: center;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.catalog-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #0b2c5f;
    margin-bottom: 18px;
}

.catalog-hero p {
    color: #6b7280;
    font-size: 18px;
    max-width: 680px;
    margin: 0 auto;
}

.catalog-products {
    padding: 60px 0 100px;
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
}

.filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0b2c5f;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid #dbe3ec;
    transition: 0.3s ease;
}

.filter-link:hover,
.filter-link.active {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

.product-content h3 a {
    color: #0b2c5f;
}

.product-content h3 a:hover {
    color: #0d6efd;
}

.catalog-pagination {
    margin-top: 50px;
    text-align: center;
}

.catalog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.catalog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #0b2c5f;
    font-weight: 700;
    border: 1px solid #dbe3ec;
}

.catalog-pagination .page-numbers.current,
.catalog-pagination .page-numbers:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

.catalog-empty {
    text-align: center;
    background: #ffffff;
    padding: 60px 30px;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.catalog-empty h2 {
    color: #0b2c5f;
    margin-bottom: 12px;
}

.catalog-empty p {
    color: #6b7280;
}

/* =========================
    CONTACTO FORMULARIO
========================= */

.contact-form-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #07172f 0%, #0b2c5f 100%);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-form-info .section-title {
    color: #ffffff;
}

.contact-form-info p {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.contact-form-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-form-info li {
    color: #cbd5e1;
    margin-bottom: 14px;
}

.contact-form-info strong {
    color: #ffffff;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.contact-form-card input,
.contact-form-card textarea,
.contact-form-card select {
    border-radius: 14px !important;
    border: 1px solid #dbe3ec !important;
    padding: 14px 16px !important;
}

.contact-form-card button,
.contact-form-card .ff-btn-submit {
    width: 100%;
    border-radius: 14px !important;
    padding: 15px 24px !important;
    background: #0d6efd !important;
    font-weight: 800 !important;
}

@media (max-width: 991px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 80px 0;
    }

    .contact-form-card {
        padding: 28px;
    }
}

/* =========================
            FOOTER
========================= */

.site-footer {
    background: #07172f;
    color: #cbd5e1;
    padding: 70px 0 0;
    margin-top: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 70px;
    padding-bottom: 50px;
}

.footer-logo {
    width: 130px;
    height: auto;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 10px;
    border-radius: 18px;
}

.footer-brand p {
    color: #cbd5e1;
    line-height: 1.8;
    max-width: 340px;
    margin: 0;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 22px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    color: #cbd5e1;
    margin-bottom: 13px;
    line-height: 1.6;
}

.footer-column li span {
    color: #93c5fd;
    font-weight: 800;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.25s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* =========================
   FIX ALINEACIÓN CARDS
========================= */

.products .row > [class*="col-"],
.catalog-products .row > [class*="col-"] {
    display: flex;
}

.products .product-card,
.catalog-products .product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products .product-content,
.catalog-products .product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.products .btn-details,
.catalog-products .btn-details {
    margin-top: auto;
}

/* =========================
    PRODUCTOS RELACIONADOS
========================= */

.related-products {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.related-products .product-card {
    height: 100%;
}

.related-products .product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-products .btn-details {
    margin-top: auto;
}
