/* =====================================================================
   HISPASEEDS BLACK · EDICIÓN DOCUMENTADA
   Archivo: assets/css/guide.css
   ---------------------------------------------------------------------
   QUÉ HACE:
   - Estilos específicos de la guía de cultivo.

   QUÉ SUELE TOCARSE AQUÍ:
   - Cambiar diseño editorial de la guía

   CAMBIOS FRECUENTES:
   - Ancho de lectura
   - Titulares más grandes

   DEPENDE DE:
   - page-guia-de-cultivo.php

   CONSEJO PARA NOVATOS:
   - Antes de cambiar mucho, abre el navegador, inspecciona el elemento
     y busca aquí la clase que quieres modificar.
   ===================================================================== */

/* =========================
   GUIDE PRO UX FINAL (FIX LEGIBILIDAD)
   ========================= */

.hs-grow-guide {
	padding: 88px 0 96px;
	background: #050505;
	color: #f2eee3;
}

/* HERO */

.hs-guide-hero {
	padding: 24px 0 36px;
	border-bottom: 1px solid rgba(255, 215, 140, 0.18);
	margin-bottom: 42px;
}

.hs-guide-hero h1 {
	font-size: clamp(42px, 6vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0 0 18px;
	color: #ffd978; /* MÁS LUMINOSO */
	max-width: 12ch;
}

.hs-guide-hero p {
	max-width: 760px;
	font-size: 22px;
	line-height: 1.75;
	color: #f5edd6;
	margin: 0;
}

/* HIGHLIGHT */

.hs-guide-highlight {
	margin: 34px 0 56px;
	padding: 28px 32px;
	border: 1px solid rgba(255, 217, 120, 0.25);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255,217,120,0.08), rgba(255,255,255,0.02));
	box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.hs-guide-highlight p {
	margin: 0;
	font-size: 21px;
	line-height: 1.75;
	color: #fff6db;
}

/* LAYOUT */

.hs-guide-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 58px;
	align-items: start;
}

/* SIDEBAR (FIX IMPORTANTE) */

.hs-guide-sidebar {
	position: sticky;
	top: 118px;
	padding-top: 8px;
}

.hs-guide-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hs-guide-sidebar li + li {
	margin-top: 10px;
}

/* 🔆 MÁS LUZ Y LEGIBILIDAD */
.hs-guide-sidebar a {
	display: block;
	padding: 10px 0;
	color: #f3e4b0; /* ANTES MUY OSCURO */
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
	opacity: 0.85;
	transition: all 0.2s ease;
}

/* HOVER MÁS CLARO */
.hs-guide-sidebar a:hover {
	color: #ffe7a3;
	opacity: 1;
	transform: translateX(4px);
}

/* ACTIVO MUY VISIBLE */
.hs-guide-sidebar a.active {
	color: #ffd978;
	opacity: 1;
	font-weight: 700;
}

/* CONTENT */

.hs-guide-content {
	max-width: 860px;
}

.hs-section {
	margin-bottom: 68px;
	scroll-margin-top: 120px;
}

.hs-section h2 {
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	color: #fff4d2;
}

.hs-section p,
.hs-section li {
	font-size: 19px;
	line-height: 1.9;
	color: #f3ecda;
}

.hs-section p {
	max-width: 760px;
}

.hs-section ul {
	padding-left: 24px;
	margin: 18px 0 0;
}

.hs-section li::marker {
	color: #ffd978;
}

/* FAQ */

.hs-faq-item {
	padding: 24px 0;
	border-top: 1px solid rgba(255,255,255,0.08);
}

.hs-faq-item h3 {
	font-size: 24px;
	line-height: 1.35;
	margin: 0 0 10px;
	color: #fff4d2;
}

/* CTA */

.hs-guide-cta {
	margin-top: 76px;
	padding: 38px;
	border: 1px solid rgba(255, 217, 120, 0.25);
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,217,120,0.06));
	box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

.hs-guide-cta h2 {
	margin: 0 0 10px;
	color: #fff4d2;
}

.hs-guide-cta p {
	margin: 0 0 20px;
	color: #f5edd6;
}

/* 🔥 BOTÓN FIX IMPORTANTE */
.hs-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 56px !important;
	padding: 18px 30px !important;
	border: 1px solid var(--luxe-gold) !important;
	border-radius: 10px !important;
	background: linear-gradient(180deg, #ddb86e 0%, #b4873d 100%) !important;
	color: #111111 !important;
	text-decoration: none !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.03em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	box-shadow: var(--luxe-shadow) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

/* Hover */
.hs-button:hover {
	background: linear-gradient(180deg, #ddb86e 0%, #b4873d 100%) !important;
	color: #111111 !important;
	transform: translateY(-1px) !important;
	filter: brightness(1.05) !important;
	box-shadow: var(--luxe-shadow) !important;
}

/* PROGRESS BAR */

.hs-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 9999;
}

.hs-reading-progress-bar {
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, #ffd978, #fff1b8);
}

/* ANIMACIONES */

.hs-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: all 0.5s ease;
}

.hs-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* MOBILE */

@media (max-width: 1024px) {
	.hs-grow-guide {
		padding: 64px 0 72px;
	}

	.hs-guide-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.hs-guide-sidebar {
		position: static;
		padding: 16px 0;
		border-top: 1px solid rgba(255,255,255,0.06);
		border-bottom: 1px solid rgba(255,255,255,0.06);
	}

	.hs-guide-sidebar ul {
		display: flex;
		gap: 16px;
		overflow-x: auto;
		padding-bottom: 8px;
	}

	.hs-guide-sidebar a {
		white-space: nowrap;
	}

	.hs-guide-hero h1 {
		max-width: none;
	}

	.hs-section h2 {
		font-size: 32px;
	}

	.hs-section p,
	.hs-section li,
	.hs-guide-hero p,
	.hs-guide-highlight p {
		font-size: 18px;
	}
}


