/*

Rojo: #e7045b
Azul: #0896be

*/

@import url('https://fonts.googleapis.com/css?family=Merriweather:400,400i,700,700i|Raleway:400,400i,700,700i');
@-ms-viewport { width: device-width; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 79px; /* Compensar header sticky */
}

#main {
	text-align: center;
	background: #FFF;
	scroll-snap-type: y mandatory;
	overflow-y: scroll;
	height: 100vh;
	overflow-x: hidden;
}

body
{
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	color: #444;
	background: #444;
}

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

h2 {
	margin-bottom: .5em;
	font-size: 3rem;
}



.btn-red:hover {
	color: #FFF;
}

.btn-red-top {
	color: #fff;
	background-color: #aa0d4f;
	border: none;
	border-radius: 25px;
	padding: 11px 40px;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(170, 13, 79, 0.3);
	margin-top: 30px;
	min-width: 200px;
}

.btn-red-top:hover {
	background-color: #8f0b42;
	box-shadow: 0 6px 20px rgba(170, 13, 79, 0.4);
	transform: translateY(-2px);
}

.btn-red {
    color: #fff;
    background-color: #aa0d4f;
    border: none;
    border-radius: 25px;
    padding: 11px 40px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(170, 13, 79, 0.3);
    margin-top: 30px;
    min-width: 200px;
}

.btn-red:hover {
	background-color: #8f0b42;
	box-shadow: 0 6px 20px rgba(170, 13, 79, 0.4);
	transform: translateY(-2px);
	color: #fff;
}

/* Asegurar que los botones de planes estén lado a lado */
#planes .row .row {
	display: flex;
	flex-wrap: nowrap;
	gap: 15px;
	justify-content: center;
	margin-top: 2px; /* Muy pegado al texto */
}

#planes .row .row .col {
	flex: 1 1 0; /* Mismo ancho para ambos */
	min-width: 0;
	max-width: 220px; /* Limitar ancho máximo */
}

#planes .btn-red {
	width: 100%; /* Ocupar todo el ancho del contenedor */
	min-width: 0; /* Resetear min-width */
}

#planes p {
	margin-bottom: 2px; /* Muy pegado a los botones */
}

.scroll {
	position: absolute;
  	right: 0;
  	left: 0;
  	bottom: -0.7em;
    margin-right: auto;
    margin-left: auto;
    color: #999;
    font-size: 1.3em;
    z-index: 999;
}
.scroll svg {
	background: #FFF;
}

.ajuste {
	display: inline-block;
	position: relative;
	top: -2px;
}

.show {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.hide {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

#main section {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	min-height: 100vh;
	height: 100vh;
	padding: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	border-bottom: solid 1px #CCC;
	position: relative;
}

#main section.container {
	width: 100%;
	max-width: none !important;
	padding-left: 15px;
	padding-right: 15px;
}

#main section .container {
	width: 100%;
	max-width: 1140px;
}

#main section .row {
	padding-top: 80px; /* Espacio desde arriba */
	padding-bottom: 120px; /* Espacio para el footer */
	width: 100%;
	position: relative;
	z-index: 10;
}

#main section h2 {
	padding-bottom: 5px;
	position: relative;
	z-index: 10;
}

#main section p {
	padding-bottom: 5px;
	position: relative;
	z-index: 10;
}

#header {
	padding: 5px 0;
	z-index: 1000;
	background: #FFF;
}
#header .navbar-brand img {
	max-height: 45px;
	width: auto;
}

/* The sticky class is added to the header with JS when it reaches its scroll position */
.sticky {
  	position: fixed;
  	top: 0px;
  	right: 0;
  	left: 0;
    margin-right: auto;
    margin-left: auto;
	border-bottom: solid 1px #CCC;
	z-index: 1000;
}
/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .container {
  padding-top: 102px;
}

.fondo-header {
	height: 79px;
	width: 100%;
	border: 1px solid #ddd;
	background-color: #999999;
}

.anchor {
	display: block;
	height: 1px;
	position: absolute;
	top: -79px; /* Cambiar de bottom a top */
	visibility: hidden;
}

#intro {
	background-image: url('images/ciudad-portada.svg');
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: 50% 60%;
}

#planes {
	background-image: url('images/choque.svg');
	background-size: 80%;
	background-repeat: no-repeat;
	background-position: 80% 58%;
}

