﻿.wavy-banner {
	position: relative;
	width: 100%;
	height: 580px;
	background: none;
	overflow: hidden;
	text-align: center;
	margin: -140px 0 0 0;
	padding: 0;
	z-index: 5;
	pointer-events:none;
}

.wavy-fill {
	position: absolute;
	top: 200px; /* misma altura que .ocean-top */
	height: 190px; /* altura del relleno intermedio */
	width: 100%;
	background: #FFB43A;
	z-index: 1; /* debajo de olas y texto */
}

/* OLAS */
.ocean {
	position: absolute;
	width: 100%;
	overflow: hidden;
	background: transparent;
	z-index: 2;
}

.ocean-top {
	/*top: 0;*/
	height: 200px;
}

.ocean-inverse {
	/*bottom: 0;*/
	transform: scaleY(-1);
	height: 200px;
}

.wave {
	background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 174.47 46.34' xmlns='http://www.w3.org/2000/svg'><path fill='%23FFB43A' d='M0,11.38c0,0,21.13,11.40,43.62,11.38C66.10,22.76,107.97,0.03,130.51,0c22.54-0.03,43.96,11.38,43.96,11.38v34.96H0V11.38z'/></svg>");
	background-repeat: repeat-x;
	background-size: 500px auto;
	background-position: bottom;
	position: absolute;
	bottom: 0;
	width: 200%;
	height: 420px;
	animation: wave 8s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
	z-index: 3;
}

	.wave:nth-of-type(2) {
		opacity: 0.7;
		animation: swell 5s ease -1.25s infinite, wave 5s cubic-bezier(0.36, 0.45, 0.63, 0.53) -.125s infinite;
		z-index: 2;
	}

/* ANIMACIONES */
@keyframes wave {
	0% {
		background-position-x: -500px;
	}

	100% {
		background-position-x: 0%;
	}
}

@keyframes swell {
	0%, 100% {
		background-position: right bottom 10px;
	}

	50% {
		background-position: right bottom 0;
	}
}

/* CONTENIDO */
.wavy-banner-content {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	flex-direction: row;
	padding: 180px 20px 0px 20px;
}

/* TEXTO */
.wavy-banner-title {
	font-family: 'Visby Round CF', Arial, sans-serif;
	font-weight: 900;
	font-size: 32.87px;
	line-height: 100%;
	letter-spacing: -1.07px;
	text-align: center;
	color: #FFFEA5;
	margin-bottom: 10px;
}

.wavy-banner-highlight {
	font-family: 'Visby Round CF', Arial, sans-serif;
	font-weight: 900;
	font-size: 38.1px;
	line-height: 100%;
	letter-spacing: -1.25px;
	color: #fff;
	margin-bottom: 10px;
	margin-left: 20px;
	margin-right: auto;
}

	.wavy-banner-highlight span {
		font-family: 'Visby Round CF', Arial, sans-serif;
		font-weight: 900;
		font-size: 67.29px;
		line-height: 100%;
		letter-spacing: -2.2px;
		text-align: center;
		color: #fff;
		margin-bottom: 10px;
	}

.wavy-banner-desc {
	font-family: 'Visby Round CF', Arial, sans-serif;
	font-weight: 500;
	font-size: 14.85px;
	line-height: 100%;
	text-align: center;
	color: #fff;
	margin: 10px auto;
	max-width: 700px;
}


/* ============================= */
/* 📱 Mobile XS (hasta 480px) */
/* ============================= */
@media (max-width: 480px) {
    .wavy-banner {
        height: 400px;
        margin-top: -220px;
    }

    .wave {
        height: 220px;
        background-size: 300px auto;
    }

    .wavy-banner-content {
        flex-direction: column;
        gap: 20px;
        padding-top: 200px;
    }

    .wavy-banner-title {
        font-size: 15px;
    }

    .wavy-banner-highlight {
        font-size: 20px;
        margin: 0 auto;
    }

    .wavy-banner-highlight span {
        font-size: 25px;
    }

    .wavy-banner-desc {
        font-size: 11px;
        padding: 0 10px;
    }

    .vectorwavyfirst-asterisco,
    .vectorwavyfirst-estrellita {
        display: none;
    }
	.ocean-top{
		height: 208px;
	}
}

/* ============================= */
/* 📱 Mobile Portrait Specific */
/* ============================= */
@media  (max-width: 480px) and (orientation: portrait) {
    .wavy-banner-content {
       padding-top: 220px;
    }
}

/* ============================= */
/* 📱 Tablets (hasta 768px) */
/* ============================= */
@media (min-width: 481px) and (max-width: 768px) {
    .wavy-banner {
        height: 460px;
		margin-top: -180px;
    }

    .wave {
        height: 280px;
        background-size: 400px auto;
    }

    .wavy-banner-content {
        padding-top: 190px;
    }

    .wavy-banner-title {
        font-size: 24px;
    }

    .wavy-banner-highlight span {
        font-size: 45px;
    }

    .wavy-banner-desc {
        font-size: 13px;
    }
}

/* ============================= */
/* 💻 Tablets grandes (912px) */
/* ============================= */
@media (min-width: 769px) and (max-width: 912px) {
    .wavy-banner {
        height: 500px;
		margin-top: -170px;
    }

    .wave {
        height: 300px;
        background-size: 450px auto;
    }

    .wavy-banner-content {
        padding-top: 160px;
    }

    .wavy-banner-title {
        font-size: 30px;
    }

    .wavy-banner-highlight span {
        font-size: 55px;
    }
	.ocean-top{
		height: 204px;
	}
}

/* ============================= */
/* 💻 Laptops pequeñas (1024px) */
/* ============================= */
@media (min-width: 913px) and (max-width: 1024px) {
    .wavy-banner {
        height: 520px;
    }

    .wave {
        height: 340px;
    }

    .wavy-banner-content {
        padding-top: 150px;
    }

    .wavy-banner-highlight span {
        font-size: 60px;
    }
}

/* ============================= */
/* 📺 Landscape tablets */
/* ============================= */
@media (min-width: 913px) and (max-width: 1024px) and (orientation: landscape) {
    .wavy-banner {
        height: 480px;
    }

    .wavy-banner-content {
        padding-top: 130px;
    }

    .wave {
        height: 300px;
    }
}

/* ============================= */
/* 📱 Portrait tablets */
/* ============================= */
@media (min-width: 913px) and (max-width: 1024px) and (orientation: portrait) {
    .wavy-banner-content {
        flex-direction: column;
        gap: 25px;
        padding-top: 140px;
    }
}

/* ============================= */
/* 🖥️ Pantallas grandes (1440px+) */
/* ============================= */
@media (min-width: 1440px) {
    .wavy-banner {
        height: 620px;
    }

    .wave {
        height: 420px;
        background-size: 500px auto;
    }

    .wavy-banner-title {
        font-size: 36px;
    }

    .wavy-banner-highlight {
        font-size: 42px;
    }

    .wavy-banner-highlight span {
        font-size: 72px;
    }

    .wavy-banner-desc {
        font-size: 16px;
    }
}
