/* =========================================================
   HOAHI S.A. — Sistema de diseño
   Bootstrap 5 + estilos propios
========================================================= */

/* =========================================================
   VARIABLES
========================================================= */

:root {
    /* Rojo de marca tomado del logo (logo_rojo.png) y de hoahi.com.py */
    --hoahi-primary: #c90104;
    --hoahi-primary-dark: #970103;
    --hoahi-primary-light: #fbe4e5;

    /* Neutros oscuros propios de Hoahi (sin azul: el sitio actual no usa navy) */
    --hoahi-navy: #23252a;
    --hoahi-navy-dark: #15161a;
    --hoahi-navy-light: #eceef0;

    --hoahi-dark: #101820;
    --hoahi-text: #4a4a4a;
    --hoahi-muted: #6c6f73;

    --hoahi-white: #ffffff;
    --hoahi-light: #f6f7f7;
    --hoahi-light-alt: #eef0f0;
    --hoahi-border: #e3e4e6;

    --hoahi-success: #257a4b;

    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;

    --header-height: 84px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 26px;

    --shadow-sm: 0 8px 24px rgba(35, 37, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(35, 37, 42, 0.12);
    --shadow-lg: 0 28px 70px rgba(35, 37, 42, 0.18);

    --transition: all 0.25s ease;
}

/* =========================================================
   BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    color: var(--hoahi-text);
    background-color: var(--hoahi-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    padding-top: var(--header-height);
}

@media (max-width: 991.98px) {
    body {
        padding-top: 76px;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hoahi-navy);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

::selection {
    color: var(--hoahi-white);
    background: var(--hoahi-primary);
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 64px 0;
    }
}

.bg-hoahi-light {
    background-color: var(--hoahi-light);
}

.bg-hoahi-navy {
    background-color: var(--hoahi-navy);
}

/* =========================================================
   BOTONES
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 15px;
}

.btn-primary {
    color: var(--hoahi-white);
    background-color: var(--hoahi-primary);
    border-color: var(--hoahi-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--hoahi-white);
    background-color: var(--hoahi-primary-dark);
    border-color: var(--hoahi-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(201, 1, 4, 0.25);
}

.btn-outline-primary {
    color: var(--hoahi-primary);
    border-color: var(--hoahi-primary);
}

.btn-outline-primary:hover {
    color: var(--hoahi-white);
    background-color: var(--hoahi-primary);
    transform: translateY(-2px);
}

.btn-dark-hoahi {
    color: var(--hoahi-white);
    background-color: var(--hoahi-navy);
    border-color: var(--hoahi-navy);
}

.btn-dark-hoahi:hover {
    color: var(--hoahi-white);
    background-color: var(--hoahi-primary);
    border-color: var(--hoahi-primary);
    transform: translateY(-2px);
}

.btn-outline-light-hoahi {
    color: var(--hoahi-white);
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light-hoahi:hover {
    color: var(--hoahi-navy);
    background: var(--hoahi-white);
    border-color: var(--hoahi-white);
    transform: translateY(-2px);
}

/* =========================================================
   ENCABEZADOS DE SECCIÓN
========================================================= */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--hoahi-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-label::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--hoahi-primary);
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.section-heading h2 span {
    color: var(--hoahi-primary);
}

.section-heading-light h2,
.section-heading-light .section-lead {
    color: var(--hoahi-white);
}

.section-lead {
    max-width: 700px;
    color: var(--hoahi-text);
    font-size: 17px;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar-hoahi {
    background-color: var(--hoahi-white);
    box-shadow: 0 1px 0 var(--hoahi-border);
    transition: var(--transition);
}

.navbar-hoahi.is-sticky {
    box-shadow: var(--shadow-md);
}

.navbar-hoahi .navbar-brand img {
    width: 150px;
    max-height: 54px;
    object-fit: contain;
}

.navbar-hoahi .nav-link {
    color: var(--hoahi-navy);
    font-weight: 600;
    font-size: 14.5px;
    padding: 30px 14px !important;
}

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

.navbar-hoahi .dropdown-menu {
    border: 0;
    border-radius: 12px;
    padding: 10px;
    margin-top: 0;
    box-shadow: var(--shadow-md);
}

.navbar-hoahi .dropdown-item {
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hoahi-navy);
}

.navbar-hoahi .dropdown-item:hover,
.navbar-hoahi .dropdown-item:focus {
    background: var(--hoahi-primary-light);
    color: var(--hoahi-primary);
}