/* ==========================================
   v3.1.3 · Guide alignment fixes from video
   ========================================== */
@media (max-width: 768px) {
    .hs-grow-guide {
        padding: 52px 0 64px;
    }

    .hs-grow-guide .ast-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hs-guide-hero {
        padding: 0 0 24px;
        margin-bottom: 26px;
    }

    .hs-guide-hero h1 {
        max-width: none;
        font-size: clamp(34px, 9vw, 42px);
        line-height: 1.04;
        margin-bottom: 14px;
    }

    .hs-guide-hero p {
        font-size: 18px;
        line-height: 1.72;
    }

    .hs-guide-highlight {
        margin: 18px 0 30px;
        padding: 22px 20px;
        border-radius: 16px;
    }

    .hs-guide-highlight p {
        font-size: 18px;
        line-height: 1.72;
    }

    .hs-guide-layout {
        gap: 22px;
    }

    .hs-guide-sidebar {
        padding: 14px 0 10px;
        border-top: 0;
    }

    .hs-guide-sidebar ul {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        margin: 0 -2px;
        scroll-snap-type: x proximity;
    }

    .hs-guide-sidebar li + li {
        margin-top: 0;
    }

    .hs-guide-sidebar a {
        white-space: nowrap;
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        transform: none;
        scroll-snap-align: start;
    }

    .hs-guide-content {
        max-width: none;
    }

    .hs-section {
        margin-bottom: 44px;
    }

    .hs-section h2 {
        font-size: 30px;
        line-height: 1.12;
        margin-bottom: 14px;
    }

    .hs-section p,
    .hs-section li,
    .hs-guide-hero p,
    .hs-guide-highlight p {
        font-size: 17px;
        line-height: 1.8;
    }

    .hs-guide-cta {
        margin-top: 52px;
        padding: 28px 22px;
        border-radius: 18px;
    }
}



/* ==========================================
   FAQ DARK CARD FIX
   ========================================== */
.hs-grow-guide #faq .hs-faq-item,
.hs-grow-guide .hs-faq-item {
    display: block;
    padding: 24px 26px !important;
    margin: 0 0 18px !important;
    border: 1px solid rgba(255, 217, 120, 0.14) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(18,18,18,0.98) 0%, rgba(10,10,10,0.98) 100%) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,0.26) !important;
    backdrop-filter: none !important;
}

.hs-grow-guide #faq .hs-faq-item:first-of-type,
.hs-grow-guide .hs-faq-item:first-of-type {
    border-top: 1px solid rgba(255, 217, 120, 0.14) !important;
}

.hs-grow-guide #faq .hs-faq-item h3,
.hs-grow-guide .hs-faq-item h3,
.hs-grow-guide #faq .hs-faq-item p,
.hs-grow-guide .hs-faq-item p,
.hs-grow-guide #faq .hs-faq-item li,
.hs-grow-guide .hs-faq-item li,
.hs-grow-guide #faq .hs-faq-item strong,
.hs-grow-guide .hs-faq-item strong {
    color: #f7efd8 !important;
    background: transparent !important;
}

.hs-grow-guide #faq .hs-faq-item p:last-child,
.hs-grow-guide .hs-faq-item p:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .hs-grow-guide #faq .hs-faq-item,
    .hs-grow-guide .hs-faq-item {
        padding: 20px 18px !important;
        border-radius: 16px !important;
        margin-bottom: 14px !important;
    }
}



/* ==========================================
   v3.1.11 · Guide mobile alignment hard fix
   ========================================== */
.hs-grow-guide,
.hs-grow-guide * {
    box-sizing: border-box;
}

.hs-grow-guide {
    overflow-x: clip;
}

.hs-guide-hero,
.hs-guide-highlight,
.hs-guide-layout,
.hs-guide-content,
.hs-section,
.hs-guide-cta {
    width: 100%;
    min-width: 0;
}

.hs-guide-content > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .hs-grow-guide {
        padding: 44px 0 60px !important;
    }

    .hs-grow-guide .ast-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hs-guide-hero,
    .hs-guide-highlight,
    .hs-guide-layout,
    .hs-guide-content,
    .hs-section,
    .hs-guide-cta {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hs-guide-layout {
        display: block !important;
    }

    .hs-guide-sidebar {
        width: 100% !important;
        margin: 0 0 18px !important;
    }

    .hs-guide-sidebar ul {
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 0 6px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hs-guide-sidebar ul::-webkit-scrollbar {
        display: none;
    }

    .hs-guide-sidebar a {
        flex: 0 0 auto;
    }

    .hs-guide-hero h1,
    .hs-section h2,
    .hs-faq-item h3,
    .hs-guide-cta h2,
    .hs-section p,
    .hs-section li,
    .hs-guide-hero p,
    .hs-guide-highlight p,
    .hs-faq-item p {
        max-width: 100% !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hs-section ul {
        padding-left: 20px !important;
    }
}


/* ==========================================
   v3.1.12 · Guide width normalization
   ========================================== */
.hs-grow-guide .ast-container,
.hs-grow-guide .entry-content,
.hs-grow-guide .site-main,
.hs-grow-guide .hs-guide-layout,
.hs-grow-guide .hs-guide-content {
    max-width: 100%;
}

.hs-grow-guide img,
.hs-grow-guide video,
.hs-grow-guide iframe {
    max-width: 100%;
    height: auto;
}

.hs-grow-guide .hs-guide-sidebar ul {
    max-width: 100%;
}
