:root {
    --nav-text-dark: #171717;
    --azul-oscuro-primario: #2C3240;
    --amarillo-primario: #f18500;
}

/*********************************************** Botones *********************************************/
#btn-botones {
    background: var(--azul-oscuro-primario);
    border-color: var(--azul-oscuro-primario);
    font-weight: 600;
    padding: .65rem 1.1rem;
    border-radius: .75rem;
    font-size: 16px;
    color: white;
}

#btn-botones:hover {
    background: var(--amarillo-primario);
    border-color: var(--amarillo-primario);
    color: white;
}

#btn-botones-outline {
    background: #fff;
    color: var(--azul-oscuro-primario);
    border: 2px solid color-mix(in srgb, var(--azul-oscuro-primario) 70%, #fff 30%);
    font-weight: 600;
    border-radius: .75rem;
    padding: .65rem 1.1rem;
}

#btn-botones-outline:hover {
    background: color-mix(in srgb, var(--azul-oscuro-primario) 8%, #fff 92%);
    border-color: var(--azul-oscuro-primario);
}

/*** General Span *****/
.text-uppercase {
    color: var(--nav-text-dark);
}

b {
    font-weight: 500 !important;
    color: rgb(255, 255, 255);
}

@media (max-width: 575.98px) {
    .home-intro p {
        text-align: left;
    }

    .sec-distribuidor p {
        text-align: left;
    }

    .sec-proyectos p {
        text-align: left;
    }
}

@media (min-width: 992px) {
    .title-wrap {
        margin-top: 60px;
    }
}

.espaciado-incial{
    height: 80px;
}

/********************************************* Navbar superior Info *********************************/

/* ===== Topbar ===== */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--azul-oscuro-primario);
    /* gris oscuro */
    font-size: 0.9rem;
    z-index: 1040;
    transition: transform .25s ease, opacity .25s ease;
}

.topbar-link {
    color: #f8f9fa;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.topbar-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Cuando se oculta (scroll) */
#topbar.topbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Mover la navbar hacia abajo cuando el topbar está visible */
#topbar+#navbar {
    top: 29px;
    /* ajusta según la altura real del topbar */
}

/* Cuando el topbar está oculto, la navbar sube al tope */
#topbar.topbar-hidden+#navbar {
    top: 0;
}

/* En móviles: topbar siempre oculto y navbar al tope */
@media (max-width: 991.98px) {
    #topbar {
        display: none;
    }

    #topbar+#navbar {
        top: 0;
    }
}

/********************************************* NAVBAR *********************************************/

.navbar {
    transition:
        top 0.35s ease,
        background-color .28s cubic-bezier(.2, 0, 0, 1),
        box-shadow .28s cubic-bezier(.2, 0, 0, 1),
        color .2s linear;
    will-change: top, background-color, box-shadow, color;
}


/* Color Navbar Superior*/
.navbar.navbar-transparent {
    background: transparent;
    color: red;
}

/* Color Navbar Scroll*/
.navbar.navbar-scrolled {
    background: var(--azul-oscuro-primario);
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
    color: #000;
}


/* Colores de los enlaces según el estado de la navbar */

/* Estado inicial: fondo transparente, texto negro */
.navbar.navbar-transparent .nav-link,
.navbar.navbar-transparent .navbar-brand,
.navbar.navbar-transparent .nav-link i {
    color: #000 !important;
}

/* Estado scrolleado: fondo sólido, texto blanco */
.navbar.navbar-scrolled .nav-link,
.navbar.navbar-scrolled .navbar-brand,
.navbar.navbar-scrolled .nav-link i {
    color: #fff !important;
}


/*** Input Buscador ***/
.search-bar {
    background: #f6f6f6ff;
    padding: 6px 12px;
    border-radius: 50px;
    width: 380px;
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #555;
}

.search-input::placeholder {
    color: #888;
}

.search-btn {
    border: none;
    background: transparent;
    color: #555;
    font-size: 16px;
    cursor: pointer;
}

.search-btn:hover {
    color: #333;
}


/* Abrir el dropdown al activar hover*/
.navbar .dropdown-menu {
    display: block;
    /* dejamos que .show controle visibilidad */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    border: 0;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

.navbar .dropdown.show>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease;
}

@media (hover: none),
(pointer: coarse) {
    .navbar .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }
}

