/* =========================================================
 * Footer AQUAVEST
 * Fondo teal de marca, 3 columnas (Menú | Logo+desc | Datos de Contacto),
 * patrón de olas decorativo y barra de copyright.
 * ========================================================= */

.oz-footer {
	--oz-fb-bg:          #0b3a48;          /* teal oscuro de marca (igual que la barra del header) */
	--oz-fb-bg-2:        #0a3340;          /* aún más oscuro para la barra inferior */
	--oz-fb-text:        #d6e2e6;          /* texto base */
	--oz-fb-text-soft:   #9fb4bb;          /* texto suave (descripción) */
	--oz-fb-text-strong: #ffffff;          /* títulos / fuerte */
	--oz-fb-accent:      #56c8d6;          /* teal claro (hover) */
	--oz-fb-divider:     rgba(255, 255, 255, .14);
	--oz-fb-wave:        rgba(86, 200, 214, .22);

	background: var(--oz-fb-bg);
	color: var(--oz-fb-text);
	font-family: var(--OZ-Font-Base, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	font-size: 14px;
	line-height: 1.6;
}

.oz-footer * { box-sizing: border-box; }
.oz-footer ul { list-style: none; margin: 0; padding: 0; }
.oz-footer a { color: inherit; text-decoration: none; transition: color .2s ease; }
.oz-footer a:hover { color: var(--oz-fb-accent); }

.oz-footer__container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 64px clamp(20px, 5vw, 48px) 48px;
}

/* =========================================================
 *  Bloque principal: 3 columnas con divisores verticales
 * ========================================================= */
.oz-footer__main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

@media (min-width: 768px) {
	.oz-footer__main {
		grid-template-columns: 1fr 1.3fr 1.1fr;
		gap: 0;
		align-items: start;
	}
	/* Divisores verticales sutiles entre columnas (como en el diseño) */
	.oz-footer__col { padding: 0 44px; }
	.oz-footer__col:first-child { padding-left: 0; }
	.oz-footer__col:last-child { padding-right: 0; }
	.oz-footer__col + .oz-footer__col {
		border-left: 1px solid var(--oz-fb-divider);
	}
}

/* ----- Títulos ----- */
.oz-footer__title {
	margin: 0 0 22px;
	color: var(--oz-fb-text-strong);
	font-family: var(--OZ-Font-Headings, var(--OZ-Font-Base, inherit));
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .005em;
}

/* ----- Columna Menú ----- */
.oz-footer__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.oz-footer__list li { margin: 0; }
.oz-footer__list .sub-menu,
.oz-footer__list .children { display: none; }
.oz-footer__list a {
	display: inline-block;
	color: var(--oz-fb-text);
	font-size: 15px;
	line-height: 1.4;
	transition: color .2s ease, transform .2s ease;
}
.oz-footer__list a:hover {
	color: var(--oz-fb-accent);
	transform: translateX(3px);
}

/* ----- Columna Marca (logo + descripción) ----- */
.oz-footer__col--brand { text-align: left; }
.oz-footer__brand-logo {
	display: flex;
	align-items: center;
	margin-bottom: 22px;
}
.oz-footer__brand-logo a { display: inline-flex; align-items: center; }
.oz-footer__brand-logo img {
	max-width: 280px;
	width: 100%;
	height: auto;
	display: block;
}
.oz-footer__brand-text {
	color: var(--oz-fb-text-strong);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: .02em;
}
.oz-footer__brand-body {
	margin: 0;
	color: var(--oz-fb-text-soft);
	font-size: 15px;
	line-height: 1.7;
	max-width: 46ch;
}

/* ----- Columna Datos de Contacto ----- */
.oz-footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.oz-footer__contact {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}
.oz-footer__contact-icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--oz-fb-text-strong);
	margin-top: 1px;
	transition: color .25s ease, transform .25s ease;
}
.oz-footer__contact-icon svg { width: 22px; height: 22px; display: block; }
.oz-footer__contact:hover .oz-footer__contact-icon {
	color: var(--oz-fb-accent);
	transform: translateY(-1px);
}
.oz-footer__contact-text {
	color: var(--oz-fb-text);
	font-size: 15px;
	line-height: 1.45;
	min-width: 0;
	word-break: break-word;
}
a.oz-footer__contact-text:hover,
a.oz-footer__contact-text:focus-visible {
	color: var(--oz-fb-accent);
}

/* Dos correos compartiendo un solo icono: apilados en líneas separadas */
.oz-footer__contact-text--stack {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.oz-footer__contact-text--stack a {
	color: var(--oz-fb-text);
	transition: color .2s ease;
}
.oz-footer__contact-text--stack a:hover,
.oz-footer__contact-text--stack a:focus-visible {
	color: var(--oz-fb-accent);
}

/* =========================================================
 *  Barra inferior: imagen de olas (background.webp) de fondo, hasta el final,
 *  + copyright dinámico centrado encima.
 *  La imagen es solo el patrón de olas (sin texto), así que se repite en
 *  horizontal manteniendo su tamaño natural.
 * ========================================================= */
.oz-footer__bottom {
	position: relative;
	background-color: var(--oz-fb-bg-2);
	background-image: url("assets/img/background.webp");
	background-repeat: repeat-x;
	background-position: center top;
	background-size: auto 56px;
	padding: 34px 16px 26px;
	text-align: center;
}
.oz-footer__copy {
	position: relative;
	z-index: 1;
	margin: 0;
	color: var(--oz-fb-text-strong);
	font-size: 14px;
	letter-spacing: .01em;
}
/* Año enlazado (ozado.pe): hereda el color; al pasar el mouse se resalta. */
.oz-footer__copy-year {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}
.oz-footer__copy-year:hover,
.oz-footer__copy-year:focus-visible {
	color: var(--oz-fb-accent);
	text-decoration: underline;
}

/* =========================================================
 *  Responsive
 * ========================================================= */
@media (max-width: 767px) {
	.oz-footer__container { padding: 44px 20px 36px; }
	.oz-footer__main { gap: 34px; }
	.oz-footer__title { font-size: 20px; margin-bottom: 16px; }
	.oz-footer__brand-logo img { max-width: 220px; }
	.oz-footer__brand-body { font-size: 14px; max-width: none; }
	.oz-footer__bottom { padding: 32px 16px 22px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
	.oz-footer__list a,
	.oz-footer__contact-icon { transition: none !important; }
	.oz-footer__list a:hover { transform: none; }
	.oz-footer__contact:hover .oz-footer__contact-icon { transform: none; }
}