#pagos {
	background-image: url('images/coins.svg');
	background-size: 70%;
	background-repeat: no-repeat;
	background-position: 50% 55%;
}

#referidos {
	background-image: url('images/ahorros.svg');
	background-size: 80%;
	background-repeat: no-repeat;
	background-position: 50% 60%;
}

#respaldo {
	background-image: url('images/respaldo.svg');
	background-size: 55%;
	background-repeat: no-repeat;
	background-position: 50% 60%;
}

#cotiza {
	background-image: url('images/edificios-subpagina.svg');
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: 50% 100%;
}

#footer {
	color: #FFF;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 100;
	background: #444;
	padding: 15px 0;
}

#footer a {
	color: #FFF;
}

#footer .footer-logo {
	text-align: center;
	padding: 0;
}

#footer .footer-logo img {
	max-width: 120px;
}

#footer ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
	padding: 0.5em 0;
	text-align: center;
}

#footer .footer-menu li,
#footer .footer-contact li {
	font-size: 0.85em;
	line-height: 1.6em;
}

#footer .footer-social li {
	font-size: 1.3em;
	display: inline-block;
	margin: 0 0.2em;
}

.color-imagen{
	background: rgba(226,226,226,0.93);
	background: -moz-linear-gradient(-45deg, rgba(226,226,226,0.93) 15%, rgba(226,226,226,0.93) 17%, rgba(219,219,219,0.94) 23%, rgba(209,209,209,0.98) 64%, rgba(235,235,235,1) 85%, rgba(254,254,254,1) 100%);
	background: -webkit-gradient(left top, right bottom, color-stop(15%, rgba(226,226,226,0.93)), color-stop(17%, rgba(226,226,226,0.93)), color-stop(23%, rgba(219,219,219,0.94)), color-stop(64%, rgba(209,209,209,0.98)), color-stop(85%, rgba(235,235,235,1)), color-stop(100%, rgba(254,254,254,1)));
	background: -webkit-linear-gradient(-45deg, rgba(226,226,226,0.93) 15%, rgba(226,226,226,0.93) 17%, rgba(219,219,219,0.94) 23%, rgba(209,209,209,0.98) 64%, rgba(235,235,235,1) 85%, rgba(254,254,254,1) 100%);
	background: -o-linear-gradient(-45deg, rgba(226,226,226,0.93) 15%, rgba(226,226,226,0.93) 17%, rgba(219,219,219,0.94) 23%, rgba(209,209,209,0.98) 64%, rgba(235,235,235,1) 85%, rgba(254,254,254,1) 100%);
	background: -ms-linear-gradient(-45deg, rgba(226,226,226,0.93) 15%, rgba(226,226,226,0.93) 17%, rgba(219,219,219,0.94) 23%, rgba(209,209,209,0.98) 64%, rgba(235,235,235,1) 85%, rgba(254,254,254,1) 100%);
	background: linear-gradient(135deg, rgba(226,226,226,0.93) 15%, rgba(226,226,226,0.93) 17%, rgba(219,219,219,0.94) 23%, rgba(209,209,209,0.98) 64%, rgba(235,235,235,1) 85%, rgba(254,254,254,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e2e2e2', endColorstr='#fefefe', GradientType=1 );
}
.captcha-container {
  display: flex;
  justify-content: center;
}

/* === ANIMACIONES SLIDE-IN === */

/* Estados iniciales */
.slide-in-bottom {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
	            transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
	            transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.slide-in-right {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
	            transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* Estados activos */
.slide-in-bottom.active,
.slide-in-left.active,
.slide-in-right.active {
	opacity: 1;
	transform: translate(0, 0);
}

/* Primera sección visible inmediatamente */
#intro .slide-in-bottom,
#intro .slide-in-left,
#intro .slide-in-right {
	opacity: 1;
	transform: translate(0, 0);
}

/* Optimización de performance */
.slide-in-bottom,
.slide-in-left,
.slide-in-right {
	will-change: transform, opacity;
	backface-visibility: hidden;
}

.slide-in-bottom.active,
.slide-in-left.active,
.slide-in-right.active {
	will-change: auto;
}

/* Accesibilidad: Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
	.slide-in-bottom,
	.slide-in-left,
	.slide-in-right {
		transition: none;
		opacity: 1;
		transform: none;
	}
}
