/*
 * Estilos de la carta de Guapas.
 *
 * IMPORTANTE: todo está re-scopeado bajo `.guapas-carta` para NO afectar el
 * tema ni Elementor. El original estilaba selectores globales (*, html, body);
 * aquí esos resets viven dentro del contenedor y las variables + propiedades de
 * "body" se aplican a `.guapas-carta`.
 */

.guapas-carta {
	--brand: #6BAF9E;
	--brand-dk: #4A8F7E;          /* solo texto GRANDE (≥24px) y decoración: pasa 3:1, conserva el teal vivo de marca */
	--brand-ink: #357561;        /* tinta de marca para texto PEQUEÑO y fondos con texto blanco: AA ≥4.5:1 sobre blanco y sobre --brand-lt */
	--brand-ink-dk: #2E6354;     /* hover de botones de marca */
	--brand-lt: #EAF4F1;
	--brand-mid: #B8D9D2;
	--warm: #F7F3EE;
	--warm-dk: #EDE8E2;
	--ink: #2C2620;
	--ink-soft: #7A6A60;
	--surface: #FFFFFF;
	--badge-bg: #FFF3E0;          /* fondo del badge "más pedido" (naranja muy claro) */
	--badge-ink: #B23E00;         /* texto del badge: AA 5,35:1 sobre --badge-bg */
	--radius: 16px;
	--shadow: 0 2px 18px rgba(44, 38, 32, 0.07);

	background: var(--warm);
	color: var(--ink);
	font-family: 'Nunito', sans-serif;
	font-size: 17px;
	line-height: 1.5;
	min-height: 100dvh;
	max-width: 480px;
	margin: 0 auto;
	box-sizing: border-box;
}

.guapas-carta *,
.guapas-carta *::before,
.guapas-carta *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

/* Solo para lectores de pantalla (h1 de la página, oculto visualmente) */
.guapas-carta .guapas-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.guapas-carta .header { background: var(--surface); padding: 22px 20px 16px; text-align: center; border-bottom: 1px solid var(--warm-dk); position: relative; overflow: hidden; }
.guapas-carta .header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 30%, rgba(107, 175, 158, .09) 0%, transparent 55%), radial-gradient(circle at 85% 70%, rgba(200, 169, 122, .07) 0%, transparent 50%); pointer-events: none; }
.guapas-carta .header-logo { width: 170px; height: auto; display: block; margin: 0 auto 8px; position: relative; }
.guapas-carta .header-tagline { font-family: 'Playfair Display', serif; font-style: italic; font-size: 14px; color: var(--ink-soft); letter-spacing: .06em; }
.guapas-carta .header-divider { display: flex; align-items: center; gap: 10px; margin: 12px auto 6px; max-width: 180px; }
.guapas-carta .header-divider::before,
.guapas-carta .header-divider::after { content: ''; flex: 1; height: 1px; background: var(--brand-mid); }

/* Toggle de idioma */
.guapas-carta .lang-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.guapas-carta .lang-btn { display: inline-flex; align-items: center; min-height: 40px; background: transparent; border: 1.5px solid var(--brand-mid); border-radius: 100px; padding: 6px 18px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer; letter-spacing: .08em; transition: all .2s ease; }
.guapas-carta .lang-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.guapas-carta .lang-btn:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.guapas-carta .lang-sep { color: var(--brand-mid); font-size: 16px; font-weight: 300; }

/* Visibilidad bilingüe controlada por la clase del contenedor */
.guapas-carta [data-lang] { display: none; }
.guapas-carta.lang-es [data-lang="es"],
.guapas-carta.lang-en [data-lang="en"] { display: inline; }

/* Tabs sticky */
.guapas-carta .tabs-wrap { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1.5px solid var(--warm-dk); }
.guapas-carta .tabs-inner { display: flex; gap: 5px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.guapas-carta .tabs-inner::-webkit-scrollbar { display: none; }
.guapas-carta .tab { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; background: transparent; border: 1.5px solid var(--brand-mid); border-radius: 100px; padding: 8px 16px; font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .2s ease; white-space: nowrap; text-decoration: none; }
.guapas-carta .tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.guapas-carta .tab:active { transform: scale(.96); }
.guapas-carta .tab:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }

