/**
 * DHG - Estilos Personalizados
 * ========================================
 * Colores principales:
 * - Gris azulado: #5A7684
 * - Rojo: #B40B0B
 * - Negro/Blanco: textos
 * Tipografía: Poppins
 */

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    --dhg-gris-azulado: #5A7684;
    --dhg-rojo: #B40B0B;
    --dhg-rojo-hover: #8a0909;
    --dhg-negro: #1a1a1a;
    --dhg-blanco: #ffffff;
    --dhg-gris-claro: #f8f9fa;
    --dhg-gris-medio: #e9ecef;
    --dhg-gris-texto: #666666;

    /* Sombras */
    --dhg-shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
    --dhg-shadow-md: 0 10px 40px rgba(0, 0, 0, 0.1);
    --dhg-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Tamaños de tipografía */
    --dhg-h1: 48px;
    --dhg-h2: 32px;
    --dhg-h3: 24px;
    --dhg-p: 16px;
    --dhg-p-small: 14px;
}

/* ========================================
   TIPOGRAFÍA GLOBAL
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', sans-serif;
}

h1, .h1 {
    font-size: var(--dhg-h1);
    font-weight: 700;
    line-height: 1.2;
}

h2, .h2 {
    font-size: var(--dhg-h2);
    font-weight: 600;
    line-height: 1.3;
}

h3, .h3 {
    font-size: var(--dhg-h3);
    font-weight: 600;
    line-height: 1.4;
}

p, .p {
    font-size: var(--dhg-p);
    line-height: 1.7;
}

/* ========================================
   COLORES DE FONDO
   ======================================== */
.bg-dhg-gris {
    background-color: var(--dhg-gris-azulado) !important;
}

.bg-dhg-rojo {
    background-color: var(--dhg-rojo) !important;
}

.bg-dhg-degradado {
    background: linear-gradient(135deg, var(--dhg-gris-azulado) 0%, #3d5a6a 100%);
}

.bg-dhg-degradado-oscuro {
    background: linear-gradient(135deg, #3d5a6a 0%, #2a3f4d 100%);
}

/* ========================================
   COLORES DE TEXTO
   ======================================== */
.text-dhg-gris {
    color: var(--dhg-gris-azulado) !important;
}

.text-dhg-rojo {
    color: var(--dhg-rojo) !important;
}

/* ========================================
   BOTONES DHG
   ======================================== */
.btn-dhg-rojo {
    background-color: var(--dhg-rojo);
    color: var(--dhg-blanco);
    border: none;
    padding: 14px 32px;
    font-size: var(--dhg-p);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-dhg-rojo:hover {
    background-color: var(--dhg-rojo-hover);
    color: var(--dhg-blanco);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 11, 11, 0.3);
}

.btn-dhg-gris {
    background-color: var(--dhg-gris-azulado);
    color: var(--dhg-blanco);
    border: none;
    padding: 14px 32px;
    font-size: var(--dhg-p);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-dhg-gris:hover {
    background-color: #4a6474;
    color: var(--dhg-blanco);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 118, 132, 0.3);
}

.btn-dhg-outline {
    background-color: transparent;
    color: var(--dhg-rojo);
    border: 2px solid var(--dhg-rojo);
    padding: 14px 32px;
    font-size: var(--dhg-p);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-dhg-outline:hover {
    background-color: var(--dhg-rojo);
    color: var(--dhg-blanco);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 11, 11, 0.3);
}

/* ========================================
   LINKS Y HOVERS
   ======================================== */
a {
    color: var(--dhg-rojo);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dhg-rojo-hover);
}

/* Hover específico para menú y footer */
.menu-link:hover,
.menu-link:hover > div,
.menu-item:hover > .menu-link > div,
#header .menu-container > .menu-item > .menu-link:hover {
    color: var(--dhg-rojo) !important;
}

#footer a:hover,
.footer a:hover,
footer a:hover {
    color: var(--dhg-rojo) !important;
}

/* ========================================
   FOOTER DHG - Rediseño
   ======================================== */
.dhg-footer {
    background: none;
    border: none;
}

.dhg-footer-main {
    background-color: #c4c4c4;
    padding: 60px 0 50px;
}

.dhg-footer-logo {
    max-width: 180px;
    margin-bottom: 15px;
}

.dhg-footer-razonsocial {
    font-weight: 700;
    color: var(--dhg-negro);
    margin-bottom: 5px;
    font-size: 15px;
}

.dhg-footer-slogan {
    color: #444;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dhg-footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dhg-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 14px;
}

.dhg-footer-contact-item i {
    color: var(--dhg-gris-azulado);
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.dhg-footer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dhg-negro);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.dhg-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dhg-footer-links li {
    margin-bottom: 8px;
}

.dhg-footer-links li a {
    color: #444;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dhg-footer-links li a:hover {
    color: var(--dhg-rojo) !important;
}

.dhg-footer-links-row {
    margin-bottom: 30px;
}