.lang-selector .btn {
    padding: 8px 12px;
    min-height: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--hoahi-navy);
    border: 1px solid var(--hoahi-border);
    border-radius: 30px;
}

.lang-selector .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

@media (min-width: 992px) {
    .navbar-hoahi .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .navbar-hoahi .nav-link {
        padding: 12px 6px !important;
    }

    .navbar-collapse {
        padding-top: 16px;
        border-top: 1px solid var(--hoahi-border);
        margin-top: 14px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .lang-selector {
        margin-top: 10px;
    }
}

/* =========================================================
   HERO CARRUSEL
========================================================= */

.hero-carousel {
    background-color: var(--hoahi-navy);
}

.hero-carousel .carousel-item {
    height: 640px;
}

.hero-carousel .hero-img {
    width: 100%;
    height: 640px;
    object-fit: cover;
}

.hero-carousel .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(21, 22, 26, 0.92) 0%,
        rgba(21, 22, 26, 0.7) 45%,
        rgba(21, 22, 26, 0.25) 100%);
}

.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    text-align: left;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
}

.hero-caption .container {
    position: relative;
}

.hero-caption-inner {
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 16px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--hoahi-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 30px;
}

.hero-caption h1 {
    color: var(--hoahi-white);
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.hero-caption h1 span {
    display: block;
    color: var(--hoahi-primary);
}

.hero-caption p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 22px;
    height: 22px;
}

.hero-carousel .carousel-indicators {
    margin-bottom: 26px;
    justify-content: flex-start;
    left: 0;
    right: 0;
    padding-left: calc((100% - 1290px) / 2 + 12px);
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 3px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.4);
    border: 0;
}

.hero-carousel .carousel-indicators .active {
    background-color: var(--hoahi-primary);
}

@media (max-width: 1399.98px) {
    .hero-carousel .carousel-indicators {
        padding-left: 24px;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item,
    .hero-carousel .hero-img {
        height: 560px;
    }

    .hero-caption p {
        font-size: 15px;
    }
}

/* =========================================================
   NOSOTROS
========================================================= */

.about-media {
    position: relative;
}

.about-media img.about-img-main {
    width: 82%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-media img.about-img-secondary {
    position: absolute;
    right: 0;
    bottom: -30px;
    width: 46%;
    border: 8px solid var(--hoahi-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about-badge {
    position: absolute;
    top: 24px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: var(--hoahi-primary);
    color: var(--hoahi-white);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(201, 1, 4, 0.28);
}

.about-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1;
}

.about-badge span {
    font-size: 12px;
    font-weight: 600;
}

.about-feature {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.about-feature .icon-check {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hoahi-primary-light);
    color: var(--hoahi-primary);
    border-radius: 50%;
    font-size: 15px;
}

.about-feature h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 14px;
    color: var(--hoahi-muted);
    margin-bottom: 0;
}

.badge-cert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hoahi-navy);
    background: var(--hoahi-navy-light);
    border-radius: 30px;
}

@media (max-width: 991.98px) {
    .about-media {
        max-width: 480px;
        margin: 0 auto 70px;
    }
}

/* =========================================================
   TARJETAS DE PRODUCTO (líneas)
========================================================= */

.product-line-card {
    border: 1px solid var(--hoahi-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.product-line-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.product-line-card .card-img-wrap {
    height: 240px;
    overflow: hidden;
}

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

.product-line-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.product-line-card .card-body h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.product-line-card .card-body p {
    font-size: 14px;
    color: var(--hoahi-muted);
}

/* =========================================================
   CAPACIDAD Y TECNOLOGÍA
========================================================= */

.capacity-item {
    display: flex;
    gap: 16px;
    height: 100%;
    padding: 30px;
    border: 1px solid var(--hoahi-border);
    border-radius: var(--radius-md);
}

.capacity-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hoahi-primary-light);
    color: var(--hoahi-primary);
    border-radius: 50%;
    font-size: 24px;
}

.capacity-item h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.capacity-item p {
    font-size: 14px;
    color: var(--hoahi-muted);
    margin-bottom: 0;
}

.capacity-carousel img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* =========================================================
   MARCAS
========================================================= */

.brand-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    border: 1px solid var(--hoahi-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.brand-tile:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.brand-tile img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: var(--transition);
}

.brand-tile:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* =========================================================
   SOSTENIBILIDAD
========================================================= */