/* Secciones */
.guapas-carta .section { padding: 16px 14px 4px; scroll-margin-top: 64px; }
.guapas-carta .section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.guapas-carta .section-header::after { content: ''; flex: 1; height: 1px; background: var(--brand-mid); }
.guapas-carta .section-icon { font-size: 17px; flex-shrink: 0; order: -1; }
.guapas-carta .section-label { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; font-style: italic; color: var(--brand-dk); white-space: nowrap; }
.guapas-carta .subsection-label { font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.guapas-carta .subsection-label::after { content: ''; flex: 1; height: 1px; background: var(--brand-lt); }
.guapas-carta .price-note { background: var(--brand-lt); border-radius: 10px; padding: 10px 13px; font-size: 13.5px; color: var(--brand-ink); font-weight: 600; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.guapas-carta .section-note { font-size: 13.5px; color: var(--ink-soft); font-style: italic; padding: 4px 4px 12px; line-height: 1.5; }

/* Cards horizontales y destacadas */
.guapas-carta .cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.guapas-carta .card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; align-items: stretch; box-shadow: var(--shadow); border: 1px solid rgba(107, 175, 158, .13); transition: transform .15s ease; }
.guapas-carta .card:active { transform: scale(.985); }
.guapas-carta .card-img { width: 96px; flex-shrink: 0; background: var(--brand-lt); display: flex; align-items: center; justify-content: center; font-size: 28px; position: relative; overflow: hidden; }
.guapas-carta .card-img.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.guapas-carta .card-body { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.guapas-carta .card-name { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 3px; }
.guapas-carta .card-desc { font-size: 14px; color: var(--ink-soft); font-weight: 400; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guapas-carta .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guapas-carta .card-price { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--brand-ink); }
.guapas-carta .badge { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; }
.guapas-carta .badge-pop { background: var(--badge-bg); color: var(--badge-ink); }
.guapas-carta .card-featured { flex-direction: column; }
.guapas-carta .card-featured .card-img { width: 100%; height: 132px; font-size: 40px; border-radius: 0; }
.guapas-carta .card-featured .card-body { padding: 14px 16px 16px; }
.guapas-carta .card-featured .card-name { font-size: 17px; }

/* Filas compactas (cafés, tés, bebidas): cada ítem es una tarjeta individual
   (look original, a pedido del cliente). El tamaño de letra mayor se conserva. */
.guapas-carta .card-list { background: var(--surface); border-radius: 12px; padding: 9px 14px; box-shadow: var(--shadow); border: 1px solid rgba(107, 175, 158, .13); display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.guapas-carta .card-list-icon { font-size: 22px; flex-shrink: 0; }
.guapas-carta .card-list-img { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; object-fit: cover; object-position: center; display: block; }
.guapas-carta .card-list-body { flex: 1; min-width: 0; }
.guapas-carta .card-list-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.guapas-carta .card-list-desc { font-size: 13px; color: var(--ink-soft); font-weight: 400; line-height: 1.4; margin-top: 2px; }
.guapas-carta .card-list-price { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--brand-ink); flex-shrink: 0; }

/* Separador entre secciones */
.guapas-carta .section-sep { height: 1px; background: linear-gradient(to right, transparent, var(--brand-mid) 20%, var(--brand-mid) 80%, transparent); margin: 4px 16px 20px; }

/* Footer */
.guapas-carta .footer { background: var(--surface); border-top: 1.5px solid var(--warm-dk); text-align: center; padding: 24px 24px 52px; }
.guapas-carta .footer-logo { width: 120px; height: auto; display: block; margin: 0 auto 12px; }
.guapas-carta .footer p { font-size: 13.5px; color: var(--ink-soft); font-weight: 400; line-height: 1.8; }
.guapas-carta .footer strong { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--brand-ink); display: block; margin-bottom: 6px; font-style: italic; }
.guapas-carta .footer-contact { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; padding: 10px 22px; border-radius: 100px; letter-spacing: .03em; transition: background .2s ease; }
.guapas-carta .footer-contact:hover { background: var(--brand-dk); color: #fff; }
.guapas-carta .footer-contact:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }

/* Animación de entrada */
@keyframes guapasFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.guapas-carta .section { animation: guapasFadeUp .35s ease both; }
.guapas-carta .section:nth-of-type(2) { animation-delay: .04s; }
.guapas-carta .section:nth-of-type(3) { animation-delay: .08s; }
.guapas-carta .section:nth-of-type(4) { animation-delay: .12s; }
.guapas-carta .section:nth-of-type(5) { animation-delay: .16s; }
.guapas-carta .section:nth-of-type(6) { animation-delay: .20s; }
.guapas-carta .section:nth-of-type(7) { animation-delay: .24s; }
.guapas-carta .section:nth-of-type(8) { animation-delay: .28s; }
.guapas-carta .section:nth-of-type(9) { animation-delay: .32s; }
.guapas-carta .section:nth-of-type(10) { animation-delay: .36s; }
.guapas-carta .section:nth-of-type(11) { animation-delay: .40s; }

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
	.guapas-carta .section { animation: none; }
}

/* ===== Desktop (>=768px): contenedor ancho, tabs full-width, grid 2 columnas ===== */
@media (min-width: 768px) {
	.guapas-carta { max-width: 900px; }

	/* Header con algo más de aire */
	.guapas-carta .header { padding: 36px 24px 24px; }

	/* Tabs: ocupan el ancho del contenedor (900px), centradas, con wrap */
	.guapas-carta .tabs-inner { justify-content: center; flex-wrap: wrap; overflow-x: visible; padding: 12px 24px; }

	/* Secciones y separadores con más aire lateral */
	.guapas-carta .section { padding: 28px 24px 4px; }
	.guapas-carta .section-sep { margin: 4px 24px 24px; }

	/* Cards normales en 2 columnas (igual alto por fila) */
	.guapas-carta .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

	/* La card destacada ocupa la fila completa, en horizontal */
	.guapas-carta .cards .card-featured { grid-column: 1 / -1; flex-direction: row; }
	.guapas-carta .cards .card-featured .card-img { width: 200px; height: auto; border-radius: 0; }

	/* Las filas tipo lista (cafés/tés/bebidas) se renderizan fuera de .cards
	   → ya ocupan el ancho completo de la columna; no necesitan regla extra. */
}
