/* =============================================
   LABORATORIOS BACON — CSS PRINCIPAL
   ============================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-logo img {
    height: 120px;
    width: auto;
    display: block;
    background: transparent;
}

.header-nav { flex: 1; }

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.nav-menu li a {
    color: #2B8A9C;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
    display: block;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu li.active > a,
.nav-menu li a:hover { color: #E8621A; }

.nav-menu li.has-dropdown { position: relative; }

.nav-menu li.has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 3px solid #2B8A9C;
    z-index: 100;
    list-style: none;
}

.nav-menu li.has-dropdown:hover .dropdown { display: block; }

.nav-menu li.has-dropdown .dropdown li a {
    padding: 10px 16px;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}

.nav-menu li.has-dropdown .dropdown li a:hover { background: #f5f5f5; color: #2B8A9C; }

.nav-icon i { font-size: 16px; }

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #eee;
    padding-right: 16px;
}

.header-social a {
    color: #2B8A9C;
    font-size: 15px;
    transition: color 0.3s;
    text-decoration: none;
}

.header-social a:hover { color: #E8621A; }

.header-idiomas {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-idiomas a { opacity: 0.8; transition: opacity 0.3s; }
.header-idiomas a:hover { opacity: 1; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 2100;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #2B8A9C;
    transition: 0.3s;
}

/* =============================================
   BOTONES
   ============================================= */

