/*
Theme Name: Universal Theme
Theme URI:
Author: rwmarmol
Author URI:
Description: Theme base minimalista y reutilizable. HTML simple aprovechando las funciones nativas de WordPress (menus, loop de posts, footer) como punto de partida para nuevos proyectos.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: universal-theme
*/

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-body);
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1em;
}

/* ---------- Layout ---------- */
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
	border-bottom: 1px solid #eaeaea;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.25rem 0;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-accent);
}

.primary-nav ul {
	display: flex;
	gap: 1.5rem;
}

.primary-nav a:hover {
	color: var(--color-accent);
}

/* ---------- Main ---------- */
.site-main {
	min-height: 60vh;
	padding: 3rem 0;
}

.post-list {
	display: grid;
	gap: 2.5rem;
}

.post-list h2 a:hover {
	color: var(--color-accent);
}

.entry-excerpt {
	color: #555;
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid #eaeaea;
	margin-top: 3rem;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem 0;
	flex-wrap: wrap;
	border-top: 1px solid #eaeaea;
}

.footer-nav ul {
	display: flex;
	gap: 1.25rem;
}

.footer-nav a:hover {
	color: var(--color-accent);
}

.footer-copy {
	margin: 0;
	color: #777;
	font-size: 0.9rem;
}

/* ================================================
   Landing page (front-page.php)
   ================================================ */

/* ---------- Shared ---------- */
.section {
	padding: 5.5rem 0;
	position: relative;
}

.section--alt {
	background: #f2ede3;
}

.section--dark {
	background: var(--color-text);
	color: #fff;
}

.eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: 0.75rem;
}

.section-heading {
	max-width: 640px;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.section-lead {
	max-width: 640px;
	color: #555;
	font-size: 1.05rem;
}

.section--dark .section-lead {
	color: rgba(255, 255, 255, 0.75);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	cursor: pointer;
}

.btn--primary {
	background: var(--color-accent);
	color: #fff;
}

.btn--primary:hover {
	opacity: 0.9;
}

.btn--outline {
	border-color: currentColor;
}

.btn--whatsapp {
	background: #25d366;
	color: #fff;
}

/* ---------- Placeholder media (swap for real photos) ---------- */
.media-placeholder {
	border: 1px dashed #c9c2b3;
	border-radius: 16px;
	background: repeating-linear-gradient(
		135deg,
		#f2ede3,
		#f2ede3 10px,
		#ece5d6 10px,
		#ece5d6 20px
	);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #8a8271;
	font-size: 0.85rem;
	padding: 2rem;
	min-height: 320px;
}

/* ---------- Hero (M1) ---------- */
.hero {
	overflow: hidden;
	padding: 6rem 0 5.5rem;
}

.hero-shape {
	position: absolute;
	top: -120px;
	right: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: var(--color-accent);
	opacity: 0.12;
	z-index: 0;
}

.hero-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.hero-title {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	margin-bottom: 1rem;
}

.hero-lead {
	font-size: 1.15rem;
	color: #555;
	margin-bottom: 2rem;
	max-width: 560px;
}

/* ---------- Team / talent (M2) ---------- */
.split-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.split-section .media-placeholder {
	min-height: 380px;
}

/* ---------- Product carousel (M3) ---------- */
.carousel {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	padding: 0.5rem 0 1.5rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.product-card {
	flex: 0 0 260px;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 2rem 1.75rem;
}

.product-card .eyebrow {
	margin-bottom: 1rem;
}

.product-card h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.product-card p {
	color: #555;
	font-size: 0.92rem;
	margin: 0;
}

/* ---------- Nutrition stages (M4) ---------- */
.stage-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.stage-card {
	background: #fff;
	border-radius: 16px;
	padding: 1.75rem;
	border-top: 3px solid var(--color-accent);
}

.stage-card .stage-amount {
	display: block;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-accent);
	margin-bottom: 0.5rem;
}

.stage-card p {
	margin: 0;
	color: #555;
	font-size: 0.92rem;
}

/* ---------- FAQ (M6) ---------- */
.faq-list {
	max-width: 720px;
	margin-top: 2rem;
}

.faq-item {
	border-bottom: 1px solid #e2ddd0;
	padding: 1.25rem 0;
}

.faq-item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: '+';
	font-size: 1.4rem;
	color: var(--color-accent);
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
	transform: rotate(45deg);
}

.faq-item p {
	margin: 0.9rem 0 0;
	color: #555;
}

/* ---------- Contact form (M7) ---------- */
.contact-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	max-width: 760px;
	margin-top: 2.5rem;
}

.contact-form .field-full {
	grid-column: 1 / -1;
}

.contact-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid #ddd6c5;
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 0.95rem;
	background: #fff;
}

.contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.contact-form button {
	justify-self: start;
}

/* ---------- Footer (extended) ---------- */
.footer-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	padding: 3rem 0 2rem;
}

.footer-info h3,
.footer-links h3 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #999;
	margin-bottom: 1rem;
}

.footer-info p {
	margin: 0 0 0.4rem;
	color: #555;
}

.footer-links nav ul {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-bottom: 1.5rem;
}

.footer-links nav a:hover {
	color: var(--color-accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 782px) {
	.split-section {
		grid-template-columns: 1fr;
	}

	.stage-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-form {
		grid-template-columns: 1fr;
	}

	.footer-columns {
		grid-template-columns: 1fr;
	}

	.header-inner {
		flex-wrap: wrap;
	}
}