.dhg-footer-bottom-row {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dhg-footer-social {
    display: flex;
    gap: 12px;
}

.dhg-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dhg-gris-azulado);
    color: #fff !important;
    font-size: 18px;
    transition: all 0.3s ease;
}

.dhg-footer-social-link:hover {
    background: var(--dhg-gris-azulado);
    transform: translateY(-2px);
    color: #fff !important;
    opacity: 0.8;
}

.dhg-footer-certifications {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.dhg-footer-certifications img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.dhg-footer-certifications img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Copyright bar */
.dhg-footer-copyright {
    background-color: var(--dhg-gris-azulado);
    padding: 18px 0;
}

.dhg-footer-copyright p {
    color: #fff;
    margin: 0;
    font-size: 14px;
}

.dhg-footer-copyright strong {
    font-weight: 700;
    color: #fff;
}

.dhg-footer-claim {
    font-weight: 400;
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
}

/* Links en spans */
span a:hover,
a span:hover {
    color: var(--dhg-rojo) !important;
}

/* Menú activo */
.menu-item.current > .menu-link > div {
    color: var(--dhg-rojo) !important;
}

/* ========================================
   SECCIÓN EXPERTOS (Hero-26 style)
   ======================================== */
.dhg-expertos {
    padding: 80px 0;
    background-color: var(--dhg-gris-claro);
}

.dhg-expertos-content {
    padding-right: 30px;
}

.dhg-expertos-gallery {
    max-width: 100%;
    width: 100%;
}

.dhg-expertos-content h2 {
    color: var(--dhg-gris-azulado);
    margin-bottom: 24px;
}

.dhg-expertos-content h2 span {
    color: var(--dhg-rojo);
}

.dhg-expertos-content p {
    color: var(--dhg-negro);
    margin-bottom: 16px;
}

.dhg-expertos-gallery {
    position: relative;
}

.dhg-expertos-gallery .carousel {
    min-height: 400px;
}

.dhg-expertos-gallery .carousel-inner,
.dhg-expertos-gallery .carousel-item {
    min-height: 400px;
}

.dhg-expertos-gallery .carousel-item img {
    border-radius: 12px;
    box-shadow: var(--dhg-shadow-lg);
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.dhg-expertos-gallery .carousel-caption {
    background: rgba(90, 118, 132, 0.9);
    border-radius: 8px;
    padding: 15px 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

/* ========================================
   SECCIÓN PARA QUIÉN TRABAJAMOS (Círculos)
   ======================================== */
.dhg-clientes {
    padding: 80px 0;
    background-color: var(--dhg-blanco);
}

.dhg-clientes .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.dhg-clientes .section-title h2 {
    color: var(--dhg-gris-azulado);
}

.dhg-cliente-circle {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.dhg-cliente-circle:hover {
    transform: translateY(-10px);
}

.dhg-cliente-circle .circle-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 4px solid var(--dhg-gris-azulado);
    transition: border-color 0.3s ease;
}

.dhg-cliente-circle:hover .circle-img {
    border-color: var(--dhg-rojo);
}

.dhg-cliente-circle .circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dhg-cliente-circle h4 {
    color: var(--dhg-gris-azulado);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dhg-cliente-circle p {
    color: var(--dhg-gris-texto);
    font-size: var(--dhg-p-small);
}

/* ========================================
   SECCIÓN PRODUCTOS (Gallery hover)
   ======================================== */
.dhg-productos {
    padding: 80px 0;
    background: var(--dhg-gris-claro);
}

.dhg-productos .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.dhg-productos .section-title h2 {
    color: var(--dhg-gris-azulado);
}

.dhg-producto-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    height: 320px;
    cursor: pointer;
}

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

.dhg-producto-card:hover img {
    transform: scale(1.1);
}

.dhg-producto-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(90, 118, 132, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dhg-producto-card:hover .overlay {
    opacity: 1;
}

.dhg-producto-card .overlay h4 {
    color: var(--dhg-blanco);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dhg-producto-card .overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--dhg-p-small);
    margin: 0;
}

/* Título siempre visible */
.dhg-producto-card .title-always {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 40px 20px 20px;
}

.dhg-producto-card .title-always h4 {
    color: var(--dhg-blanco);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* ========================================
   SECCIÓN MARCAS LÍDERES (Hero-29)
   ======================================== */
.dhg-marcas {
    padding: 80px 0;
    background: var(--dhg-blanco);
}

.dhg-marcas .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.dhg-marcas .tagline {
    color: var(--dhg-rojo);
    font-size: var(--dhg-p-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.dhg-marcas .section-title h2 {
    color: var(--dhg-gris-azulado);
    margin-bottom: 20px;
}

.dhg-marcas .section-title p {
    color: var(--dhg-gris-texto);
    max-width: 700px;
    margin: 0 auto;
}

.dhg-marcas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.dhg-marca-item {
    padding: 20px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.dhg-marca-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.dhg-marca-item img {
    max-height: 120px;
    width: auto;
    max-width: 200px;
    filter: grayscale(100%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

.dhg-marca-item:hover img {
    filter: grayscale(0%);
}

/* ========================================
   SECCIÓN INSTALACIONES (3 Columnas con patrón)
   ======================================== */
.dhg-instalaciones {
    padding: 80px 0;
    background: var(--dhg-gris-claro);
}

.dhg-instalaciones .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.dhg-instalaciones .section-title h2 {
    color: var(--dhg-gris-azulado);
}

.dhg-instalaciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.instalaciones-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.instalaciones-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.instalaciones-item.corto {
    height: 250px;
}

.instalaciones-item.largo {
    height: 515px;
}

.instalaciones-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.instalaciones-item:hover img {
    transform: scale(1.05);
}

.instalaciones-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(90, 118, 132, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instalaciones-item:hover .overlay {
    opacity: 1;
}

.instalaciones-item .overlay i {
    color: var(--dhg-blanco);
    font-size: 36px;
}

@media (max-width: 991px) {
    .dhg-instalaciones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .dhg-instalaciones-grid {
        grid-template-columns: 1fr;
    }
    .instalaciones-item.corto,
    .instalaciones-item.largo {
        height: 300px;
    }
}

/* ========================================
   SECCIÓN CONTACTO HOME (Form-8) - Rediseñado
   ======================================== */
.dhg-contacto-home-wrapper {
    position: relative;
}

.dhg-contacto-home-bg {
    position: relative;
    padding: 80px 0 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.dhg-contacto-home-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 118, 132, 0.75) 0%, rgba(45, 60, 70, 0.65) 100%);
}

.dhg-contacto-home-bg .container {
    position: relative;
    z-index: 1;
}

.dhg-contacto-home-bg .info-col {
    color: var(--dhg-blanco);
    padding-right: 50px;
}

.dhg-contacto-home-bg .info-col h2 {
    color: var(--dhg-blanco);
    margin-bottom: 24px;
}

.dhg-contacto-home-bg .info-col p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.dhg-contacto-home-bg .contact-info {
    margin-bottom: 30px;
}

.dhg-contacto-home-bg .contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.dhg-contacto-home-bg .contact-info-item i {
    color: var(--dhg-rojo);
    font-size: 20px;
    margin-right: 15px;
    width: 24px;
}

.dhg-contacto-home-bg .contact-info-item span {
    color: var(--dhg-blanco);
}

.dhg-contacto-home-bg .form-col-wrapper {
    position: relative;
}

.dhg-contacto-home-bg .form-col {
    background: var(--dhg-blanco);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    margin-bottom: -250px;
}

.dhg-contacto-home-bg .form-col h3 {
    color: var(--dhg-gris-azulado);
    margin-bottom: 30px;
}

.dhg-contacto-home-bg .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: var(--dhg-p-small);
    transition: border-color 0.3s ease;
}

.dhg-contacto-home-bg .form-control:focus {
    border-color: var(--dhg-rojo);
    box-shadow: 0 0 0 3px rgba(180, 11, 11, 0.1);
}

/* Zona blanca inferior con redes sociales */
.dhg-contacto-home-footer {
    background: var(--dhg-blanco);
    padding: 50px 0 60px;
}

.social-links-home h4 {
    color: var(--dhg-gris-azulado);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.social-icons-large {
    display: flex;
    gap: 15px;
}

.social-icons-large a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--dhg-gris-azulado);
    border-radius: 50%;
    color: var(--dhg-blanco);
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icons-large a:hover {
    background: var(--dhg-rojo);
    transform: translateY(-3px);
}

/* Estilos antiguos para compatibilidad */
.dhg-contacto-home {
    position: relative;
    padding: 100px 0;
    margin-bottom: 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.dhg-contacto-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 118, 132, 0.75) 0%, rgba(45, 60, 70, 0.65) 100%);
}

.dhg-contacto-home .container {
    position: relative;
    z-index: 1;
}

.dhg-contacto-home .info-col {
    color: var(--dhg-blanco);
    padding-right: 50px;
}

.dhg-contacto-home .info-col h2 {
    color: var(--dhg-blanco);
    margin-bottom: 24px;
}

.dhg-contacto-home .info-col p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.dhg-contacto-home .contact-info {
    margin-bottom: 30px;
}

.dhg-contacto-home .contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.dhg-contacto-home .contact-info-item i {
    color: var(--dhg-rojo);
    font-size: 20px;
    margin-right: 15px;
    width: 24px;
}

.dhg-contacto-home .contact-info-item span {
    color: var(--dhg-blanco);
}

.dhg-contacto-home .form-col {
    background: var(--dhg-blanco);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dhg-contacto-home .form-col h3 {
    color: var(--dhg-gris-azulado);
    margin-bottom: 30px;
}

.dhg-contacto-home .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: var(--dhg-p-small);
    transition: border-color 0.3s ease;
}

.dhg-contacto-home .form-control:focus {
    border-color: var(--dhg-rojo);
    box-shadow: 0 0 0 3px rgba(180, 11, 11, 0.1);
}

.dhg-contacto-home .social-links {
    margin-top: 30px;
}

.dhg-contacto-home .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--dhg-blanco);
    transition: all 0.3s ease;
}

.dhg-contacto-home .social-links a:hover {
    background: var(--dhg-rojo);
    transform: translateY(-3px);
}

/* ========================================
   PÁGINA BLOG (Cards modernas)
   ======================================== */
.dhg-blog-hero {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}

.dhg-blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 118, 132, 0.85) 0%, rgba(45, 60, 70, 0.8) 100%);
}

