/* Tropical Header Variables */
:root {
	--tropical-cyan: #00f2fe;
	--tropical-blue: #4facfe;
	--tropical-pink: #fa709a;
	--tropical-yellow: #fee140;
	--tropical-text: #2c3e50;
	--tropical-bg-light: rgba(255, 255, 255, 0.85);
	--tropical-overlay: rgba(255, 255, 255, 0.95);
	--tropical-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	--tropical-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Wrapper */
.tropical-header-wrapper {
	position: relative;
	width: 100%;
	z-index: 999;
	font-family: 'Inter', 'Outfit', 'Roboto', sans-serif;
}

/* Sticky state if added by JS later */
.tropical-header-wrapper.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	animation: slideDown 0.5s ease;
}

@keyframes slideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}

.tropical-header-flex-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1350px;
	margin: 0 auto;
	padding: 0 20px;
	gap: 20px;
}

/* Container Focus */
.tropical-header-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 0;
	margin: 0;
	max-width: 1200px;
	background: transparent;
	transition: var(--tropical-transition);
}

/* Logo */
.tropical-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
}
.tropical-logo img {
	max-height: 50px;
	width: auto;
	transition: var(--tropical-transition);
}
.tropical-logo img:hover {
	transform: scale(1.05);
}
.text-logo {
	font-size: 28px;
	font-weight: 800;
	background: linear-gradient(45deg, var(--tropical-pink), var(--tropical-yellow));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Nav and Utils */
.tropical-offcanvas-close {
	display: none;
}
.tropical-overlay {
	display: none;
}

.tropical-nav {
	display: flex;
	align-items: center;
	gap: 30px;
}

.tropical-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 25px;
}

.tropical-menu-link {
	color: var(--tropical-text);
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	position: relative;
	padding: 5px 0;
	transition: var(--tropical-transition);
}

/* Underline Animation */
.tropical-menu-link::after {
	content: '';
	position: absolute;
	width: 0;
	height: 3px;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, var(--tropical-cyan), var(--tropical-blue));
	border-radius: 2px;
	transition: var(--tropical-transition);
}

.tropical-menu-link:hover {
	color: var(--tropical-blue);
}

.tropical-menu-link:hover::after {
	width: 100%;
}

.tropical-header-gtranslate-outer {
	flex-shrink: 0;
}

.tropical-header-gtranslate-mobile {
	display: none;
}

/* Adjust GTranslate general dropdown or wrappers */
.tropical-header-gtranslate-outer select,
.tropical-header-gtranslate-outer .gtranslate_wrapper {
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	padding: 8px 15px;
	background: transparent;
	color: var(--tropical-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	outline: none;
	cursor: pointer;
	box-shadow: none;
	transition: var(--tropical-transition);
}

.tropical-header-gtranslate-outer select:hover,
.tropical-header-gtranslate-outer .gtranslate_wrapper:hover {
	border-color: rgba(0,0,0,0.3);
	transform: translateY(-2px);
}

/* Call to Action Button */
.tropical-header-action {
	margin-left: 10px;
}

.tropical-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--tropical-cyan), var(--tropical-blue));
	color: #fff;
	padding: 12px 28px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
	transition: var(--tropical-transition);
	position: relative;
	overflow: hidden;
}

.tropical-cta-btn span {
	position: relative;
	z-index: 2;
}

.tropical-cta-btn .btn-icon {
	position: relative;
	z-index: 2;
	transition: transform 0.3s ease;
}

/* Button Hover Ripple inside */
.tropical-cta-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--tropical-pink), var(--tropical-yellow));
	transition: all 0.5s ease;
	z-index: 1;
}

.tropical-cta-btn:hover::before {
	left: 0;
}

.tropical-cta-btn:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 12px 25px rgba(250, 112, 154, 0.4);
}

.tropical-cta-btn:hover .btn-icon {
	transform: translateX(3px);
}

/* Mobile Toggle */
.tropical-mobile-toggle {
	display: none;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001;
}

.tropical-mobile-toggle span {
	display: block;
	width: 30px;
	height: 3px;
	background: var(--tropical-text);
	margin: 6px 0;
	border-radius: 3px;
	transition: var(--tropical-transition);
}

