/* =========================================================================
   Portada (home) — Teamwork Editorial sobre Storefront
   ========================================================================= */

:root {
	--twe-teal: #1a97ac;
	--twe-teal-dark: #137f92;
	--twe-teal-bright: #1f9bb3;
	--twe-mint: #a3ddc9;
	--twe-gray: #f2f3f3;
	--twe-insta-bg: #d8e8ef;
	--twe-newsletter-bg: #e9e9e7;
}

/* En la home, anulamos el contenedor de Storefront para tener bandas a ancho
   completo; cada sección centra su contenido con .twe-container. */
.home #content > .col-full {
	max-width: none;
	padding: 0;
}

.twe-container {
	max-width: 1110px;
	margin: 0 auto;
	padding: 0 2.617924em;
}

/* --- Títulos de sección --- */
.twe-section-title {
	text-align: center;
	color: var(--twe-teal-bright);
	font-weight: 700;
	margin-bottom: .15em;
}

.twe-section-sub {
	text-align: center;
	color: #6d6d6d;
	margin-bottom: 2.5em;
}

/* =========================================================================
   HERO SLIDER
   ========================================================================= */
.twe-hero {
	position: relative;
	overflow: hidden;
}

.twe-hero__track {
	display: flex;
	transition: transform .6s ease;
	will-change: transform;
}

.twe-hero__slide {
	flex: 0 0 100%;
	min-width: 100%;
	min-height: 520px;
	background: #2b2f33 center/cover no-repeat;
	position: relative;
}

.twe-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2em;
	min-height: 520px;
}

.twe-hero__content {
	max-width: 460px;
	color: #fff;
	padding: 2em 0;
}

.twe-hero__figure {
	flex: 0 0 auto;
	max-width: 46%;
}

.twe-hero__cover {
	height: auto;
	max-height: 420px;
	width: auto;
}

@media (max-width: 768px) {
	.twe-hero__figure {
		display: none;
	}
}

.twe-hero__title {
	color: #fff;
	font-size: calc(2.2em + 8px);
	line-height: 1.15;
	margin-bottom: .4em;
}

/* Texto en negro cuando la diapositiva lo indica. */
.twe-hero__slide--dark .twe-hero__content,
.twe-hero__slide--dark .twe-hero__title,
.twe-hero__slide--dark .twe-hero__text {
	color: #1a1a1a;
}

.twe-hero__text {
	font-size: 1.02em;
	line-height: 1.5;
	margin-bottom: 1.4em;
	opacity: .95;
}

.twe-hero__btn.button,
.twe-hero__btn.button:hover {
	background: var(--twe-teal);
	color: #fff;
}

.twe-hero__btn.button {
	display: inline-block;
	margin-top: 22px;
}

.twe-hero__dots {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.twe-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
}

.twe-hero__dot.is-active {
	background: var(--twe-teal);
}

/* =========================================================================
   BUSCADOR (tarjeta flotante que solapa el hero)
   ========================================================================= */
.twe-searchband {
	position: relative;
	z-index: 5;
	padding: 2.5em 0 0;
}

.twe-searchbox {
	display: flex;
	align-items: stretch;
	max-width: 840px;
	margin: 0 auto;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	padding: 12px 14px;
	gap: 8px;
}

.twe-searchbox__input {
	flex: 1 1 auto;
	border: 0;
	padding: .8em 1em;
	font-size: 1em;
	box-shadow: none;
	background: transparent;
}

.twe-searchbox__input:focus {
	outline: none;
	box-shadow: none;
}

.twe-searchbox__cat {
	border: 0;
	border-radius: 4px;
	background: var(--twe-mint);
	color: #18605a;
	font-weight: 600;
	padding: 0 1em;
	max-width: 240px;
	cursor: pointer;
}

.twe-searchbox__btn {
	border: 0;
	background: #fff;
	color: var(--twe-teal);
	padding: 0 1em;
	cursor: pointer;
}

.twe-searchbox__btn .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

/* =========================================================================
   VENTAJAS
   ========================================================================= */
.twe-usps {
	padding: 3.5em 0 2.5em;
}

.twe-usps__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: calc(3em + 30px);
	max-width: 880px;
}