.btn-naranja {
    display: inline-block;
    background: #E8621A;
    color: #fff !important;
    padding: 10px 24px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

.btn-naranja:hover { background: #c9541a; }

/* =============================================
   TITULOS DE SECCIONES
   ============================================= */
h1, h2, h3, .section-title, .nav-menu li a {
    font-family: 'Montserrat', sans-serif;
}
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2B8A9C;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-title.white { color: #fff; }

.section-subtitle {
    text-align: center;
    color: #555;
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.section-subtitle.white { color: rgba(255,255,255,0.9); }

/* =============================================
   HERO
   ============================================= */

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27, 100, 120, 0.75);
}

.hero .container { position: relative; z-index: 2; width: 100%; }

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 480px;
}

.hero-text { max-width: 55%; padding: 60px 0; }

.hero-text h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-text p {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.8;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.hero-image img {
    height: 90%;
    max-height: 550px;
    width: auto;
    object-fit: contain;
}

.hero-red-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #D94F2B;
    z-index: 3;
}

/* =============================================
   PRODUCTOS HOME
   ============================================= */

.productos-home { padding: 70px 0; background: #fff; }

.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.producto-card {
    background: #f5f5f5;
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s;
}
.noticia-card .btn-naranja,
.producto-card .btn-naranja {
    display: inline-block;
    width: auto;
    align-self: center;
}

.noticia-card,
.producto-card {
    align-items: center;
}
.producto-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.producto-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: -60px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.producto-img img { width: 100%; height: 100%; object-fit: cover; }

.producto-card h3 {
    color: #2B8A9C;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.producto-card ul {
    list-style: disc;
    text-align: left;
    padding-left: 20px;
    color: #555;
    font-size: 14px;
    margin-bottom: 24px;
    flex: 1;
    width: 100%;
}

.producto-card ul li { margin-bottom: 4px; }

/* =============================================
   NOTICIAS HOME
   ============================================= */

.noticias-home { padding: 70px 0; background: #f5f5f5; }

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 20px;
}

.noticia-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.noticias-grid .noticia-card:nth-child(1) { background: #1A6575; }
.noticias-grid .noticia-card:nth-child(2) { background: #2B8A9C; }
.noticias-grid .noticia-card:nth-child(3) { background: #3AA0B5; }

.noticia-card h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.noticia-fecha { color: rgba(255,255,255,0.8); font-size: 13px; }

.noticia-card p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.6; flex: 1; }

/* =============================================
   DISTRIBUIDOR HOME
   ============================================= */

.distribuidor-home {
    padding: 70px 0;
    background: linear-gradient(135deg, #1E6E82 0%, #2B8A9C 50%, #3AA0B5 100%);
}

.distribuidor-selector { display: flex; justify-content: center; margin-bottom: 30px; }

.distribuidor-selector select {
    width: 400px;
    padding: 14px 20px;
    font-size: 15px;
    border: none;
    background: #fff;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.distribuidor-info {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    min-height: 80px;
}

.distribuidor-info h3 { font-size: 20px; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.distribuidor-info strong { font-size: 15px; display: block; margin-bottom: 6px; }
.distribuidor-info p { font-size: 14px; line-height: 1.8; }

/* =============================================
   MAPA DE LA PAGINA
   ============================================= */
.mapa-mundo { text-align: center; margin-top: 20px; }
.mapa-mundo img { max-width: 80%; opacity: 0.8; }
.mapa-container {
    position: relative;
    width: 100%;
    margin: 30px auto 0;
    overflow: hidden;
}

#mapaMundo {
    width: 100%;
    height: 500px;
}

/* =============================================
   SEGUINOS HOME
   ============================================= */

.seguinos-home { padding: 70px 0; background: #fff; text-align: center; }

.instagram-handle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.instagram-placeholder {
    background: #f5f5f5;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #2B8A9C;
    text-decoration: none;
    transition: background 0.3s;
}

.instagram-placeholder:hover { background: #e8f4f7; }

/* =============================================
   FOOTER
   ============================================= */

.footer-red-bar { height: 6px; background: #D94F2B; }

.footer-contact {
    background-image: url('/images/background-footer.jpg');
    background-size: cover;
    background-position: center bottom;
    padding: 80px 0 60px;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.site-footer { background-image: none; }

.contact-info { color: #fff; }
.contact-info p { margin-bottom: 12px; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; }
.contact-info p i { margin-top: 3px; color: rgba(255,255,255,0.7); min-width: 16px; }
.contact-info a { color: #fff; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-social { display: flex; gap: 12px; margin-top: 20px; }
.contact-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}
.contact-social a:hover { background: #E8621A; }

.contact-map iframe { border-radius: 4px; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #999; }
.contact-form textarea { resize: vertical; }
.form-success { color: #90ee90; margin-top: 10px; font-size: 14px; }

.footer-sitemap {
    background: #1E6E82;
    padding: 30px 0;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.sitemap-grid ul { list-style: disc; padding-left: 20px; }
.sitemap-grid ul li { margin-bottom: 6px; color: rgba(255,255,255,0.8); font-size: 14px; }
.sitemap-grid ul li a { color: rgba(255,255,255,0.8); text-decoration: none; }
.sitemap-grid ul li a:hover { color: #fff; }
.sitemap-grid ul ul { margin-top: 6px; list-style: circle; }

.footer-wave {
    background: #D94F2B;
    padding: 14px 0;
    text-align: center;
    margin-top: -20px;
}
.footer-wave p { color: #fff; font-size: 13px; }

/* =============================================
   WHATSAPP + SCROLL TOP
   ============================================= */

.whatsapp-float {
    position: fixed;
    bottom: 60px;
    right: 20px;
    background: #25D366;
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

.scroll-top {
    position: fixed;
    bottom: 16px;
    right: 20px;
    background: #2B8A9C;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    z-index: 999;
    transition: background 0.3s;
}

.scroll-top:hover { background: #1E6E82; }
.scroll-top.visible { display: flex; }

/* =============================================
   PÁGINAS INTERNAS — HERO
   ============================================= */
.hero-inner-page {
    height: 350px;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}
.hero-inner-page .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}
.hero-inner-page .hero-red-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: #D94F2B;
}

/* =============================================
   PÁGINAS INTERNAS — TÍTULO
   ============================================= */
.inner-page-content {
    background: #f5f5f5;
    padding: 60px 0 40px;
    text-align: center;
}
.inner-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #2B8A9C;
    margin-bottom: 16px;
}
.inner-page-title.white { color: #fff; }
.inner-page-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0;
}
.inner-page-subtitle.white { color: rgba(255,255,255,0.9); }

/* =============================================
   INSTITUCIONAL
   ============================================= */
.institucional-texto {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 20px;
}
.institucional-bloque { margin-bottom: 40px; }
.institucional-bloque h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    text-decoration: underline;
    margin-bottom: 12px;
}
.institucional-bloque p,
.institucional-bloque li { color: #555; line-height: 1.8; font-size: 0.95rem; }
.institucional-bloque ul { list-style: none; padding: 0; }
.institucional-bloque ul li::before { content: '• '; }

.pilares-section { background: #f5f5f5; padding: 60px 0; }
.pilares-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.pilar-card { text-align: center; padding: 20px 10px; }
.pilar-icon {
    width: 80px; height: 80px;
    border: 2px solid #E8621A;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: #E8621A;
    font-size: 1.8rem;
}
.pilar-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.pilar-card p { font-size: 0.85rem; color: #666; line-height: 1.7; }

/* =============================================
   REPRESENTACIONES
   ============================================= */
.rep-fila { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
.rep-teal-dark  { background: #1E7A8C; }
.rep-teal-light { background: #2B8A9C; }
.rep-gray       { background: #4a9aaa; }
.rep-gray-light { background: #f5f5f5; }
.rep-card {
    padding: 60px 50px;
    text-align: center;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.rep-gray-light .rep-card { color: #333; }
.rep-card-solo { max-width: 600px; margin: 0 auto; border-right: none; }
.rep-logo-circle {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
    padding: 15px;
}
.rep-logo-circle img { max-width: 85px; max-height: 85px; object-fit: contain; }
.rep-logo-circle span { font-weight: 800; color: #2B8A9C; font-size: 1rem; }
.rep-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.rep-url { font-size: 0.85rem; opacity: 0.8; margin-bottom: 20px !important; }
.rep-card p { font-size: 0.88rem; line-height: 1.75; opacity: 0.95; }

/* =============================================
   CERTIFICACIONES
   ============================================= */
.certificaciones-section { background: #2B8A9C; padding: 70px 0 80px; text-align: center; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.cert-card { text-align: center; color: #fff; }
.cert-logo {
    width: 160px; height: 160px;
    background: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    padding: 20px;
}
.cert-logo img { max-width: 120px; max-height: 120px; object-fit: contain; }
.cert-logo strong { font-size: 1.5rem; color: #2B8A9C; }
.cert-card h3 { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.cert-card p { font-size: 0.88rem; line-height: 1.75; color: rgba(255,255,255,0.9); }

/* =============================================
   NOTICIAS — LISTADO
   ============================================= */
.noticias-page { padding: 60px 0 80px; background: #fff; }
.noticias-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; }
.noticia-page-card {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}
.noticia-page-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.13); }
.noticia-img-link { display: block; overflow: hidden; }
.noticia-img-link img { width: 100%; height: 220px; object-fit: cover; display: block; border-bottom: 4px solid #E8621A; transition: transform 0.3s; }
.noticia-img-link:hover img { transform: scale(1.03); }
.noticia-img-placeholder { width: 100%; height: 220px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #2B8A9C; border-bottom: 4px solid #E8621A; }
.noticia-page-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.noticia-page-body h3 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: #2B8A9C; margin-bottom: 6px; line-height: 1.4; text-align: center; }
.noticia-page-body h3 a { color: inherit; text-decoration: none; }
.noticia-page-body h3 a:hover { color: #E8621A; }
.noticia-page-body .noticia-fecha { display: block; text-align: center; color: #999; font-size: 13px; margin-bottom: 12px; }
.noticia-page-body p { color: #555; font-size: 14px; line-height: 1.7; text-align: center; flex: 1; margin-bottom: 20px; }
.btn-noticia-leer { display: block; text-align: center; background: #E8621A; color: #fff; padding: 10px; font-size: 13px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; transition: background 0.3s; margin-top: auto; }
.btn-noticia-leer:hover { background: #c9541a; }
.noticias-paginacion { margin-top: 40px; display: flex; justify-content: center; }
.noticias-empty { text-align: center; color: #999; padding: 60px 0; font-size: 1.1rem; }

/* =============================================
   CALCULADORA
   ============================================= */
.calc-page { padding: 40px 0 60px; background: #fff; }
.Calculos { width:100%; max-width:1170px; margin:0 auto; position:relative; padding: 0 20px; }
.Calculos .Referencias { width:330px; position:absolute; top:40px; right:20px; }
.Calculos .Referencias h2 { float:left; font-size:12px; font-weight:bold; color:#0B5C79; padding:0 15px 0 0; margin:0; }
.Calculos .Referencias div { line-height:20px; font-size:12px; color:#999; }
.Calculos .Referencias .icoColor { display:inline-block; width:12px; height:12px; border:solid 1px #999; margin-bottom:3px; vertical-align:middle; }
.Calculos .Titulo { border-bottom:solid 1px #77BAE6; color:#0B5C79; font-size:16px; font-weight:bold; margin:30px 0 15px 0; }
.Calculos .table .tbody .th { background-color:#545454; padding:5px; text-align:center; color:#FFF; font-weight:bold; font-size:12px; white-space:nowrap; }
.Calculos .table .tbody .td { font-weight:bold; font-size:12px; text-align:center; position:relative; height:auto; }
.Calculos select, .Calculos input[type="text"], .Calculos .table .td div { position:absolute; left:0; top:0; width:100%; min-width:94%; margin:0; padding:0 3%; outline:none; border:0; height:30px; line-height:30px; text-align:right; font-size:14px; color:#212121; box-sizing:border-box; }
.Calculos .table .td > div { position:absolute; line-height:28px; box-sizing:border-box; }
.Calculos select { width:100%; min-width:100%; }
.Calculos .BackGris { background-color:#DDD; }
.Calculos .BackVerde { background-color:#DDD; }
.Calculos .BackAzul { background-color:#9DBED4; }
.Calculos .BackNaranja { background-color:#FF8E42; }
.Calculos .BotonNaranja { cursor:pointer; background-color:#F60; border:solid 1px #C83; padding:6px 15px; color:#fff; text-decoration:none; font-size:12px; }
.BotonNaranja:hover { color:#fff; background-color:#FF864C; }
.table { width:100%; }
.table, .table .thead, .table .tbody, .table .th, .table .tr, .table .td { display:flex; }
.table .tbody { width:100%; }
.table .tbody .tr { flex-flow:row wrap; width:100%; }
.table .tbody .tr .column-wrap { flex-flow:column wrap; }
.table .tbody .column-wrap .th, .table .tbody .column-wrap .td { width:100%; box-sizing:border-box; height:28px; }
.table .tbody .column-wrap .td.dnr, .table .tbody .column-wrap .th { height:34px; align-items:center; }
#conversion-table { max-width:430px; width:100%; }
#conversion-table .tbody .tr > div { flex:0 0 20%; }
#equilibrio-table { position:relative; margin-bottom:0; }
#equilibrio-table .tbody .tr > div:first-child { flex:0 0 8%; }
#equilibrio-table .tbody .tr > div:nth-child(2) { flex:0 0 6%; }
#equilibrio-table .tbody .tr > div:nth-child(3) { flex:0 0 6%; }
#equilibrio-table .tbody .tr > div:nth-child(4) { flex:0 0 15%; }
#equilibrio-table .tbody .tr > div:nth-child(5) { flex:0 0 6%; }
#equilibrio-table .tbody .tr > div:nth-child(6) { flex:0 0 9%; }
#equilibrio-table .tbody .tr > div:nth-child(7) { flex:0 0 9%; }
#equilibrio-table .tbody .tr > div:nth-child(9) { flex:0 0 9%; }
#equilibrio-table .tbody .tr > div:nth-child(10) { flex:0 0 8%; }
#equilibrio-table .tbody .tr > div:nth-child(11) { flex:0 0 8%; }
#decaimiento-table { max-width:1078px; }
#decaimiento-table .tbody .tr > div { flex:0 0 9.44%; }
#decaimiento-table .tbody .tr > div:first-child { flex:0 0 15%; }
/* PAGINACIÓN */
nav[aria-label="Pagination"] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
nav[aria-label="Pagination"] svg {
    width: 16px !important;
    height: 16px !important;
}
nav[aria-label="Pagination"] a,
nav[aria-label="Pagination"] span {
    padding: 6px 12px;
    font-size: 13px;
    color: #2B8A9C;
    border: 1px solid #ddd;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}
nav[aria-label="Pagination"] a:hover {
    background: #2B8A9C;
    color: #fff;
}
nav[aria-label="Pagination"] span[aria-current="page"] {
    background: #E8621A;
    color: #fff;
    border-color: #E8621A;
}
/* =============================================
   NOTICIA DETALLE
   ============================================= */
.noticia-detalle-page { padding: 60px 0 80px; background: #fff; }
.noticia-detalle-header { margin-bottom: 30px; }
.noticia-volver { color: #2B8A9C; text-decoration: none; font-size: 14px; font-weight: 600; display: inline-block; margin-bottom: 20px; }
.noticia-volver:hover { color: #E8621A; }
.noticia-detalle-titulo { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800; color: #2B8A9C; margin-bottom: 12px; line-height: 1.3; }
.noticia-detalle-fecha, .noticia-detalle-autor { color: #999; font-size: 14px; margin-right: 20px; }
.noticia-detalle-imagen { margin-bottom: 30px; }
.noticia-detalle-imagen img { width: 100%; max-height: 500px; object-fit: cover; border-bottom: 4px solid #E8621A; }
.noticia-detalle-contenido { font-size: 15px; line-height: 1.9; color: #444; margin-bottom: 60px; }
.noticia-detalle-contenido p { margin-bottom: 16px; }
.noticia-detalle-contenido h2, .noticia-detalle-contenido h3 { color: #2B8A9C; margin: 24px 0 12px; }
.noticia-relacionadas { margin-top: 60px; padding-top: 40px; border-top: 2px solid #f5f5f5; }
.noticia-relacionadas .section-title { margin-bottom: 30px; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 992px) {
    .productos-grid { grid-template-columns: repeat(2, 1fr); }
    .noticias-grid { grid-template-columns: 1fr; }
    .footer-contact-grid { grid-template-columns: 1fr; }
    .hero-text { max-width: 65%; }
    .hero-image img { max-height: 420px; }
    .pilares-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .noticias-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* MENU MOBILE */
    .nav-toggle { display: flex; }
    .header-nav { position: static; }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 2000;
        padding: 70px 20px 30px;
        overflow-y: auto;
        gap: 0;
        justify-content: flex-start;
        align-items: stretch;
    }

    .nav-menu.open { display: flex; }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li a {
        padding: 16px 10px;
        font-size: 15px;
        display: block;
        white-space: normal;
    }

    .nav-menu li.has-dropdown .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        background: #f9f9f9;
        min-width: auto;
    }

    .nav-menu li.has-dropdown .dropdown li a {
        padding-left: 28px;
        font-size: 14px;
    }

    .nav-menu li.has-dropdown:hover .dropdown { display: none; }
    .nav-menu li.has-dropdown .dropdown.open { display: block; }

    /* Botón cerrar menú */
    .nav-close-btn {
    position: fixed;
    top: 23px;
    right: 16px;
    z-index: 2100;
    background: #2B8A9C;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 4px;
}
.nav-close-btn.visible { display: block; }
    /* HERO */
    .hero-inner { flex-direction: column; padding: 40px 0; min-height: auto; }
    .hero-text { max-width: 100%; }
    .hero-image { position: relative; height: 280px; }
    .hero-image img { height: 280px; }
    .hero { min-height: auto; }

    /* GRIDS */
    .productos-grid { grid-template-columns: 1fr; }
    .footer-contact-grid { grid-template-columns: 1fr; }
    .sitemap-grid { grid-template-columns: 1fr; }
    .instagram-grid { grid-template-columns: 1fr; }
    .rep-fila { grid-template-columns: 1fr; }
    .rep-card { padding: 40px 25px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .pilares-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid { grid-template-columns: 1fr; max-width: 400px; margin: 40px auto 0; }
    .noticias-page-grid { grid-template-columns: 1fr; }

    /* HEADER */
    .header-social { display: none; }
    .header-logo img { height: 80px; }
}

@media (max-width: 480px) {
    .pilares-grid { grid-template-columns: 1fr; }
    .productos-grid { grid-template-columns: 1fr; }
    .distribuidor-selector select { width: 100%; }
    #mapaMundo { height: 300px; }
}

@media (max-width: 960px) {
    .dnr { display:none !important; }
    .har { height:auto !important; }
    .Calculos .Referencias { position:relative; top:auto; margin-bottom:20px; }
    #conversion-table, #decaimiento-table, #equilibrio-table { max-width:560px; width:100%; margin:0 auto; }
}

/* =============================================
   PRODUCTOS — RESPONSIVE MOBILE
   ============================================= */
@media (max-width: 768px) {
    /* Sidebar arriba, productos abajo */
    .productos-layout {
        grid-template-columns: 1fr !important;
    }

    /* Grilla de productos 1 columna */
    .productos-grid-items {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================
   PAGINACIÓN
   ============================================= */
nav[aria-label="Pagination"] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 20px 0;
}

nav[aria-label="Pagination"] svg {
    width: 14px !important;
    height: 14px !important;
    color: #2B8A9C;
}

nav[aria-label="Pagination"] a,
nav[aria-label="Pagination"] span {
    padding: 6px 10px;
    font-size: 12px;
    color: #2B8A9C;
    border: 1px solid #ddd;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    transition: all .2s;
}

nav[aria-label="Pagination"] a:hover {
    background: #2B8A9C;
    color: #fff;
    border-color: #2B8A9C;
}

nav[aria-label="Pagination"] a:hover svg {
    color: #fff;
}

nav[aria-label="Pagination"] span[aria-current="page"] {
    background: #E8621A;
    color: #fff;
    border-color: #E8621A;
}

nav[aria-label="Pagination"] span[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Ocultar el texto "Showing X to Y of Z results" en mobile */
@media (max-width: 768px) {
    nav[aria-label="Pagination"] p {
        font-size: 11px;
        text-align: center;
        width: 100%;
        margin-bottom: 8px;
    }
}

.w-5, .h-5{
    width: 25px;
}