
:root{
    --nango-red:#F20505;
    --nango-red-dark:#D90404;
    --nango-cyan:#11B8D6;
    --nango-white:#FFFFFF;
    --nango-light:#F8F9FA;
    --nango-text:#2B2B2B;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    overflow-x:hidden;
    color:var(--nango-text);
}

/* LOGO */

.brand-name{
    font-size:30px;
    font-weight:700;
    color:var(--nango-red);
}

/* NAVBAR */

.navbar{
    backdrop-filter:blur(10px);
    transition:.4s;
}

.nav-link{
    font-weight:500;
    position:relative;
    transition:.3s;
}

.nav-link:hover{
    color:var(--nango-red);
}

/* Animación de la línea roja usando ::before para no chocar con las flechas */
.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--nango-red);
    transition: .3s;
}

.nav-link:hover::before {
    width: 100%;
}

/* Forzamos a que las flechas de Bootstrap se vean bien y centradas */
.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Hacemos que la flecha gire hacia arriba al abrir el menú */
.dropdown-hover:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* DROPDOWN HOVER */

/* DROPDOWN HOVER COMPACTO */

.dropdown-hover{
    position:relative;
}

.dropdown-menu-custom{
    position:absolute;
    top:100%;
    left:0;
    min-width:240px;           /* Más estrecho */
    background:#fff;
    list-style:none;
    padding:5px 0;              /* Menos espacio arriba y abajo del menú */
    margin:0;
    border-radius:6px;          /* Esquinas sutilmente redondeadas */
    box-shadow:0 10px 30px rgba(0,0,0,.15);

    opacity:0;
    visibility:hidden;
    transform:translateY(10px);

    transition:.3s ease;
    z-index:9999;
}

.dropdown-menu-custom li{
    width:100%;
}

.dropdown-menu-custom a{
    display:block;
    padding:6px 20px;           /* Reduce drásticamente la altura de cada área */
    text-decoration:none;
    color:#333;
    font-size:13.5px;           /* Letra un poco más pequeña para que quepan todas */
    transition:.3s;
}

.dropdown-menu-custom a:hover{
    background:#f5f5f5;
    color:var(--nango-red);
    padding-left:26px;          /* Efecto de deslizamiento más corto */
}

.dropdown-hover:hover .dropdown-menu-custom{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}



/* =========================
   SLIDER 3 TARJETAS
========================= */
.slider-wrapper {
	position: relative;
	overflow: hidden;
}

.slider-track {
	display: flex;
	transition: transform 0.5s ease;
}

.slider-card {
	flex: 0 0 33.333%;
	padding: 10px;
	box-sizing: border-box;
}

.slider-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 12px;
}

.slider-card h5 {
	text-align: center;
	margin-top: 10px;
}

.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	color: white;
	border: none;
	border-radius: 50%;
	padding: 10px 14px;
	cursor: pointer;
	z-index: 10;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

@media (max-width: 992px) {
	.slider-card { flex: 0 0 50%; }
}

@media (max-width: 768px) {
	.slider-card { flex: 0 0 100%; }
}

/* =========================
   LOGOS UNIFORMES (SLIDER)
========================= */

.slider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    height: 260px; /* fija altura uniforme */
}

/* CONTENEDOR DE IMAGEN */
.slider-card img {
    width: 100%;
    height: 140px;              /* altura fija */
    object-fit: contain;        /* evita deformación */
    padding: 10px;
    background: #f8f9fa;        /* fondo neutro elegante */
    border-radius: 12px;
    transition: transform 0.3s ease;
}

/* efecto hover suave */
.slider-card:hover img {
    transform: scale(1.05);
}

/* texto uniforme */
.slider-card h5 {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2d3d;
    text-align: center;
}

/* opcional: sombra más elegante */
.slider-card {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}





/* BOTONES */

.btn-nango{
    background:var(--nango-red);
    color:#fff;
    border:none;
    border-radius:50px;
    padding:12px 25px;
    font-weight:600;
    transition:.3s;
}

.btn-nango:hover{
    background:var(--nango-red-dark);
    color:#fff;
    transform:translateY(-2px);
}

/* HERO */

.hero{
    position:relative;
    min-height:100vh;
    overflow:hidden;
    color:#fff;
}

.hero-carousel{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}