.dhg-blog-hero .container {
    position: relative;
    z-index: 1;
}

.dhg-blog {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.dhg-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.95);
}

.dhg-blog-header {
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.dhg-blog-header h1 {
    color: var(--dhg-gris-azulado);
}

.dhg-blog-card {
    background: var(--dhg-blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--dhg-shadow-md);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.dhg-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--dhg-shadow-lg);
}

.dhg-blog-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.dhg-blog-card:hover .card-image img {
    transform: scale(1.1);
}

.dhg-blog-card .card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--dhg-rojo);
    color: var(--dhg-blanco);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.dhg-blog-card .card-body {
    padding: 24px;
}

.dhg-blog-card .card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #888;
}

.dhg-blog-card .card-meta span {
    display: flex;
    align-items: center;
}

.dhg-blog-card .card-meta span:not(:last-child)::after {
    content: '•';
    margin: 0 10px;
}

.dhg-blog-card .card-meta i {
    margin-right: 6px;
}

.dhg-blog-card .card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dhg-gris-azulado);
    margin-bottom: 12px;
    line-height: 1.4;
}

.dhg-blog-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.dhg-blog-card .card-title a:hover {
    color: var(--dhg-rojo);
}

.dhg-blog-card .card-excerpt {
    color: var(--dhg-gris-texto);
    font-size: var(--dhg-p-small);
    margin-bottom: 20px;
}

