/* =====================================================
1. BASE / BODY
===================================================== */

body{
	background:#f4f6f9;
	font-family:"Segoe UI", sans-serif;
}

html{
	scroll-behavior:smooth;
}

.section-white{ background:#ffffff; }
.section-light{ background:#f8fafc; }
.section-soft{ background:#eef3f8; }

.section-divider{
	line-height:0;
}

.section-divider svg{
	display:block;
	width:100%;
}

/* =====================================================
2. NAVBAR
===================================================== */

.navbar-valemas{
	background:transparent;
	transition:all .3s;
}

.navbar-scrolled{
	background:#0c2d48;
	box-shadow:0 3px 10px rgba(0,0,0,0.2);
}

.logo{
	height:55px;
	filter:drop-shadow(0 0 1px rgba(255,255,255,0.2));
	transition:0.3s;
}

.logo:hover{
	filter:drop-shadow(0 0 3px rgba(255,255,255,0.3));
}

.navbar-valemas .nav-link{
	color:white;
	font-weight:500;
	margin-left:20px;
}

.navbar-valemas .nav-link:hover{
	color:#fdc72b;
}

/* =====================================================
3. BOTÓN WHATSAPP NAVBAR
===================================================== */

.btn-whatsapp{
	background:#25D366;
	color:white;
	border-radius:30px;
	padding:6px 18px;
	font-weight:500;
	margin-left:10px;
	display:inline-flex;
	align-items:center;
	gap:6px;
	position:relative;
	overflow:hidden;
	transition:.3s;
}

.btn-whatsapp i{
	font-size:18px;
}

.btn-whatsapp:hover{
	background:#20b858;
	color:white;
}

/* pulso */

.nav-whatsapp{
	animation:whatsappPulse 6s infinite;
}

@keyframes whatsappPulse{
	0%{ transform:scale(1); }
	4%{ transform:scale(1.06); }
	8%{ transform:scale(1); }
	100%{ transform:scale(1); }
}

/* brillo */

.btn-whatsapp::after{

	content:"";
	position:absolute;
	top:0;
	left:-75%;
	width:50%;
	height:100%;

	background:linear-gradient(
	120deg,
	transparent,
	rgba(255,255,255,0.6),
	transparent
	);

	transform:skewX(-25deg);
	animation:whatsappShine 8s infinite;

}

@keyframes whatsappShine{

0%{ left:-75%; }
20%{ left:130%; }
100%{ left:130%; }

}



/* =====================================================
4. HERO / SLIDER
===================================================== */

.hero-section{
	position:relative;
}

.carousel-item{
	position:relative;
	height:700px;
	overflow:hidden;
}

/* imagen */

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

/* overlay */

.hero-overlay{

	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.55);
	z-index:1;

}

/* caption */
.hero-caption{
	position:absolute;
	top:50%;
	bottom: 10%;
	left:10%;
	transform:translateY(-50%);
	text-align:left;
	max-width:520px;
	z-index:5;
	padding:25px 30px;
	background:rgba(0,0,0,0.35);
	border-radius:10px;
}

/* caption right*/
.hero-caption-right{
	position:absolute;
	top:50%;
	bottom: 10%;
	right:8%;
	left:auto;
	transform:translateY(-50%);
	text-align:right;
	max-width:520px;
	z-index:5;
	padding:25px 30px;
	background:rgba(0,0,0,0.35);
	border-radius:10px;
}

/* texto */

.hero-title{

	font-size:40px;
	font-weight:650;
	color:white;

}

.hero-text{

	font-size:20px;
	color:white;
	margin-bottom:20px;

}

.hero-buttons .btn{
	margin-right:10px;
}

/* animación texto */

.hero-title,
.hero-text,
.hero-buttons{

	opacity:0;
	transform:translateY(30px);
	transition:all .8s ease;

}

.carousel-item.active .hero-title{

	opacity:1;
	transform:translateY(0);
	transition-delay:.4s;

}

.carousel-item.active .hero-text{

	opacity:1;
	transform:translateY(0);
	transition-delay:.7s;

}

.carousel-item.active .hero-buttons{

	opacity:1;
	transform:translateY(0);
	transition-delay:1s;

}

/* transición fade */

.carousel-fade .carousel-item{

	opacity:0;
	transition:opacity 1.2s ease-in-out;

}

.carousel-fade .carousel-item.active{

	opacity:1;

}

/* zoom imagen */

.carousel-item img{

	transform:scale(1);
	transition:transform 8s ease;

}

.carousel-item.active img{

	transform:scale(1.08);

}

/* controles */

.carousel-control-prev,
.carousel-control-next{
	width:5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
	background-color:rgba(0,0,0,0.4);
	padding:20px;
	border-radius:50%;
}

/* indicadores */

.carousel-indicators button{
	width:10px;
	height:10px;
	border-radius:50%;
}



/* =====================================================
5. BOTONES PRINCIPALES
===================================================== */

.btn-valemas{
	/*background:#ff7a00;*/
	background:#fdc72b;
	/*color:white;*/
	padding:12px 28px;
	font-weight:600;
	border-radius:4px;
}

.btn-valemas:hover{
	/*background:#e66d00;*/
	background:#c19529;
	color:white;
}



/* =====================================================
6. ABOUT
===================================================== */

.about-section{
	padding:100px 0;
	background:#edeeef;
}

.about-text{

	opacity:0;
	transform:translateX(40px);
	transition:all 1s ease;

}

.about-image{

	opacity:0;
	transform:translateX(-40px);
	transition:all 1s ease;

}

.about-text.visible,
.about-image.visible{

	opacity:1;
	transform:translateX(0);

}

.about-image img{

	border-radius:10px;
	box-shadow:0 15px 40px rgba(0,0,0,0.15);
	transition:transform .6s ease;

}

.about-image img:hover{
	transform:scale(1.03);
}

.about-text h2{

	font-size:36px;
	font-weight:700;
	margin-bottom:20px;

}

.about-text p{

	color:#555;
	font-size:17px;
	line-height:1.7;

}

.nav-underline .nav-link {
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-underline .nav-link.active {
    border-bottom: 3px solid #0d6efd;
}

.plus-logo{
    position:relative;
    display:inline-block;
    width:34px;
    height:34px;
    margin-left:6px;
    transform:rotate(3deg);
}

.plus-logo::before,
.plus-logo::after{
    content:"";
    position:absolute;
    background:#f3be26;
    border-radius:2px;
}

/* barra horizontal */
.plus-logo::before{
    width:100%;
    height:13px;
    top:50%;
    left:0;
    transform:translateY(-50%);
}

/* barra vertical */
.plus-logo::after{
    width:13px;
    height:100%;
    left:50%;
    top:0;
    transform:translateX(-50%);
}
/* =====================================================
7. SERVICIOS
===================================================== */

.servicios-section{
	padding:100px 0;
	background:#f8fafc;
}

.section-title{
	font-size:38px;
	font-weight:700;
	color:#0b2239;
}

.section-subtitle{
	color:#6c757d;
	font-size:18px;
}

.servicio-card{

	background:white;
	border-radius:16px;
	padding:40px 30px;
	text-align:center;
	height:100%;
	box-shadow:0 10px 30px rgba(0,0,0,.06);
	/*transition:all .35s ease;*/
	opacity:0;
	transform:translateY(40px);

	transition:all .6s ease;

}
.show-servicio{

	opacity:1;
	transform:translateY(0);

}

.servicio-card:hover{

	transform:translateY(-10px);
	box-shadow:0 20px 45px rgba(0,0,0,.12);

}

.servicio-icon{

	width:70px;
	height:70px;
	margin:auto;
	margin-bottom:20px;
	border-radius:14px;
	background:linear-gradient(135deg,#0d6efd,#0056d2);
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:30px;
	color:white;

}

.servicio-card h4{
	font-weight:600;
	margin-bottom:15px;
}

.servicio-card p{
	color:#6c757d;
	margin-bottom:25px;
}

.btn-servicio{

	text-decoration:none;
	padding:10px 20px;
	border-radius:8px;
	border:1px solid #0d6efd;
	color:#0d6efd;
	transition:all .3s;

}

.btn-servicio:hover{

	background:#0d6efd;
	color:white;

}



/* =====================================================
8. PORQUE VALEMAS
===================================================== */

.porque-section{
	padding:100px 0;
	/*background:white;*/
	background: #edeeef;
}

.porque-card{

	text-align:center;
	padding:30px 20px;
	border-radius:12px;

	opacity:0;
	transform:translateY(40px);

	transition:all .6s ease;

}
.show-pq{

	opacity:1;
	transform:translateY(0);

}

.porque-card:hover{
	transform:translateY(-8px);
}

.porque-icon{

	width:70px;
	height:70px;
	margin:auto;
	margin-bottom:20px;
	border-radius:50%;
	background:#0d6efd;
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:28px;
	color:white;

}

.porque-card h5{

	font-weight:600;
	margin-bottom:12px;

}

.porque-card p{

	color:#6c757d;
	font-size:15px;

}


/* =====================================================
9. INDICADORES
===================================================== */

.indicadores-section {
    padding: 100px 0;
    /* Gradiente con los colores de Financiera Vale+ (Verdes) */
    background: linear-gradient(135deg, #1a8754 0%, #0b5134 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo de fondo (opcional) */
.indicadores-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.indicador-item {
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05); /* Efecto Glass */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.indicador-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(252, 166, 12, 0.4); /* Brillo naranja al hover */
}

.indicador-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #f2a60c; /* El naranja/dorado de tus bonificaciones */
    text-shadow: 0 0 15px rgba(242, 166, 12, 0.3);
}

.contador {
    font-size: 64px; /* Un poco más grande para impactar */
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Arial Black', sans-serif; /* O una fuente pesada que tengas */
}

.indicador-item p {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    opacity: 0.9;
}

/* =====================================================
10. CONTACTO
===================================================== */

.contacto-section{

	padding:100px 0;
	background:#edeeef;

}

.contact-form input,
.contact-form textarea{

	border-radius:8px;
	padding:12px;

}

.btn-contacto{

	background:#0c2d48;
	color:white;
	border:none;
	padding:12px;
	font-weight:600;
	border-radius:8px;
	transition:all .3s ease;

}

.btn-contacto:hover{

	background:#144c73;
	transform:translateY(-2px);
	box-shadow:0 6px 14px rgba(0,0,0,0.2);
	color:white;

}

.contacto-info{
	padding-left:40px;
}

.contact-list{

	list-style:none;
	padding:0;
	margin-top:20px;

}

.contact-list li{

	margin-bottom:12px;
	font-size:16px;

}

#formContacto button{
	margin-top:15px;
	width:100%;
}

.spinner-btn{
	width:18px;
	height:18px;
	border:2px solid rgba(255,255,255,0.4);
	border-top:2px solid #fff;
	border-radius:50%;
	display:inline-block;
	animation:spin .6s linear infinite;
	margin-right:8px;
}

@keyframes spin{
	0%{transform:rotate(0deg);}
	100%{transform:rotate(360deg);}
}

/* =====================================================
11. FOOTER
===================================================== */

.footer{

	background:#0c2d48;
	color:white;
	padding:70px 0 25px 0;
	box-shadow:0 -3px 10px rgba(0,0,0,0.2);

}

.footer-logo{
	height:50px;
	margin-bottom:15px;
}

.footer-desc{
	opacity:.85;
	font-size:15px;
	margin-bottom:20px;
}

.footer-social a{

	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:38px;
	height:38px;
	background:rgba(255,255,255,0.1);
	border-radius:50%;
	margin-right:8px;
	color:white;
	font-size:18px;
	transition:.3s;

}

.footer-social a:hover{

	background:#ffffff;
	color:#0c2d48;

}

.footer-links{

	list-style:none;
	padding:0;

}

.footer-links li{

	margin-bottom:8px;

}

.footer-links a{
	color:white;
	text-decoration:none;
	opacity:.9;
}

.footer-links a:hover{
	color:#fdc72b;
}

.footer-contact .footer-links:hover{
	opacity:1;
	text-decoration:underline;
	color:#fdc72b;
}

.footer hr{
	border-color:rgba(255,255,255,0.2);
	margin:40px 0 20px 0;
}

.footer-bottom p{
	margin:5px 0;
	opacity:.85;
}

.footer-legal a{
	color:white;
	text-decoration:none;
	opacity:.9;
}

.footer-legal a:hover{
	text-decoration:underline;
}


/* =====================================================
12. WHATSAPP FLOAT
===================================================== */

.whatsapp-float{

	position:fixed;
	bottom:25px;
	right:25px;
	width:50px;
	height:50px;
	background:#25D366;
	border-radius:50%;
	display:flex;
	align-items:center;
	justify-content:center;
	box-shadow:0 8px 20px rgba(0,0,0,.25);
	z-index:999;
	transition:.3s;

}

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



/* =====================================================
13. RESPONSIVE
===================================================== */

@media (max-width:992px){

.about-text{
	margin-top:40px;
}

}

@media (max-width:768px){

.carousel-item{
	height:90vh;
}

.hero-caption{
	left:6%;
	right:6%;
}

.hero-title{
	font-size:32px;
}

.hero-text{
	font-size:16px;
}

.nav-whatsapp{
	animation:none;
}

.btn-whatsapp::after{
	display:none;
}

}

/* =====================================================
14.  SECCIÓN UBICACIONES
===================================================== */
.ubicaciones-section {
    padding: 80px 0;
    overflow: hidden; /* Evita scrolls raros por la animación */
}

.mapa-interactivo {
    max-height: 500px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto elástico */
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    cursor: pointer;
}

/* Efecto Hover: Se inclina un poco y sube */
.mapa-interactivo:hover {
    transform: scale(1.05) translateY(-10px) rotate(-1deg);
    filter: drop-shadow(0 20px 25px rgba(0,0,0,0.2));
}

/* Lista de sucursales */
.sucursales-list li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: 0.3s;
    border-left: 4px solid transparent;
	transition: all 0.3s ease;
}

.sucursales-list li:hover {
    border-left: 4px solid var(--color-valemas, #f26522); /* Ajusta al color de tu marca */
    background: #fff;
    transform: translateX(10px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.text-valemas {
    color: #f26522; /* El color naranja de tu marca */
    margin-right: 10px;
}

/* Contenedor relativo para posicionar los pines */
.map-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Estilo base del Pin */
.pin {
    width: 12px;
    height: 12px;
    background-color: #f26522; /* Color de tu marca */
    border-radius: 50%;
    position: absolute;
    z-index: 10;
    box-shadow: 0 0 0 rgba(242, 101, 34, 0.4);
    animation: pulse 2s infinite;
    cursor: pointer;
}

/* Animación de Pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(242, 101, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(242, 101, 34, 0);
    }
}

/* Ajuste para que los pines sigan el movimiento del mapa en hover */
.map-wrapper:hover .pin {
    transform: scale(1.1) translateY(-10px) rotate(-2deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tooltip sencillo al pasar el mouse por el pin */
.pin:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 20;
}

/* Clase que aplicará el JavaScript */
.city-highlight {
    background-color: #fff !important;
    border-left: 4px solid #f26522 !important; /* El naranja de Vale+ */
    transform: translateX(15px);
    box-shadow: 0 5px 15px rgba(242, 101, 34, 0.2);
    color: #f26522;
}

/* Animación de entrada para la sección de Ubicaciones */
.map-wrapper, .sucursales-list {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.map-wrapper.visible, .sucursales-list.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
15.  SECCIÓN BENEFICIOS
===================================================== */
/* --- SECCIÓN BENEFICIOS (DISEÑO UNIFICADO DE TARJETAS) --- */
.beneficios-section {
    background-color: #edeeef;
    padding: 80px 0;
}

/* Colores de marca basados en la imagen */
.beneficios-section .section-title.text-success {
    color: #0b5134 !important; /* Verde oscuro institucional */
}

.text-warning {
    color: #f2a60c !important; /* Naranja/Dorado de la imagen */
}

/* Estilos de las Tarjetas de Categoría */
.category-card {
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0; /* Para la animación de entrada */
    transform: translateY(20px);
}

.category-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Estilo Especial para la Tarjeta MASTER */
.featured-card {
    background: linear-gradient(145deg, #1a8754, #0b5134);
    transform: scale(1.05) translateY(20px); /* El scale se suma al efecto de entrada */
    z-index: 2;
}

.featured-card.visible {
    transform: scale(1.05) translateY(0);
}

.bg-white-transparent {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Ajustes Responsivos */
@media (max-width: 991px) {
    .featured-card, .featured-card.visible {
        transform: scale(1); /* En móvil quitamos el scale para que no se encime */
    }
    
    .beneficios-section {
        padding: 50px 0;
    }
}

/* Iconos y textos de apoyo inferiores */
.beneficios-section .bi {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}


/* =====================================================
15.  SECCIÓN REQUISITOS
===================================================== */
.requisito-box {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6 !important;
}

.requisito-box:hover {
    border-color: #1a8754 !important;
    background-color: #fcfdfc;
    transform: translateY(-5px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.req-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
}

.req-list li i {
    margin-right: 12px;
    margin-top: 4px;
}

.linea-info {
    border-left: 3px solid #f2a60c; /* Naranja para resaltar info de la línea */
}

.req-list li strong {
    margin-left: 2px;
    margin-right: 2px;
}