.hero-carousel .carousel-item,
.hero-carousel .carousel-item img{
    width:100%;
    height:100vh;
}

.hero-carousel .carousel-item img{
    object-fit:cover;
    object-position:center top;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        135deg,
        rgba(242,5,5,.55),
        rgba(17,184,214,.45)
    );
    z-index:1;
}

.hero .container{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}

.hero h1{
    font-size:4rem;
    font-weight:700;
    line-height:1.15;
    text-align:center;
    max-width:900px;
    margin:0 auto;
    text-shadow:0 5px 20px rgba(0,0,0,.35);
    letter-spacing:-1px;
}

.hero p{
    font-size:1.2rem;
    margin:25px 0;
}


.hero-logo{
    width:100%;
    max-width:520px;
    height:auto;
    display:block;
    margin:0 auto 35px;

    /* sombra existente + brillo blanco suave */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1))
            drop-shadow(0 0 35px rgba(255, 255, 255, 0.7));
}

/* Laptop */
@media (max-width: 1200px){

    .hero-logo{
        max-width:450px;
    }

    .hero h1{
        font-size:3.2rem;
        max-width:750px;
    }

}

/* Tablet */
@media (max-width: 992px){

    .hero-logo{
        max-width:360px;
        margin-bottom:25px;
    }

    .hero h1{
        font-size:2.5rem;
        max-width:650px;
    }

}

/* Celular */
@media (max-width: 576px){

    .hero-logo{
        max-width:240px;
        margin-bottom:20px;
    }

    .hero h1{
        font-size:1.8rem;
        line-height:1.3;
        padding:0 15px;
    }

}


/* TITULOS */

h2{
    color:var(--nango-red);
    font-weight:700;
}



/* AREA */
.area-preview-wrapper{
    position:relative;
    height:520px;
    border-radius:25px;
    overflow:hidden;
    box-shadow:0 20px 45px rgba(0,0,0,.2);
}

.area-bg-img{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:1s;
}

.area-bg-img.active{
    opacity:1;
}

.area-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.25);
}

.area-card{

    display:block;
    text-align:center;
    text-decoration:none;
    background:#fff;
    border-radius:20px;
    padding:30px;
    margin:15px;
    transition:.4s;
    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.area-card img{
    width: 180px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 25px;
    transition: transform .4s ease;
}

.area-card h5{

    color:#222;
    transition:.3s;
    font-weight:600;

}

.area-card:hover{

    transform:translateY(-12px);
    box-shadow:0 25px 50px rgba(0,0,0,.18);

}

.area-card:hover h5{

    color:#d90429;

}

.carousel-control-prev,
.carousel-control-next{

    width:50px;
    height:50px;
    background:#d90429;
    border-radius:50%;
    top:45%;

}

.carousel-control-prev{
    left:-25px;
}

.carousel-control-next{
    right:-25px;
}






/* INFORMACIÓN */

.info-section{
    background:#f7f9fc;
    padding:80px 0;
}

.info-box{
    background:#fff;
    padding:40px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.info-box:hover{
    transform:translateY(-8px);
}

.info-box i{
    font-size:55px;
    color:var(--nango-red);
    margin-bottom:15px;
}

/* NOSOTROS */

#nosotros{
    background:#fff;
}

#nosotros img{
    max-height:500px;
    object-fit:cover;
}

/* CONTACTO */

.contact-section{
    background:var(--nango-light);
    padding:80px 0;
}

.form-control{
    border-radius:12px;
    padding:12px;
    border:1px solid #ddd;
}

.form-control:focus{
    border-color:var(--nango-cyan);
    box-shadow:0 0 10px rgba(17,184,214,.2);
}

/* BOTONES FLOTANTES */

.social-float{
    position:fixed;
    right:20px;
    bottom:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
    z-index:9999;
}

.social-float a{
    width:55px;
    height:55px;
    border-radius:50%;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:24px;
    box-shadow:0 4px 10px rgba(0,0,0,.2);
    transition:.3s;
}

.social-float a:hover{
    transform:scale(1.1);
}

.whatsapp{
    background:#25D366;
    animation:pulse 2s infinite;
}

.facebook{
    background:#1877F2;
}

.social-float .linkedin {
    background-color: #0077b5; /* El azul oficial de LinkedIn */
    color: #fff;
}