.twe-usp {
	text-align: center;
}

.twe-usp__icon img {
	height: 83px;
	width: auto;
	margin: 0 auto;
	display: block;
}

.twe-usp__title {
	margin: .6em 0 .35em;
	font-size: 1.35em;
	font-weight: 700;
}

.twe-usp__text {
	color: #6d6d6d;
	font-size: .95em;
}

/* =========================================================================
   DESTACADOS
   ========================================================================= */
.twe-featured {
	background: var(--twe-gray);
	padding: 3.5em 0;
}

.twe-featured .twe-section-title {
	margin-bottom: .15em;
}

/* Rejilla de 4 columnas para los destacados, sin depender del CSS de Storefront. */
.twe-featured ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.twe-featured ul.products::before,
.twe-featured ul.products::after {
	content: none;
}

.twe-featured ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}

@media (max-width: 900px) {
	.twe-featured ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.twe-featured ul.products {
		grid-template-columns: 1fr;
	}
}

/* Botones de producto en teal (refuerzo local). */
.twe-featured .button,
.twe-featured .added_to_cart {
	background: var(--twe-teal);
	color: #fff;
}

/* =========================================================================
   INSTAGRAM
   ========================================================================= */
.twe-instagram {
	background: var(--twe-insta-bg);
	padding: 3em 0;
}

.twe-instagram__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2em;
}

.twe-instagram__text {
	text-align: center;
	flex: 1 1 auto;
}

.twe-instagram__follow {
	font-size: 2.6em;
	font-weight: 700;
	color: #2b2f33;
	margin: 0;
}

.twe-instagram__follow .dashicons {
	font-size: 46px;
	width: 46px;
	height: 46px;
	vertical-align: middle;
}

.twe-instagram__brand {
	font-size: 4.8em;
	font-weight: 700;
	margin: 0;
	background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-family: cursive, sans-serif;
}

.twe-instagram__handle {
	font-size: 1.3em;
	margin: .2em 0 1em;
	color: #2b2f33;
}

.twe-instagram__btn.button,
.twe-instagram__btn.button:hover {
	background: var(--twe-teal);
	color: #fff;
}

.twe-instagram__media {
	flex: 0 0 auto;
	max-width: 360px;
	text-align: center;
}

.twe-instagram__media img {
	width: 100%;
	height: auto;
	display: block;
}

/* =========================================================================
   COLECCIONES
   ========================================================================= */
.twe-collections {
	padding: 3.5em 0;
}

.twe-collections__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5em;
}

.twe-collection {
	display: block;
	text-decoration: none;
	color: inherit;
}

.twe-collection__thumb {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--twe-gray);
	overflow: hidden;
	border-radius: 3px;
}

.twe-collection__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.twe-collection:hover .twe-collection__thumb img {
	transform: scale(1.05);
}

.twe-collection__meta {
	margin-top: .6em;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: .5em;
}

.twe-collection__name {
	font-weight: 700;
}

.twe-collection__count {
	font-size: .8em;
	color: #8a8a8a;
	text-transform: uppercase;
}

/* =========================================================================
   NEWSLETTER
   ========================================================================= */
.twe-newsletter {
	background-color: var(--twe-newsletter-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 5em 0;
}

.twe-newsletter__inner {
	text-align: center;
}

.twe-newsletter__title {
	font-weight: 300;
	font-size: 2.2em;
	line-height: 1.25;
	color: #3a3a3a;
	max-width: 760px;
	margin: 0 auto 1.2em;
}

.twe-newsletter__btn.button,
.twe-newsletter__btn.button:hover {
	background: var(--twe-teal);
	color: #fff;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
	.twe-collections__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.twe-instagram__media {
		display: none;
	}
}

@media (max-width: 600px) {
	.twe-usps__grid {
		grid-template-columns: 1fr;
		gap: 2em;
	}

	.twe-collections__grid {
		grid-template-columns: 1fr;
	}

	.twe-searchbox {
		flex-wrap: wrap;
	}

	.twe-searchbox__cat {
		max-width: none;
		flex: 1 0 100%;
		border-left: 0;
		border-top: 1px solid #eee;
	}

	.twe-hero__title {
		font-size: 1.7em;
	}
}