.dhg-blog-card .read-more {
    color: var(--dhg-rojo);
    font-weight: 600;
    font-size: var(--dhg-p-small);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.dhg-blog-card .read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dhg-blog-card .read-more:hover i {
    transform: translateX(5px);
}

/* ========================================
   PÁGINA CONTACTO COMPLETA
   ======================================== */
.dhg-contacto-page {
    padding: 0;
}

.dhg-contacto-hero {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}

.dhg-contacto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 118, 132, 0.95) 0%, rgba(45, 60, 70, 0.9) 100%);
}

.dhg-contacto-map {
    height: 450px;
    width: 100%;
}

.dhg-contacto-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(50%);
}

/* ========================================
   NÚMEROS / ESTADÍSTICAS
   ======================================== */
.dhg-numeros {
    background: linear-gradient(135deg, var(--dhg-gris-azulado) 0%, #4a6474 100%);
    border: none !important;
    box-shadow: none !important;
    font-size: 0;
    line-height: 0;
}

.dhg-numeros::after,
.dhg-numeros::before {
    display: none !important;
}

.dhg-numeros .container-fluid {
    font-size: 0;
    line-height: 0;
}

.dhg-numeros .row {
    border: none !important;
    margin: 0 !important;
    font-size: 0;
}

.dhg-numeros .row > [class*="col"] {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
}

.dhg-numero-item {
    text-align: center;
    padding: 40px 20px;
    color: var(--dhg-blanco);
    border: none !important;
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dhg-numero-item i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.dhg-numero-item .counter {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dhg-numero-item .counter span + * {
    font-size: 28px;
    font-weight: 600;
}

.dhg-numero-item p {
    font-size: var(--dhg-p-small);
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    :root {
        --dhg-h1: 36px;
        --dhg-h2: 28px;
        --dhg-h3: 20px;
    }

    .dhg-expertos-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .dhg-contacto-home .info-col {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .dhg-cliente-circle .circle-img {
        width: 150px;
        height: 150px;
    }

    /* Mejoras de espaciado en tablet */
    .dhg-expertos-content .d-flex {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px;
    }

    .dhg-expertos-content .btn-dhg-gris,
    .dhg-expertos-content .btn-dhg-rojo {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .dhg-instalaciones-grid {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    :root {
        --dhg-h1: 32px;
        --dhg-h2: 24px;
        --dhg-h3: 18px;
    }

    .dhg-expertos,
    .dhg-clientes,
    .dhg-productos,
    .dhg-marcas,
    .dhg-instalaciones,
    .dhg-contacto-home {
        padding: 50px 0;
    }

    .dhg-cliente-circle .circle-img {
        width: 120px;
        height: 120px;
    }

    .dhg-producto-card {
        height: 220px;
    }

    /* Botones con más respiración en móvil */
    .btn-dhg-gris,
    .btn-dhg-rojo {
        margin-bottom: 10px;
        padding: 14px 28px;
    }

    /* Números con mejor espaciado */
    .dhg-numero-item {
        padding: 30px 15px;
    }

    .dhg-numero-item .counter {
        font-size: 36px;
    }

    .dhg-numero-item .counter span + * {
        font-size: 24px;
    }

    /* Instalaciones en grid de 1 columna */
    .dhg-instalaciones-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .instalaciones-item.corto,
    .instalaciones-item.largo {
        height: 300px;
    }

    /* Marcas con más espacio */
    .dhg-marcas {
        padding: 50px 0;
    }

    .dhg-marca-item {
        padding: 15px;
    }

    /* Productos grid en 2 columnas en móvil */
    .dhg-productos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

/* ========================================
   ESTILOS ADICIONALES PERSONALIZADOS
   ======================================== */

/* Lista de características expertos */
.dhg-features-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.dhg-features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 500;
    color: var(--dhg-negro);
}

.dhg-features-list li i {
    color: var(--dhg-rojo);
    font-size: 22px;
    margin-right: 12px;
}

/* Círculos solo texto */
.dhg-cliente-circle-text {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.dhg-cliente-circle-text:hover {
    transform: translateY(-10px);
}

.dhg-cliente-circle-text .circle-content {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--dhg-gris-azulado);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(90, 118, 131, 0.3);
}

.dhg-cliente-circle-text:hover .circle-content {
    background-color: #4a6673;
    box-shadow: 0 15px 40px rgba(90, 118, 131, 0.4);
}

.dhg-cliente-circle-text h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding: 20px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Productos - altura uniforme */
.dhg-producto-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    height: 320px;
}

/* Marcas - Grid en 3 columnas */
.dhg-marcas-grid-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 50px;
}

.dhg-marcas-grid-columns .marcas-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dhg-marcas-grid-columns .dhg-marca-item {
    padding: 20px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.dhg-marcas-grid-columns .dhg-marca-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.dhg-marcas-grid-columns .dhg-marca-item img {
    max-height: 120px;
    width: auto;
    max-width: 200px;
    display: block;
    margin: 0 auto;
    filter: grayscale(100%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

.dhg-marcas-grid-columns .dhg-marca-item:hover img {
    filter: grayscale(0%);
}

/* Instalaciones - Masonry mejorado */
.dhg-instalaciones .dhg-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    grid-auto-rows: 200px;
}

.dhg-instalaciones .dhg-masonry .dhg-masonry-item:nth-child(1) {
    grid-row: span 1;
}

.dhg-instalaciones .dhg-masonry .dhg-masonry-item:nth-child(2) {
    grid-row: span 2;
}

.dhg-instalaciones .dhg-masonry .dhg-masonry-item:nth-child(3) {
    grid-row: span 2;
}

.dhg-instalaciones .dhg-masonry .dhg-masonry-item:nth-child(4) {
    grid-row: span 1;
}

.dhg-instalaciones .dhg-masonry .dhg-masonry-item:nth-child(5) {
    grid-row: span 1;
}

.dhg-instalaciones .dhg-masonry .dhg-masonry-item:nth-child(6) {
    grid-row: span 2;
}

/* Contacto Home - Fondo más visible */
.dhg-contacto-home::before {
    background: linear-gradient(135deg, rgba(90, 118, 132, 0.75) 0%, rgba(45, 60, 70, 0.7) 100%);
}

/* Bordes redondeados generales */
.dhg-expertos-gallery .carousel-item img,
.dhg-masonry-item img,
.dhg-blog-card .card-image img {
    border-radius: 8px;
}

@media (max-width: 991px) {
    .dhg-marcas-grid-columns {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .dhg-marcas-grid-columns .marcas-column {
        flex: unset;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dhg-instalaciones .dhg-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .dhg-cliente-circle-text .circle-content {
        width: 160px;
        height: 160px;
    }

    .dhg-cliente-circle-text h4 {
        font-size: 15px;
    }
}

/* ========================================
   HERO PÁGINAS INTERNAS
   ======================================== */
.dhg-page-hero {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.dhg-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 118, 132, 0.85) 0%, rgba(45, 60, 70, 0.8) 100%);
}

.dhg-page-hero .container {
    position: relative;
    z-index: 1;
}

.dhg-page-hero-content {
    text-align: center;
    color: var(--dhg-blanco);
}

.dhg-page-hero-content h1 {
    color: var(--dhg-blanco);
    margin-bottom: 20px;
    font-size: 48px;
}

.dhg-page-hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.dhg-page-hero-tagline {
    font-size: 16px !important;
    font-style: italic;
    font-weight: 300;
    margin-top: 15px !important;
    opacity: 0.85;
}

/* ========================================
   MAPA CONTACTO
   ======================================== */
.dhg-contacto-map {
    height: 400px;
    width: 100%;
}

.dhg-contacto-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.dhg-contacto-map iframe:hover {
    filter: grayscale(0%);
}

/* Responsive Hero */
@media (max-width: 767px) {
    .dhg-page-hero {
        padding: 80px 0 50px;
    }

    .dhg-page-hero-content h1 {
        font-size: 32px;
    }

    .dhg-page-hero-content p {
        font-size: 16px;
    }

    .dhg-contacto-map {
        height: 300px;
    }

    .dhg-newsletter .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .dhg-newsletter .form-control,
    .dhg-newsletter .btn-dhg-rojo {
        border-radius: 50px;
        width: 100%;
    }
}

/* ========================================
   HEADER PERSONALIZADO DHG
   ======================================== */
.dhg-header #logo {
    margin-left: 20px;
}

.dhg-header .header-row {
    padding: 5px 0;
}

/* Crear espacio blanco debajo del menú en modo no-sticky */
#header.dhg-header #header-wrap {
    background: var(--dhg-blanco);
}

/* Mantener el mismo estilo en sticky */
#header.dhg-header.sticky-header #header-wrap {
    background: var(--dhg-blanco);
}

/* Menú principal con color azul-verdoso */
.dhg-menu .menu-link {
    color: var(--dhg-gris-azulado) !important;
    font-weight: 500;
    font-size: 15px;
}

.dhg-menu .menu-link:hover,
.dhg-menu .menu-item.current .menu-link {
    color: var(--dhg-rojo) !important;
}

/* Botones del header */
.dhg-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
}

.btn-area-cliente,
.btn-registro {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-area-cliente {
    background: var(--dhg-gris-azulado);
    color: #fff !important;
}

.btn-area-cliente:hover {
    background: #4a6474;
    transform: translateY(-2px);
}

.btn-registro {
    background: var(--dhg-rojo);
    color: #fff !important;
}

.btn-registro:hover {
    background: var(--dhg-rojo-hover);
    transform: translateY(-2px);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(90, 118, 132, 0.3);
}

.lang-link {
    color: var(--dhg-gris-azulado) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-link:hover,
.lang-link.active {
    color: var(--dhg-rojo) !important;
}

.lang-separator {
    color: var(--dhg-gris-azulado);
    font-weight: 300;
}

/* Responsive Header */
@media (max-width: 991px) {
    .dhg-header-actions {
        display: none;
    }

    .dhg-header #logo {
        margin-left: 10px;
    }

    /* Agregar botones al menú móvil */
    .primary-menu .menu-container::after {
        content: '';
        display: block;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .dhg-instalaciones .dhg-masonry {
        grid-template-columns: 1fr;
    }

    .dhg-instalaciones .dhg-masonry .dhg-masonry-item {
        grid-row: span 1 !important;
    }
}

/* ========================================
   HEADER STICKY - Margen uniforme
   ======================================== */
#header .header-wrap-clone {
    /* Dejar que el framework JS calcule la altura correcta */
    min-height: 0;
}

/* Asegurar que el header siempre tenga el mismo margen */
.dhg-header #header-wrap {
    margin-bottom: 0;
}

/* Solo mostrar header-wrap-clone cuando sticky está activo (no en transparent-header inicial) */
.transparent-header #header .header-wrap-clone {
    display: none !important;
}

.transparent-header #header.sticky-header ~ .header-wrap-clone,
#header.sticky-header ~ .header-wrap-clone {
    display: block !important;
}