.social-float .linkedin:hover {
    background-color: #005582; /* Un tono más oscuro al pasar el mouse */
    color: #fff;
}

@keyframes pulse{

    0%{
        box-shadow:0 0 0 0 rgba(37,211,102,.7);
    }

    70%{
        box-shadow:0 0 0 20px rgba(37,211,102,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }

}

/* FOOTER */

.footer{
    background:var(--nango-red);
    color:#fff;
}

.footer h5{
    margin-bottom:15px;
    font-weight:600;
}

.footer hr{
    border-color:rgba(255,255,255,.2);
}

/* TABLET */

@media(max-width:992px){

    .hero{
        text-align:center;
    }

    .hero h1{
        font-size:2.6rem;
    }

    .hero-logo{
        max-width:300px;
        margin-top:40px;
    }

}

/* CELULAR */

@media(max-width:576px){

    .brand-name{
        font-size:22px;
    }

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .social-float a{
        width:50px;
        height:50px;
        font-size:22px;
    }

}

/* MISION Y VISION */

.mission-card,
.vision-card{
    background:#fff;
    padding:40px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.4s;
    height:100%;
}

.mission-card:hover,
.vision-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.mission-card h3,
.vision-card h3{
    color:var(--nango-red);
    font-weight:700;
    margin-bottom:20px;
}

.mission-card p,
.vision-card p{
    line-height:1.8;
    color:#555;
}

.mission-icon,
.vision-icon{
    width:80px;
    height:80px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:20px;
    font-size:35px;
    color:white;
}

.mission-icon{
    background:var(--nango-red);
}

.vision-icon{
    background:var(--nango-cyan);
}

/* EXPERIENCIA */

.exp-card{
    background:#fff;
    padding:35px 30px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.4s;
    height:100%;
}

.exp-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.exp-card h3{
    color:var(--nango-red);
    font-weight:700;
    margin-bottom:15px;
    font-size:1.25rem;
}

.exp-card p{
    line-height:1.8;
    color:#555;
    margin-bottom:0;
}

.exp-icon{
    width:70px;
    height:70px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:20px;
    font-size:30px;
    color:white;
    background:var(--nango-red);
}

.exp-icon.cyan{
    background:var(--nango-cyan);
}

/* =========================
   SECCIÓN PRODUCTOS
========================= */

section.py-5 {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* =========================
   TÍTULO Y TEXTO (RENDERIZADO)
========================= */

section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #1f2d3d;
    letter-spacing: 0.5px;
}

section p.text-muted {
    font-size: 1rem;
    color: #6c757d !important;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================
   TARJETAS
========================= */

.card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s ease;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

/* =========================
   IMAGENES (RENDER PRO)
========================= */

.card-img-top {
    height: 230px;
    width: 100%;
    object-fit: contain; /* IMPORTANTE: evita cortes */
    background: #f8f9fa;
    padding: 15px;
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

/* =========================
   TEXTO DE TARJETAS
========================= */

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #0d1b2a;
    margin-bottom: 8px;
}

.card-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.4;
    min-height: 50px; /* iguala altura entre cards */
}

/* =========================
   BOTÓN MÁS INFORMACIÓN
========================= */

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    border-radius: 10px;
    font-weight: 500;
    padding: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca, #084298);
    transform: scale(1.03);
}

/* =========================
   CENTRADO Y ESPACIADO
========================= */

.card-body {
    padding: 20px;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }

    section h2 {
        font-size: 1.6rem;
    }
}


/*DH 1. Contenedor principal: le da aire a la cuadrícula */
.row.g-4 {
    margin-top: 20px;
}