/************************** Desktop: Logo *********/
@media (min-width: 992px) {

    .navbar {
        overflow: visible;
    }

    .navbar .navbar-brand {
        position: relative;
        display: inline-block;
        height: 35px;
        line-height: 35px;
        overflow: visible;
        z-index: 2;
    }

    .navbar .navbar-brand .logo-desktop {
        height: 130px;
        display: block;
        position: absolute;
        top: -27px;
        left: 0;
        /* <- faltaba valor */
        transform: translateY(14px);
        pointer-events: auto;
        /* <- permitir clics al <a> */
    }

    /* Por si el estado scrolled cambia sombras/colores, dejamos visible el overflow */
    .navbar.navbar-scrolled {
        overflow: visible;
    }
}

/** Menu categorias lateral **/
.dropdown-menu-main {
    position: relative;
}


.dropdown-submenu {
    position: relative;
}

.dropdown-menu-sub {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
    min-width: 230px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
    background-color: #fff;
    z-index: 1050;
}


@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu-sub {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        transition: opacity .18s ease, transform .18s ease;
    }
}

@media (max-width: 991.98px) {
    .dropdown-menu-main {
        position: static;
    }

    .dropdown-submenu {
        position: static;
    }

    .dropdown-menu-sub {
        position: static;
        margin-left: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .submenu-toggle .fa-angle-right {
        display: none;
    }
}

/********** Subrayar menú (rojo intenso) *************/

/* Base: los elementos que tendrán subrayado */
.navbar-custom .nav-link:not(.dropdown-toggle),
.navbar-custom .dropdown-item {
    position: relative;
    overflow: hidden;
    color: var(--azul-oscuro-primario, #111);
    transition: color .25s ease;
}

/* Línea animada */
.navbar-custom .nav-link:not(.dropdown-toggle)::before,
.navbar-custom .dropdown-item::before {
    content: "";
    position: absolute;
    left: 10%;
    bottom: 0.3rem;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--azul-oscuro-primario) 0%, var(--azul-oscuro-primario) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease, background .3s ease;
    border-radius: 2px;
}

/* Hover/focus: animación de entrada + cambio de color del texto */
.navbar-custom .nav-link:not(.dropdown-toggle):hover,
.navbar-custom .dropdown-item:hover {
    color: #292929;
}

.navbar-custom .nav-link:not(.dropdown-toggle):hover::before,
.navbar-custom .nav-link:not(.dropdown-toggle):focus::before,
.navbar-custom .dropdown-item:hover::before,
.navbar-custom .dropdown-item:focus::before {
    transform: scaleX(1);
}

/* Activo (página actual) */
.navbar-custom .nav-link.active:not(.dropdown-toggle)::before,
.navbar-custom .dropdown-item.active::before,
.navbar-custom .nav-link[aria-current="page"]:not(.dropdown-toggle)::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--azul-oscuro-primario) 0%, var(--amarillo-primario) 100%);
}

/* No subrayar el botón de contacto */
.navbar-custom .btn-contactame.nav-link::before,
.navbar-custom .btn-contactame::before {
    content: none !important;
}

/* Dropdown sin interferencias visuales */
.navbar-custom .dropdown-menu {
    --bs-dropdown-link-active-bg: transparent;
    --bs-dropdown-link-active-color: #292929;
}