/* ========================================
   PARA QUIÉN TRABAJAMOS - Móvil 100%
   ======================================== */
@media (max-width: 767px) {
    .dhg-clientes .col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .dhg-cliente-circle-text {
        margin-bottom: 20px;
    }

    .dhg-cliente-circle-text .circle-content {
        width: 220px;
        height: 220px;
    }
}

/* ========================================
   NEWSLETTER CON FONDO DE IMAGEN
   ======================================== */
.dhg-newsletter {
    padding: 80px 0;
    background-image: url('/img/flujo/fondo-blog.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.dhg-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.dhg-newsletter .container {
    position: relative;
    z-index: 1;
}

.dhg-newsletter h3 {
    color: var(--dhg-blanco) !important;
    margin-bottom: 15px;
}

.dhg-newsletter p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.dhg-newsletter .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.dhg-newsletter .form-control {
    border-radius: 50px 0 0 50px;
    padding: 16px 24px;
    border: none;
    font-size: 15px;
}

.dhg-newsletter .btn-dhg-rojo {
    border-radius: 0 50px 50px 0;
    padding: 16px 32px;
    white-space: nowrap;
}

.dhg-newsletter .alert {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   PÁGINA CONTACTO - Rediseño completo
   ======================================== */
.dhg-contacto-section {
    padding: 80px 0;
}

.dhg-contacto-section .form-wrapper {
    background: var(--dhg-gris-claro);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--dhg-shadow-sm);
}

.dhg-contacto-section .form-wrapper h3 {
    color: var(--dhg-gris-azulado);
    margin-bottom: 30px;
}

/* Formulario cada input en una línea */
.dhg-contacto-section .form-wrapper .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: var(--dhg-p-small);
    transition: border-color 0.3s ease;
}