/* 2. Tarjetas Técnicas: efecto de elevación y bordes suaves */
.technical-card {
    border: 1px solid #e0e0e0;
    border-radius: 16px; /* Bordes más redondeados para un look moderno */
    overflow: hidden; /* Asegura que la imagen no se salga de los bordes */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.technical-card:hover {
    transform: translateY(-8px); /* Salto suave al pasar el mouse */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* 3. Ajuste de imágenes: siempre impecables */
.technical-card .card-img-top {
    height: 220px;
    object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformarla */
    border-bottom: 1px solid #f8f9fa;
}

/* 4. Etiquetas (Badges) estilizadas */
.badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 600;
    background-color: #6c757d !important; /* Puedes cambiar este color al tono de NANGO */
}

/* 5. Botón NANGO (Cyan/Azul industrial) */
.btn-nango-cyan {
    background-color: #0dcaf0; /* Un cyan vibrante */
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px;
    transition: background 0.3s ease;
}

.btn-nango-cyan:hover {
    background-color: #09a9c7;
    color: #fff;
}

/* 6. Asegurar que las tarjetas sean iguales en altura */
.technical-card .card-body {
    display: flex;
    flex-direction: column;
}

/* ==========================================
   TARJETAS TÉCNICAS - MINERÍA Y GEOLOGÍA
========================================== */

.row.g-4 {
    margin-top: 20px;
    row-gap: 2rem !important;
}

/* TARJETA */
.technical-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: all 0.35s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    max-width: 520px;
    margin: auto;
    height: 100%;
}

.technical-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* IMAGEN */
.technical-card .card-img-top {
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.4s ease;
}

.technical-card:hover .card-img-top {
    transform: scale(1.04);
}

/* CUERPO */
.technical-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* OCULTAR TITULOS */
.technical-card .card-title {
    display: none;
}

/* DESCRIPCIÓN PRINCIPAL */
.technical-card .product-description,
.technical-card .text-muted.small.mb-3:first-of-type {
    font-size: 1.15rem;
    font-weight: 700;
    color: #003b5c;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 18px !important;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTENEDOR BADGES */
.technical-card .mb-4 {
    text-align: center;
    margin-bottom: 1rem !important;
}

/* BADGES */
.technical-card .badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 12px;
    margin: 3px;
    border-radius: 50px;
    background: var(--nango-cyan) !important;
    color: white;
}

/* NOTA TECNICA */
.technical-card .mt-auto p {
    font-size: 0.9rem;
    text-align: center;
    color: #6c757d !important;
    margin-bottom: 12px !important;
}

.technical-card .mt-auto strong {
    color: var(--nango-red);
    font-size: 1rem;
}

/* BOTÓN */
.btn-nango-cyan {
    background: linear-gradient(
        135deg,
        var(--nango-cyan),
        #0d9eb8
    );
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nango-cyan:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        #0d9eb8,
        var(--nango-cyan)
    );
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .technical-card {
        max-width: 100%;
    }

    .technical-card .card-img-top {
        height: 180px;
    }

    .technical-card .product-description,
    .technical-card .text-muted.small.mb-3:first-of-type {
        font-size: 1rem;
        min-height: auto;
    }

}

/* ========================================================
   ESTILOS PREMIUM: SECCIÓN ÁREAS DE APLICACIÓN
   ======================================================== */
.area-preview-wrapper {
    height: 480px;
    width: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: flex-end;
    position: relative; /* <--- Esto amarra las imágenes absolutas a este contenedor */
}

.area-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease-in-out, transform 0.6s ease-out;
    z-index: 1;
}

.area-bg-img.active {
    opacity: 1;
    transform: scale(1);
}

.area-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.text-danger-custom {
    color: var(--nango-red); /* Usamos tu variable centralizada de rojo */
    letter-spacing: 2px;
}