/* Responsive */
@media (max-width: 991px) {
	.tropical-header-flex-wrapper {
		flex-direction: column-reverse;
		gap: 10px;
		padding: 0 15px;
	}

	.tropical-header-gtranslate-outer {
		display: none;
	}

	.tropical-header-container {
		padding: 12px 0;
		margin: 0;
	}

	.tropical-mobile-toggle {
		display: block;
	}

	.tropical-nav {
		position: fixed;
		top: 0;
		right: -320px;
		width: 300px;
		max-width: 80vw;
		height: 100vh;
		background: var(--tropical-bg-light);
		backdrop-filter: blur(25px);
		-webkit-backdrop-filter: blur(25px);
		border-radius: 0;
		flex-direction: column;
		padding: 80px 30px 40px;
		box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
		border-left: 1px solid rgba(255, 255, 255, 0.4);
		transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
		z-index: 1005;
		gap: 30px;
	}

	.tropical-nav.is-active {
		transform: translateX(-320px);
	}

	.tropical-overlay {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.5);
		backdrop-filter: blur(5px);
		-webkit-backdrop-filter: blur(5px);
		z-index: 1000;
		opacity: 0;
		visibility: hidden;
		transition: var(--tropical-transition);
	}

	.tropical-overlay.is-active {
		opacity: 1;
		visibility: visible;
	}

	.tropical-offcanvas-close {
		display: block;
		position: absolute;
		top: 20px;
		right: 20px;
		background: transparent;
		border: none;
		color: var(--tropical-text);
		cursor: pointer;
		padding: 5px;
		transition: var(--tropical-transition);
	}

	.tropical-offcanvas-close:hover {
		color: var(--tropical-pink);
		transform: rotate(90deg);
	}

	.tropical-menu {
		flex-direction: column;
		width: 100%;
		text-align: left;
		gap: 20px;
	}

	.tropical-menu-link {
		font-size: 20px;
		display: inline-block;
		padding: 5px 0;
	}

	.tropical-header-gtranslate-mobile {
		display: flex;
		justify-content: center;
		width: 100%;
		margin-top: 20px;
		padding-top: 20px;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	.tropical-header-gtranslate-mobile select,
	.tropical-header-gtranslate-mobile .gtranslate_wrapper {
		border-radius: 20px;
		border: 1px solid rgba(0, 0, 0, 0.1);
		padding: 8px 15px;
		background: transparent;
		color: var(--tropical-text);
		font-family: inherit;
		font-size: 14px;
		font-weight: 600;
		outline: none;
		cursor: pointer;
	}

	.tropical-header-action {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}

	.tropical-cta-btn {
		width: 100%;
		justify-content: center;
	}

	/* Toggle Animation */
	.tropical-mobile-toggle.is-active span:nth-child(1) {
		transform: translateY(9px) rotate(45deg);
		background: var(--tropical-pink);
	}
	.tropical-mobile-toggle.is-active span:nth-child(2) {
		opacity: 0;
	}
	.tropical-mobile-toggle.is-active span:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg);
		background: var(--tropical-pink);
	}

    /* Footer Mobile adjustments */
    .tropical-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }
    
    .tropical-contact-info li, .tropical-social-icons {
        justify-content: center;
    }
}

/* ==================================
   Tropical Footer Styles
   ================================== */

.tropical-footer-wrapper {
    position: relative;
    width: 100%;
    margin-top: 100px;
    background: linear-gradient(135deg, #1A2980 0%, #26D0CE 100%); /* Fondo océano profundo a tropical */
    color: #fff;
    font-family: 'Inter', 'Outfit', 'Roboto', sans-serif;
    z-index: 10;
}

/* Capa decorativa en ola SVG */
.tropical-footer-wave {
    position: absolute;
    top: -119px; /* Ajustar según altura del svg */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    direction: ltr;
}

.tropical-footer-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.tropical-footer-wave .wave-path {
    fill: #1A2980; /* Mismo color de inicio del gradiente del footer */
}

.tropical-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 20px;
}

.tropical-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Columna Marca */
.tropical-footer-logo img {
    max-height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.tropical-footer-logo .text-logo {
    font-size: 32px;
    margin: 0 0 20px 0;
}

.tropical-footer-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

/* Títulos de columnas */
.tropical-footer-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #fff;
    position: relative;
    display: inline-block;
}

.tropical-footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--tropical-yellow); /* Acento vibrante */
    border-radius: 2px;
}

/* Enlaces listado */
.tropical-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tropical-footer-menu li {
    margin-bottom: 15px;
}

.tropical-footer-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    transition: var(--tropical-transition);
    position: relative;
    padding-left: 0;
}

.tropical-footer-menu a:hover {
    color: var(--tropical-yellow);
    padding-left: 8px; /* Animación sutil de flecha/movimiento */
}

/* Info Contacto */
.tropical-contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.tropical-contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

.tropical-contact-info a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--tropical-transition);
}

.tropical-contact-info a:hover {
    color: var(--tropical-yellow);
}

/* Redes Sociales */
.tropical-social-icons {
    display: flex;
    gap: 15px;
}

.tropical-social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    backdrop-filter: blur(5px);
    transition: var(--tropical-transition);
}

.tropical-social-icons .social-icon:hover {
    background: var(--tropical-yellow);
    color: #1A2980;
    transform: translateY(-3px);
}

/* Confianza / Ministerio */
.tropical-ministry-badge {
    text-align: center;
    margin-bottom: 20px;
}

.tropical-ministry-badge img.ministry-logo {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    display: block;
    margin: 0 auto;
}

.ministry-placeholder {
    color: #333;
    font-size: 13px;
    font-weight: bold;
}

.tropical-ssl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.ssl-icon {
    color: #4ade80; /* Verde de seguridad */
}

/* Bottom Copyright */
.tropical-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}