.sustainability-section {
    position: relative;
    color: var(--hoahi-white);
    background-size: cover;
    background-position: center;
}

.sustainability-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(21, 22, 26, 0.92), rgba(21, 22, 26, 0.55));
}

.sustainability-section .container {
    position: relative;
}

.sustainability-section p {
    color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   NOTICIAS
========================================================= */

.news-card {
    border: 1px solid var(--hoahi-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.news-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.news-card .card-img-wrap {
    height: 210px;
    overflow: hidden;
}

.news-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--hoahi-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.news-card p {
    font-size: 14px;
    color: var(--hoahi-muted);
}

/* =========================================================
   TRABAJÁ CON NOSOTROS — BANNER
========================================================= */

.careers-banner {
    position: relative;
    padding: 90px 0;
    color: var(--hoahi-white);
    background: var(--hoahi-navy) center / cover no-repeat;
}

.careers-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(21, 22, 26, 0.95), rgba(21, 22, 26, 0.65));
}

.careers-banner .container {
    position: relative;
}

.careers-banner h2 {
    color: var(--hoahi-white);
    font-size: clamp(28px, 4vw, 42px);
    max-width: 720px;
}

.careers-banner p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer-hoahi {
    background: var(--hoahi-navy-dark);
    color: rgba(255, 255, 255, 0.68);
}

.footer-hoahi .footer-top {
    padding: 80px 0 60px;
}

.footer-hoahi img.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-hoahi h3 {
    color: var(--hoahi-white);
    font-size: 15px;
    margin-bottom: 20px;
}

.footer-hoahi ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-hoahi ul li {
    margin-bottom: 11px;
    font-size: 13.5px;
}

.footer-hoahi ul li a:hover {
    color: var(--hoahi-white);
    padding-left: 3px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--hoahi-white);
    margin-right: 8px;
}

.footer-social a:hover {
    background: var(--hoahi-primary);
    border-color: var(--hoahi-primary);
}

.footer-certs img {
    height: 40px;
    background: var(--hoahi-white);
    border-radius: 6px;
    padding: 4px 8px;
    margin: 0 8px 8px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 12.5px;
}

.footer-bottom a:hover {
    color: var(--hoahi-white);
}

/* =========================================================
   BOTONES FLOTANTES
========================================================= */

.whatsapp-btn {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #25d366;
    color: var(--hoahi-white);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    color: var(--hoahi-white);
    background: #1ebc59;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 990;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--hoahi-navy);
    color: var(--hoahi-white);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--hoahi-primary);
}

/* =========================================================
   PÁGINAS INTERNAS — BREADCRUMB / PAGE HEADER
========================================================= */

.page-header {
    padding: 54px 0;
    background: var(--hoahi-light);
    border-bottom: 1px solid var(--hoahi-border);
}

.page-header h1 {
    font-size: clamp(28px, 3.5vw, 40px);
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 13.5px;
    margin-bottom: 0;
}

.breadcrumb-item.active {
    color: var(--hoahi-primary);
}

/* =========================================================
   CATÁLOGO
========================================================= */

.filter-card {
    border: 1px solid var(--hoahi-border);
    border-radius: var(--radius-md);
    padding: 26px;
}

.filter-card h3 {
    font-size: 15px;
    margin-bottom: 16px;
}

.filter-card hr {
    margin: 22px 0;
    border-color: var(--hoahi-border);
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--hoahi-white);
    box-shadow: 0 0 0 1px var(--hoahi-border);
    cursor: pointer;
}

.color-swatch.active {
    box-shadow: 0 0 0 2px var(--hoahi-primary);
}

.product-card {
    border: 1px solid var(--hoahi-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.product-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-card .card-img-wrap {
    height: 230px;
    overflow: hidden;
}

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

.product-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.product-card .card-body {
    padding: 20px;
}

.product-card .product-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--hoahi-primary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.product-card h3 {
    font-size: 17px;
    margin: 8px 0 14px;
}

/* =========================================================
   FICHA DE PRODUCTO
========================================================= */

.product-gallery .carousel-item img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.product-thumbs button {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    width: 84px;
    height: 84px;
    background: none;
}

.product-thumbs button.active {
    border-color: var(--hoahi-primary);
}

.product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info .product-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--hoahi-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-info h1 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 10px 0 18px;
}

.accordion-button:not(.collapsed) {
    color: var(--hoahi-primary);
    background-color: var(--hoahi-primary-light);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--hoahi-border);
}