.dhg-contacto-section .form-wrapper .form-control:focus {
    border-color: var(--dhg-rojo);
    box-shadow: 0 0 0 3px rgba(180, 11, 11, 0.1);
}

/* Info de contacto */
.dhg-contacto-info h2 {
    color: var(--dhg-gris-azulado);
    margin-bottom: 20px;
}

.dhg-contacto-info .intro-text {
    color: var(--dhg-gris-texto);
    font-size: 17px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.dhg-contacto-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.dhg-contacto-info .contact-item i {
    color: var(--dhg-rojo);
    font-size: 22px;
    width: 28px;
    margin-top: 3px;
}

.dhg-contacto-info .contact-item span {
    color: #333;
    font-size: 16px;
}

/* Redes sociales en página contacto */
.dhg-redes-contacto {
    margin-top: 40px;
}

.dhg-redes-contacto h4 {
    color: var(--dhg-gris-azulado);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.dhg-redes-contacto .red-social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.dhg-redes-contacto .red-social-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dhg-gris-azulado);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dhg-redes-contacto .red-social-item a:hover {
    color: var(--dhg-rojo);
}

.dhg-redes-contacto .red-social-item i {
    color: var(--dhg-rojo);
    font-size: 28px;
    width: 36px;
}

.dhg-redes-contacto .red-social-item span {
    font-size: 16px;
    font-weight: 500;
}

/* Mapa dentro de container */
.dhg-map-container {
    padding: 0 15px;
}

.dhg-map-container iframe {
    border-radius: 12px;
    width: 100%;
    height: 400px;
    border: 0;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.dhg-map-container iframe:hover {
    filter: grayscale(0%);
}

/* CTA Llámanos */
.dhg-cta-llamanos {
    padding: 60px 0;
    background: var(--dhg-blanco);
    text-align: center;
}

.dhg-cta-llamanos h3 {
    color: var(--dhg-gris-azulado);
    font-weight: 700;
    margin-bottom: 25px;
}

/* Responsive contacto home */
@media (max-width: 991px) {
    .dhg-contacto-home-bg {
        padding: 60px 0 60px;
    }

    .dhg-contacto-home-bg .info-col {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .dhg-contacto-home-bg .form-col {
        margin-bottom: -200px;
    }

    .dhg-contacto-home-footer {
        padding: 50px 0 40px;
    }

    .social-links-home {
        text-align: center;
    }

    .social-icons-large {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .dhg-contacto-home-bg {
        padding: 50px 0 50px;
    }

    .dhg-contacto-home-bg .form-col {
        padding: 30px 20px;
        margin-bottom: -100px;
    }

    .dhg-contacto-home-footer {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .dhg-newsletter .input-group {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Prevenir corte en bordes móvil */
    }

    .dhg-newsletter .form-control,
    .dhg-newsletter .btn-dhg-rojo {
        border-radius: 50px;
        width: 100%;
    }

    .dhg-map-container iframe {
        height: 400px; /* Incrementado para mejor visualización en Android */
    }

    /* Fix para slider expertos en móvil */
    .dhg-expertos-gallery {
        max-width: 100%;
        overflow: hidden;
    }

    .dhg-expertos-gallery .carousel,
    .dhg-expertos-gallery .carousel-inner,
    .dhg-expertos-gallery .carousel-item {
        max-width: 100%;
    }

    .dhg-expertos-gallery .carousel-item img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* ========================================
   MOBILE RESPONSIVE FIXES
   ======================================== */

/* Reducir padding excesivo del framework en móvil */
@media (max-width: 767px) {
    /* Padding más reducido en content-wrap del framework (no en portada con py-0) */
    .content-wrap:not(.py-0) {
        padding: 2rem 0 !important;
    }

    /* Secciones principales: padding más moderado */
    .dhg-expertos,
    .dhg-clientes,
    .dhg-productos,
    .dhg-marcas,
    .dhg-instalaciones {
        padding: 40px 0;
    }

    /* Section titles: centrar y ajustar */
    .section-title {
        text-align: center;
        padding: 0 10px;
    }

    .section-title h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .section-title p {
        font-size: 14px;
    }

    /* Contacto home: ajustar columnas */
    .dhg-contacto-home-bg .info-col {
        padding-right: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .dhg-contacto-home-bg .contact-info-item {
        justify-content: center;
    }

    /* Footer: alinear a la izquierda */
    .dhg-footer-company {
        text-align: left;
        margin-bottom: 40px;
    }

    .dhg-footer-contact-items {
        justify-content: flex-start;
    }

    .dhg-footer-links-row {
        text-align: left;
    }

    .dhg-footer-links {
        margin-bottom: 25px;
    }

    .dhg-footer-social {
        justify-content: flex-start;
        margin-bottom: 25px;
    }

    .dhg-footer-certifications {
        justify-content: flex-start;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .dhg-footer-certifications img {
        max-width: 100%;
        height: auto;
    }

    /* Marcas grid: mejorar en móvil */
    .dhg-marcas-grid-columns {
        gap: 10px;
    }

    .dhg-marca-item img {
        max-width: 100px;
    }

    /* Productos cards: altura adaptativa */
    .dhg-producto-card {
        height: 200px;
        margin-bottom: 15px;
    }

    .dhg-producto-card .title-always h4 {
        font-size: 16px;
    }

    /* Círculos para quién trabajamos: centrar */
    .dhg-cliente-circle-text {
        margin-bottom: 15px;
    }

    .dhg-cliente-circle-text .circle-content {
        margin: 0 auto;
    }

    /* Botones CTA: full width en móvil */
    .dhg-cta-final .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .dhg-cta-final .btn-dhg-rojo,
    .dhg-cta-final .btn-dhg-blanco {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* CTA llámanos: centrar */
    .dhg-cta-llamanos {
        text-align: center;
        padding: 40px 15px;
    }

    .dhg-cta-llamanos h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Blog cards: espacio uniforme */
    .dhg-blog-card {
        margin-bottom: 20px;
    }

    /* Newsletter: centrar texto */
    .dhg-newsletter {
        text-align: center;
        padding: 40px 0;
    }

    .dhg-newsletter h4 {
        font-size: 20px;
    }

    /* Prevenir overflow horizontal global */
    body {
        overflow-x: hidden;
    }

    /* Hero sections: padding ajustado */
    .dhg-hero-productos,
    .dhg-hero-nosotros,
    .dhg-hero-with-text {
        min-height: 300px;
    }

    /* Expertos: texto primero */
    .dhg-expertos .row {
        flex-direction: column-reverse;
    }

    .dhg-expertos-content {
        padding-right: 0;
        text-align: left;
        margin-bottom: 30px;
    }

    .dhg-features-list {
        justify-content: flex-start;
    }

    .dhg-features-list li {
        justify-content: flex-start;
    }

    /* Accordion área cliente: centrar */
    .accordion-title {
        font-size: 16px;
    }

    /* Social links home: centrar */
    .social-links-home {
        text-align: center;
    }

    .social-icons-large {
        justify-content: center;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .content-wrap {
        padding: 3rem 0 !important;
    }

    .dhg-expertos-content {
        padding-right: 15px;
    }

    .dhg-contacto-home-bg .info-col {
        padding-right: 15px;
    }
}

/* ========================================
   SUBVENCIÓN GOBIERNO DE NAVARRA
   ======================================== */
.dhg-footer-subvencion {
    background-color: #e8e8e8;
    padding: 20px 0;
    border-top: 1px solid #d0d0d0;
}

.dhg-footer-subvencion-text {
    font-size: 16px;
    color: #444;
    margin: 0;
    line-height: 1.6;
}

.dhg-footer-subvencion-separator {
    width: 1px;
    height: 50px;
    background-color: #999;
}

.dhg-footer-subvencion-logo {
    max-height: 60px;
    width: auto;
}

/* ========================================
   CONTACTO HOME - Links color fix
   ======================================== */
.dhg-contacto-home-bg .contact-info-item a {
    color: var(--dhg-blanco);
    text-decoration: none;
}

.dhg-contacto-home-bg .contact-info-item a:hover {
    color: var(--dhg-blanco);
    text-decoration: underline;
    opacity: 0.9;
}

/* ========================================
   FOOTER - Contact links styling
   ======================================== */
.dhg-footer-contact-item a {
    color: inherit;
    text-decoration: none;
}

.dhg-footer-contact-item a:hover {
    color: var(--dhg-gris-azulado);
    text-decoration: underline;
}

/* ========================================
   MOBILE FIXES EXTRA
   ======================================== */
@media (max-width: 767px) {
    /* Carousel min-height: auto en móvil */
    .dhg-expertos-gallery .carousel,
    .dhg-expertos-gallery .carousel-inner,
    .dhg-expertos-gallery .carousel-item {
        min-height: auto;
    }

    .dhg-expertos-gallery .carousel-item img {
        height: auto;
    }

    /* Background-attachment: scroll en móvil (iOS fix) */
    .dhg-contacto-home-bg,
    .dhg-contacto-home,
    .dhg-page-hero,
    .dhg-newsletter {
        background-attachment: scroll !important;
    }

    /* Soluciones hero: más contraste en móvil */
    .dhg-hero-overlay-light {
        background: rgba(255, 255, 255, 0.65) !important;
    }

    /* Contacto page: mapa responsive */
    .mapouter, .gmap_canvas, .gmap_canvas iframe {
        height: 300px !important;
    }

    /* Subvención banner responsive */
    .dhg-footer-subvencion .row {
        text-align: center;
    }

    .dhg-footer-subvencion-text {
        margin-bottom: 15px;
    }

    .dhg-footer-subvencion-logo {
        max-height: 50px;
    }
}