/* Modo de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {

    .navbar-custom .nav-link:not(.dropdown-toggle)::before,
    .navbar-custom .dropdown-item::before {
        transition: none;
    }
}

/* ===== Mobile ===== */
@media (max-width: 991.98px) {

    .navbar-custom .nav-link:not(.dropdown-toggle)::before {
        left: .75rem;
        width: calc(100% - 1.5rem);
        height: 1px;
        bottom: .2rem;
        background: var(--amarillo-primario);
        transform-origin: left;
    }

    .navbar-custom .dropdown-menu .dropdown-item {
        display: inline-block;
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .navbar-custom .dropdown-menu .dropdown-item::before {
        left: 0.1em;
        width: calc(100% - 0.2em);
        height: 1px;
        bottom: .14rem;
        background: var(--amarillo-primario);
        transform-origin: left;
    }

    .navbar-custom .dropdown-toggle.is-active-parent {
        box-shadow: inset 0 -1px 0 0 var(--amarillo-primario);
    }
}

/******************************** Slider ****************************************/
.hero-carousel {
    position: relative;
    margin-top: 0;
    height: 100svh;
    min-height: 100vh;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
}

@supports (height: 100dvh) {
    .hero-carousel {
        height: 100dvh;
    }
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.hero-carousel .carousel-indicators {
    display: none !important;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: clamp(4rem, 7vw, 7rem);
    opacity: .35;
    transition: opacity .2s ease;
    pointer-events: auto;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: .75;
}

/* Difuminado lateral */
.hero-carousel .carousel-control-prev {
    background: linear-gradient(to right, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0));
}

.hero-carousel .carousel-control-next {
    background: linear-gradient(to left, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0));
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {

    .hero-carousel .carousel,
    .hero-carousel .carousel-item {
        transition: none !important;
    }
}

@media (max-width: 991px) {
    .btn.btn-contactame {
        margin-top: 10px;
        margin-left: 0;
    }
}

/**************Contenido Slider**************/
.hero-carousel .carousel-item {
    position: relative;
}

/* Capa de texto a la izquierda (desktop/tablet por defecto) */
.hero-carousel .banner-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

/* Contenido del caption */
.hero-carousel .banner-caption-inner {
    pointer-events: auto;
    max-width: 800px;
    margin-left: clamp(2rem, 8vw, 8rem);
    padding: 1rem 1.25rem;
    color: #000000ff;
    backdrop-filter: saturate(110%);
}

.hero-carousel .banner-caption-inner h2 {
    font-size: clamp(1.8rem, 3.2vw, 4.6rem);
    font-weight: 800;
}

.hero-carousel .banner-caption-inner p {
    font-size: 20px;
}

@media (min-width: 1300px) {
    .hero-carousel .titulos-banner {
        margin-left: 35px;
        margin-bottom: 50px;
    }

    .hero-carousel .contenedor-lista {
        margin-left: 50px;
        font-size: 18px;
    }
}

/* Mobile: texto arriba-izquierda, no centrado */
@media (max-width: 700px) {
    .hero-carousel .banner-caption {
        align-items: flex-start;
        /* arriba */
        justify-content: flex-start;
        /* izquierda */
        padding-top: 1rem;
    }

    .hero-carousel .banner-caption-inner {
        margin-top: 4rem;
        text-align: left;
        /* ya no centrado */
    }

    .hero-carousel .titulos-banner {
        margin-left: 0;
        margin-bottom: .75rem;
    }

    .hero-carousel .contenedor-lista {
        margin-left: 0;
        font-size: 16px;
    }
}


/******************************************************* Cartas Productos ****************************************************/
.product-card {
    border-radius: 18px;
    padding: 14px 14px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

/* Imagen */
.product-card .card-img-top {
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 16px;
}

/* Texto */
.product-title {
    font-size: 1.28rem;
    font-weight: 700;
}

.product-subtitle {
    font-size: 0.85rem;
    padding: 0px 4px;
    color: #555;
}

/* Botón Comprar */
.btn-buy {
    background: var(--azul-oscuro-primario) !important;
    border-radius: 10px !important;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 18px;
    color: #fff;
}

.btn-buy i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.btn-buy:hover {
    background: #0d1f3b;
    /* un poco más oscuro */
    color: #fff;
}

/* Paginacion */
.pagination .page-link{
    color: var(--azul-oscuro-primario);
}

/* Página activa */
.pagination .page-item.active .page-link{
    background-color: var(--azul-oscuro-primario);
    border-color: var(--azul-oscuro-primario);
    color: #fff;
}

@media (max-width: 575.98px){
    .product-card {
        padding: 7px 7px 9px;
    }
    
}

/*********************************** Detalles Productos Paginas Individuales ***********************************/

/************ Seccion Principal Galeria y Zoom***********************/

.product-gallery {
    flex: 0 0 40%;
    display: flex;
    gap: 1rem;
}

/* wrapper de imagen + zoom */
.product-main-wrapper {
    display: flex;
    gap: 1rem;
    position: relative;
}

/* Imagen principal */
.product-main-image {
    background: #f6f6f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    min-height: 260px;
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    position: relative;
}

#product-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zoom-lens {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.25);
    display: none;
    pointer-events: none;
    box-sizing: border-box;
}

/* Panel de zoom (imagen grande a la derecha) como OVERLAY */
.product-zoom-result {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 16px;
    width: 450px;
    height: 450px;
    border-radius: 16px;
    background-color: #f6f6f6;
    background-repeat: no-repeat;
    background-position: center;
    display: none;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Miniaturas */
.product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-thumb {
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    width: 64px;
    height: 64px;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb.active,
.product-thumb:hover {
    border-color: #333;
}

/* Desactivar zoom en móviles */
@media (max-width: 991.98px) {
    .product-main-wrapper {
        display: block;
    }

    .zoom-lens,
    .product-zoom-result {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
  /* La galería pasa a columna */
  .product-gallery {
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  /* Wrapper en bloque (ya lo tenías) */
  .product-main-wrapper {
    display: block;
    width: 100%;
  }

  /* Imagen principal: full width y altura controlada */
  .product-main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;         /* cuadrada (cámbialo si quieres 4/3) */
    padding: 12px;
  }

  #product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Miniaturas: en fila con scroll horizontal */
  .product-thumbs {
    order: 2;                    /* thumbs abajo */
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .product-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
  }

  /* Opcional: que el scroll se vea limpio */
  .product-thumbs::-webkit-scrollbar {
    height: 6px;
  }

  /* Desactivar zoom en móviles (lo tuyo) */
  .zoom-lens,
  .product-zoom-result {
    display: none !important;
  }
}

/* Extra: en pantallas MUY pequeñas, reduce thumbs un poco */
@media (max-width: 420px) {
  .product-thumb {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 991.98px) {
  .product-gallery .product-thumbs{
    display: flex;
    flex-direction: row !important;   /* <-- fuerza fila */
    flex-wrap: nowrap;                 /* una sola fila */
    gap: 10px;
    overflow-x: auto;                  /* scroll horizontal */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 6px;
  }

  .product-gallery .product-thumbs .product-thumb{
    flex: 0 0 auto;                    /* que no se aplasten */
  }
}


/*** Seccion Pricipal detalles***/
.product-detail-card {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border-radius: 20px;
    padding: 24px;
}

/* Galería izquierda */
.product-gallery {
    flex: 0 0 40%;
    display: flex;
    gap: 1rem;
}

.product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-thumb {
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    width: 64px;
    height: 64px;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Activa: borde oscuro fijo */
.product-thumb.active {
    border-color: #333;
}

/* Hover: también borde oscuro mientras pasas el mouse */
.product-thumb:hover {
    border-color: #333;
}


/* Imagen principal */
.product-main-image {
    flex: 1;
    background: #f6f6f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    min-height: 260px;
}

.product-main-image img {
    width: 450px;
    height: 450px;
    border-radius: 12px;
    object-fit: contain;
}

/* Info derecha */
.product-detail-info {
    flex: 1;
}
.product-detail-info p{
    text-align: left;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-detail-category {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-detail-description {
    font-size: 0.95rem;
    color: #444;
    max-width: 550px;
}

/* Botones */
.product-detail-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .product-detail-card {
        padding: 16px;
    }

    .product-gallery {
        flex: 1 1 100%;
    }

    .product-detail-info {
        flex: 1 1 100%;
    }
}

.descripciones-tecnicas .titulo-descripcion-tecnica{
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}
.descripciones-tecnicas strong{
    font-weight: 600;
}
.descripciones-tecnicas p{
    margin: 8px 1px;
    font-size: 16px;
    text-align:left;
}

/***** Botones Ficha - Comprar *******/
.btn-ficha {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.4rem;
    border: 2px solid #000;
    background: transparent;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-ficha i {
    font-size: 1rem;
}

/* Hover */
.btn-ficha:hover {
    background: var(--azul-oscuro-primario);
    color: #fff;
}
                        
.btn-comprar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 1.4rem;
    /* borde negro */
    background: var(--azul-oscuro-primario);
    /* sin fondo */
    color: white;
    /* texto negro */
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 999px;
    /* tipo píldora */
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Ícono */
.btn-comprar i {
    font-size: 1rem;
}

/* Hover */
.btn-comprar:hover {
    background: #000;
    color: #fff;
    /* texto blanco */
}

/****************************************************** WHATSAPP Flotante ***********************************************/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;

  /* Oculto por defecto (primera vista) */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Mostrar al hacer scroll */
.whatsapp-float.active {
  visibility: visible;
  opacity: 1;
}

/* BOTÓN WHATSAPP */
.back-top-btn {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.25s ease;
}

.back-top-btn:hover {
  color: #fff;
  box-shadow: 0px 3px 20px rgba(0,0,0,0.15);
}

.back-top-btn i {
  font-size: 30px;
}

/* TEXTO CTA */
.whatsapp-text {
  background: #fff;
  color: #333;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);

  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.35s ease;
}

/* Mostrar texto */
.whatsapp-text.show {
  opacity: 1;
  transform: translateX(0);
}

/* Opcional: ocultar texto en móvil */
@media (max-width: 480px) {
  .whatsapp-text {
    display: none;
  }
}

/****************************************** CONTACTO *************************************/
.contacto-mail{
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--azul-oscuro-primario);
  padding-bottom: .1rem;
}

/* Cards */
.contacto-card{
  border: 1px solid #f6f6f6;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(44, 50, 64, .10);
}

.contacto-h2{
  color: var(--azul-oscuro-primario);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: .2px;
}

/* Labels + textos */
.contacto-v2 .form-label{
  color: color-mix(in srgb, var(--azul-oscuro-primario) 88%, #fff);
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .35rem;
}

.contacto-v2 .form-control::placeholder{
  font-size: .90rem;              /* placeholder más discreto */
  color: color-mix(in srgb, var(--azul-oscuro-primario) 45%, #fff);
}

/* Caja acciones (reCAPTCHA + botón) */
.contacto-actions{
  background: color-mix(in srgb, var(--azul-oscuro-primario) 3%, #fff);
  border: 1px solid color-mix(in srgb, var(--azul-oscuro-primario) 14%, transparent);
  border-radius: 16px;
  padding: 14px;
}

/* Botón */
.contacto-btn{
  border-radius: 14px;
  font-weight: 600 !important;
  font-size: .98rem !important;
  letter-spacing: .2px;
  padding: .80rem 2.1rem !important;
  background: var(--azul-oscuro-primario)!important;
  border-color: #fff;
  color: white;
  box-shadow: 0 10px 22px rgba(44, 50, 64, .18);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.contacto-btn:hover{
  opacity: .95;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(44, 50, 64, .22);
}

.contacto-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(44, 50, 64, .18);
}

.contacto-btn:focus{
  box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--azul-oscuro-primario) 25%, transparent);
}

/* reCAPTCHA */
.recaptcha-wrap{ max-width: 100%; overflow: hidden; }
@media (max-width: 380px){
  .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
}

/* Columna derecha */
.contacto-media-card{
  overflow: hidden;
}

.contacto-media{
  height: 100%;
  min-height: 420px;
}

/* Imagen responsive */
.contacto-media-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

/* Ajustes responsive */
@media (max-width: 991.98px){ /* < lg */
  .contacto-media{
    min-height: 260px; /* tablet */
  }
}

@media (max-width: 575.98px){ /* < sm */
  .contacto-media{
    min-height: 220px; /* móvil */
  }
  .contacto-media-img{
    object-position: center top;
  }
}


/******************** Seccion Whatsapp ***********************/

.seccion-diagonal-whatsapp {
  position: relative;
  background-color: var(--azul-oscuro-primario);
  overflow: hidden;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0% 90%
  );
  padding: 80px 0 120px;
}

/* Badge superior */
.seccion-whatsapp .badge-whatsapp{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Título */
.seccion-whatsapp .titulo-whatsapp{
  color: #fff;
  font-weight: 500;
  letter-spacing: .2px;
  font-size: clamp(1.35rem, 1.8vw, 1.9rem);
  max-width: 720px;
}

/* Texto */
.seccion-whatsapp .texto-whatsapp{
  color: rgba(255,255,255,.88);
  line-height: 1.65;
  max-width: 720px;
  font-size: 1rem;
}

/* Acciones */
.seccion-whatsapp .whatsapp-actions{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Botón */
.seccion-whatsapp .boton-whatsapp{
  background: #25d366;
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  padding: 10px 16px;
  border-radius: 12px;
  width: fit-content;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.seccion-whatsapp .boton-whatsapp:hover{
  color: #fff;
  opacity: .95;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0,0,0,.28);
}

/* Horario */
.seccion-whatsapp .horario-whatsapp{
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}

/* Imagen */
.seccion-whatsapp .whatsapp-img{
  max-width: 350px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
}

/* Responsive */
@media (max-width: 768px){
  .seccion-diagonal-whatsapp{
    padding: 60px 0 100px;
  }

  .seccion-whatsapp .whatsapp-actions{
    align-items: flex-start;
  }

  .seccion-whatsapp .whatsapp-img{
    max-width: 200px;
    margin-top: 30px;
  }
}

/********************** Redes Sociales ***************************/
.redes-title{
  color: var(--azul-oscuro-primario);
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: .35rem;
}

.redes-subtitle{
  color: color-mix(in srgb, var(--azul-oscuro-primario) 60%, #fff);
  font-size: 1rem;
}

/* Botón/link simple */
.redes-item{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: .2px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--azul-oscuro-primario) 14%, transparent);
  box-shadow: 0 10px 26px rgba(44, 50, 64, .07);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.redes-item i{
  font-size: 1.6rem;
  line-height: 1;
}

.redes-item span{
  font-size: 1.5rem;
  color: #000;
}

/* Hover general */
.redes-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(44, 50, 64, .10);
}

/* Colores oficiales aproximados por red (icono + borde) */
.redes-linkedin{ border-color: rgba(14,118,168,.28); }
.redes-linkedin i{ color: #0e76a8; }
.redes-linkedin:hover{ border-color: rgba(14,118,168,.55); }

.redes-instagram{ border-color: rgba(225,48,108,.25); }
.redes-instagram i{ color: #E1306C; }
.redes-instagram:hover{ border-color: rgba(225,48,108,.55); }

.redes-youtube{ border-color: rgba(196,48,43,.25); }
.redes-youtube i{ color: #c4302b; }
.redes-youtube:hover{ border-color: rgba(196,48,43,.55); }

.redes-facebook{ border-color: rgba(59,89,152,.25); }
.redes-facebook i{ color: #3b5998; }
.redes-facebook:hover{ border-color: rgba(59,89,152,.55); }

/* Responsive */
@media (max-width: 575.98px){
  .redes-item{
    padding: 11px 12px;
    border-radius: 12px;
  }
  .redes-item i{ font-size: 1.05rem; }
  .redes-item span{ font-size: .92rem; }
}

/********************************************************* FOOTER ***************************************************/
.footer {
    background: var(--azul-oscuro-primario);
    color: white;
    border-top: 1px solid rgba(0, 0, 0, .05);
    font-size: 0.975rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.02);
}

.footer .text-white {
    color: white !important;
}

.footer h5 {
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: .5rem;
}

.footer .linea-footer {
    width: 48px;
    height: 1px;
    border-radius: 2px;
    background: var(--amarillo-primario);
    margin: .25rem 0 1rem 0;
}

.footer ul {
    margin: 0;
    padding: 0;
}

.footer ul li {
    margin: .25rem 0;
}

.footer a {
    color: white !important;
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease, text-decoration-color .18s ease;
}

.footer a:hover,
.footer a:focus {
    color: var(--amarillo-primario) !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.footer p {
    margin-bottom: .5rem;
}

.footer p i {
    color: white;
    margin-right: .45rem;
}

.footer .social-icons {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}

.footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid var(--amarillo-primario);
    color: var(--amarillo-primario);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .08s ease;
}

.footer .social-icons i {
    margin-right: 0 !important;
    line-height: 1;
    font-size: 1rem;
    vertical-align: middle;
}

.footer .social-icons a:hover {
    background: var(--amarillo-primario);
    color: white !important;
}


.footer .linea-larga-footer {
    height: 1px;
    background: linear-gradient(to right,
            rgba(238, 48, 61, 0.06) 0%,
            rgba(238, 48, 61, .12) 35%,
            rgba(238, 48, 61, .06) 100%);
}


.footer .footer-bottom {
    background: #1b1b1b;
    color: white;
    border-top: 1px solid rgba(0, 0, 0, .06);
    font-size: .9rem;
}

.footer .footer-bottom .parr-derechos {
    opacity: .82;
    margin-top: .25rem;
}

.footer a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--amarillo-primario) 45%, transparent);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (max-width: 767.98px) {

    .footer li,
    p,
    h5 {
        text-align: center;
    }

    .footer .linea-footer {
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .footer .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .footer h5 {
        margin-top: .75rem;
    }

    .footer .social-icons a {
        margin-top: 100px;
        margin: 0 auto
    }

    .logo-footer {
        text-align: center;
        padding-left: 40px;
    }

}

@media print {
    .footer {
        background: #fff !important;
        color: #000 !important;
    }

    .footer .footer-bottom {
        background: #fff !important;
    }
}