/* Lista de ítems interactivos de la derecha */
.area-item {
    background-color: var(--nango-light); /* Usamos tu variable de fondo claro */
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.area-icon-box {
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

.area-arrow {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Efectos Hover individuales */
.area-item:hover {
    background-color: #fff;
    border-left-color: var(--nango-red); /* Rojo corporativo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(8px);
}

.area-item:hover .area-icon-box {
    background-color: rgba(242, 5, 5, 0.1) !important; /* Rojo Nango transparente */
}

.area-item:hover .area-icon-box i {
    color: var(--nango-red) !important;
}

.area-item:hover .area-arrow {
    transform: translateX(4px);
    color: var(--nango-red) !important;
}

/* ========================================================
   LOGOS UNIFORMES Y ELEGANTES (ESTILO MARCAS PREMIUM)
   ======================================================== */
.info-section {
    background: #f8f9fa; /* Fondo gris claro neutro muy elegante */
    padding: 80px 0;
}

.slider-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    height: 260px; /* Asegura altura uniforme exacta */
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.brand-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* CONTENEDOR DE LA IMAGEN (Actúa como marco aislante blanco) */
.brand-logo-container {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; 
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
}

/* EL LOGO INTERNO */
.brand-logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Impide cualquier deformación del logo */
    filter: grayscale(100%) opacity(0.65); /* Se ve homogéneo y sobrio al inicio */
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* TEXTO INFERIOR */
.brand-title {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568 !important;
    text-align: center;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* ========================================================
   INTERACCIÓN AL PASAR EL CURSOR (HOVER)
   ======================================================== */
.slider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* El logo se ilumina devolviendo sus colores y nitidez corporativa */
.slider-card:hover .brand-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.03);
}

/* El texto cambia a tu color de marca rojo */
.slider-card:hover .brand-title {
    color: var(--nango-red) !important;
}

/* ESTILIZACIÓN DE BOTONES FLOTANTES DEL SLIDER */
.slider-btn {
    background: #ffffff !important;
    color: #2b2b2b !important;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--nango-red) !important;
    color: #ffffff !important;
}

/* ========================================================
   ESTILOS CUADRÍCULA DE ÁREAS (EFECTO SUAVE HERO NANGO)
   ======================================================== */

.area-box-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja el texto hacia abajo para que no tape la foto */
    align-items: center;
    border-radius: 18px; /* */
    padding: 25px 20px;
    min-height: 320px; /*[cite: 2] */
    text-align: center; /*[cite: 2] */
    text-decoration: none; /*[cite: 2] */
    box-shadow: 0 8px 25px rgba(0,0,0,.06); /* Sombra elegante base */
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: #fff; /*[cite: 2] */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* LA CAPA DEL DEGRADADO: Copia exacta de la atmósfera de tu Hero */
.area-box-card::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Degradado idéntico al de tu cabecera con opacidades sutiles */
    background: linear-gradient(135deg, rgba(242, 5, 5, 0.45) 0%, rgba(17, 184, 214, 0.35) 100%);
    z-index: 2; /* Se posiciona por encima de la foto de fondo */
    transition: opacity 0.4s ease;
}

/* INTERACCIÓN AL PASAR EL MOUSE (HOVER) */
.area-box-card:hover {
    transform: translateY(-8px); /*[cite: 2] */
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
}

/* Hacemos que el degradado se intensifique un poquitito en hover de forma muy suave */
.area-box-card:hover::before {
    background: linear-gradient(135deg, rgba(242, 5, 5, 0.55) 0%, rgba(17, 184, 214, 0.45) 100%);
}

/* CONTENEDOR DE LA IMAGEN (Ahora actúa como fondo total de la tarjeta) */
.area-icon-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    z-index: 1; /* Queda detrás del degradado */
}

/* La foto real se expande y cubre todo el cuadro de manera impecable */
.area-icon-wrap picture,
.area-icon-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Cambiado a cover para que llene todo el fondo de forma profesional */
    transition: transform 0.5s ease;
}

.area-box-card:hover .area-icon-wrap img {
    transform: scale(1.08); /* Suave zoom de fondo al pasar el mouse */
}

/* TÍTULO DE LA ESPECIALIDAD */
.area-box-card h5 {
    position: relative;
    z-index: 3; /* Por encima de la foto y del degradado */
    color: #ffffff; /* Texto blanco puro */
    font-size: 1.1rem;
    font-weight: 600; /*[cite: 2] */
    line-height: 1.3; /*[cite: 2] */
    margin: 0;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4); /* Fondo negro translúcido estilo banner inferior */
    backdrop-filter: blur(4px); /* Efecto esmerilado premium en el texto */
    border-radius: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Asegura legibilidad total */
    transition: background 0.3s ease;
}

.area-box-card:hover h5 {
    background: rgba(242, 5, 5, 0.75); /* En hover, la base del texto se tiñe del rojo Nango de forma limpia */
}

/* Responsive */
@media (max-width:768px){

    .area-box-card{
        min-height: 240px;
        padding: 18px 12px;
    }

    .area-icon-wrap{
        position: relative;
        inset: auto;
        width: 100%;
        height: 140px;
        border-radius: 12px;
        overflow: hidden;
    }

    .area-icon-wrap picture,
    .area-icon-wrap img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .area-box-card h5{
        font-size: .9rem;
    }

}

