/* =========================================================================
   Confitería Ochoa · Tiendas físicas
   - .ol-nuevo: bloque "Nueva tienda" de la portada (autónomo, sin body.ot)
   - .ol-tienda / .ol-historia / .ol-faq: página /nuestras-tiendas/ (junto a tienda.css)
   ========================================================================= */

@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces/fraunces.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

.ol-nuevo,
.ol-tienda,
.ol-historia,
.ol-faq {
	--ol-navy: #17224f;
	--ol-blue: #3b509d;
	--ol-cream: #f6f0e4;
	--ol-paper: #fffcf6;
	--ol-ink: #1c2033;
	--ol-muted: #5b5d6b;
	--ol-line: #e4d9c4;
	--ol-gold: #c9a25e;
	--ol-gold-text: #8a6526;
	--ol-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--ol-sans: "avenir", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
.ol-nuevo *, .ol-nuevo *::before, .ol-nuevo *::after { box-sizing: border-box; }

/* ---------- Bloque de portada ---------- */
.ol-nuevo {
	display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center;
	max-width: 1180px; margin: clamp(40px, 6vw, 80px) auto; padding: clamp(18px, 3vw, 32px);
	background: var(--ol-paper); border: 1px solid var(--ol-line); border-radius: 28px;
	box-shadow: 0 1px 2px rgb(23 34 79 / .05), 0 18px 40px -24px rgb(23 34 79 / .35);
	color: var(--ol-ink); text-align: left;
}
.ol-nuevo__media { position: relative; margin: 0; }
.ol-nuevo__img {
	display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
	border-radius: 999px 999px 20px 20px; /* arco sevillano, como en la tienda */
}
.ol-badge {
	position: absolute; bottom: 18px; left: 50%; translate: -50% 0; white-space: nowrap; box-shadow: 0 6px 18px -8px rgb(0 0 0 / .45);
	padding: 7px 16px; border-radius: 999px; background: var(--ol-gold); color: var(--ol-navy);
	font-family: var(--ol-sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.ol-nuevo .ol-eyebrow {
	font-family: var(--ol-sans); font-size: .78rem !important; letter-spacing: .16em; text-transform: uppercase;
	color: var(--ol-gold-text); margin: 0 0 6px; text-align: left !important;
}
.ol-nuevo .ol-h2 {
	font-family: var(--ol-serif) !important; font-weight: 450; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem) !important;
	line-height: 1.04; letter-spacing: -.01em; color: var(--ol-navy); margin: 0 0 16px; text-align: left !important;
}
.ol-nuevo .ol-text { font-family: var(--ol-sans); font-size: 1.08rem; line-height: 1.6; color: #3a3d4f; margin: 0 0 22px; text-align: left !important; }
.ol-nuevo .ol-text strong { font-weight: 600; color: var(--ol-ink); }
.ol-datos { display: grid; gap: 12px; margin: 0 0 26px; padding: 18px 20px; border-radius: 16px; background: var(--ol-cream); }
.ol-datos div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.ol-datos dt { font-family: var(--ol-sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ol-muted); margin: 0; }
.ol-datos dd { font-family: var(--ol-sans); font-size: 1rem; margin: 0; color: var(--ol-ink); }
.ol-datos a { color: #1a7f47; }
.ol-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ol-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75em 1.5em; border-radius: 999px;
	border: 1px solid var(--ol-blue); background: var(--ol-blue); color: #fff !important; text-decoration: none !important;
	font-family: var(--ol-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s, color .2s;
}
.ol-btn:hover { background: var(--ol-navy); border-color: var(--ol-navy); }
.ol-btn--ghost { background: transparent; color: var(--ol-blue) !important; }
.ol-btn--ghost:hover { background: var(--ol-blue); color: #fff !important; }
.ol-btn:focus-visible, .ol-datos a:focus-visible { outline: 2px solid var(--ol-gold); outline-offset: 3px; }

@media (max-width: 760px) {
	.ol-nuevo { grid-template-columns: 1fr; margin-inline: 16px; }
	.ol-nuevo__media { width: min(100%, 360px); justify-self: center; }
	.ol-datos div { grid-template-columns: 1fr; gap: 2px; }
	.ol-actions .ol-btn { flex: 1 1 100%; }
}

/* ---------- Página Nuestras tiendas ---------- */
.ol-tienda__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ol-tienda--alt .ol-tienda__media { order: 2; }
.ol-tienda__media { position: relative; }
.ol-tienda__img { width: 100%; height: auto !important; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 24px; display: block; }
.ol-tienda--alt .ol-tienda__img { aspect-ratio: 4 / 4.4; border-radius: 999px 999px 24px 24px; }
body.ot .ol-tienda__text { font-size: 1.06rem; color: #3a3d4f; margin: 10px 0 22px; }
.ol-ficha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 6px; padding: 18px 20px; border-radius: 16px; background: var(--ol-paper); border: 1px solid var(--ol-line); }
.ol-ficha dt { font-family: var(--ol-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ol-muted); margin: 0 0 4px; }
.ol-ficha dd { margin: 0; font-family: var(--ol-sans); font-size: .96rem; line-height: 1.5; }
.ol-ficha address { font-style: normal; }
.ol-ficha a { color: var(--ol-blue); }
body.ot .ol-ofrece { margin: 16px 0 24px; }

.ol-historia__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ol-historia__img { width: 100%; height: auto !important; border-radius: 20px; filter: sepia(.15); display: block; }
body.ot .ol-historia p { font-size: 1.06rem; color: #3a3d4f; }

.ol-faq__list { display: grid; gap: 10px; }
.ol-faq details { background: var(--ol-paper); border: 1px solid var(--ol-line); border-radius: 16px; padding: 0 20px; }
.ol-faq summary {
	cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
	font-family: var(--ol-serif); font-size: 1.15rem; line-height: 1.3; color: var(--ol-ink);
}
.ol-faq summary::-webkit-details-marker { display: none; }
.ol-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--ol-gold-text); }
.ol-faq details[open] summary::after { content: "−"; }
.ol-faq summary:focus-visible { outline: 2px solid var(--ol-gold); outline-offset: 4px; border-radius: 8px; }
body.ot .ol-faq details p { margin: 0 0 18px; color: #3a3d4f; }
.ol-faq a { color: var(--ol-blue); }

@media (max-width: 900px) {
	.ol-tienda__grid, .ol-historia__grid { grid-template-columns: 1fr; }
	.ol-tienda--alt .ol-tienda__media { order: 0; }
	.ol-ficha { grid-template-columns: 1fr; }
}

/* ---------- Portada: categorías en mosaico ---------- */
.oc {
	--oc-navy: #17224f; --oc-gold: #c9a25e; --oc-gold-soft: #ead8ac; --oc-cream: #f6f0e4;
	--oc-serif: "Fraunces", "Iowan Old Style", Georgia, serif; --oc-sans: "avenir", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	width: 100%; max-width: 1320px; margin: 0 auto;
}
.oc *, .oc *::before, .oc *::after { box-sizing: border-box; }
.oc__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: clamp(10px, 1.2vw, 16px);
	grid-template-columns: 1.25fr 1fr 1fr;
	grid-template-rows: repeat(2, clamp(210px, 19vw, 300px));
	grid-template-areas: "navidad pasteleria platos" "navidad helados helados";
}
.oc__item { margin: 0; padding: 0; list-style: none; min-height: 0; }
.oc__item--navidad { grid-area: navidad; }
.oc__item--pasteleria { grid-area: pasteleria; }
.oc__item--platos { grid-area: platos; }
.oc__item--helados { grid-area: helados; }

.oc-card {
	position: relative; display: block; height: 100%; overflow: hidden; isolation: isolate;
	border-radius: 24px; background: var(--oc-navy); color: #fff !important; text-decoration: none !important;
	box-shadow: 0 24px 50px -28px rgb(0 0 0 / .65);
}
.oc-card__img {
	position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; z-index: -2;
	transition: scale .8s cubic-bezier(.2, .7, .2, 1);
}
.oc-card__shade {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgb(12 18 45 / .9) 0%, rgb(12 18 45 / .55) 38%, rgb(12 18 45 / .08) 70%, transparent 100%);
	transition: opacity .3s;
}
.oc-card__body {
	position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
	padding: clamp(18px, 2vw, 28px);
}
.oc-card__tag {
	display: inline-flex; padding: 6px 12px; border-radius: 999px;
	background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	font: 400 .7rem/1 var(--oc-sans); letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.oc-card__title {
	font-family: var(--oc-serif) !important; font-weight: 450; letter-spacing: -.015em; line-height: 1;
	font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.5rem); color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / .35);
}
.oc-card__text { max-width: 30em; font: 400 1rem/1.5 var(--oc-sans); color: rgb(255 255 255 / .88); }
.oc-card__cta {
	margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
	background: var(--oc-gold-soft); color: var(--oc-navy); font: 400 .8rem/1 var(--oc-sans); letter-spacing: .12em; text-transform: uppercase;
	transition: background-color .2s;
}
.oc-card__arrow {
	position: absolute; top: clamp(14px, 1.6vw, 22px); right: clamp(14px, 1.6vw, 22px);
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: rgb(255 255 255 / .9); color: var(--oc-navy);
	transition: background-color .25s, color .25s, rotate .3s;
}

/* Navidad: protagonista */
.oc__item--navidad .oc-card__title { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.8rem); }
.oc__item--navidad .oc-card__tag { background: var(--oc-gold); border-color: var(--oc-gold); color: var(--oc-navy); }
.oc__item--navidad .oc-card__arrow { display: none; }

.oc-card:hover .oc-card__arrow { background: var(--oc-gold-soft); }
.oc-card:hover .oc-card__cta { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
	.oc-card:hover .oc-card__img { scale: 1.06; }
	.oc-card:hover .oc-card__arrow { rotate: 45deg; }
}
.oc-card:focus-visible { outline: 3px solid var(--oc-gold); outline-offset: 4px; }

@media (max-width: 760px) {
	.oc__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 360px 200px 190px;
		grid-template-areas: "navidad navidad" "pasteleria platos" "helados helados";
	}
	.oc-card { border-radius: 20px; }
	.oc__item--pasteleria .oc-card__title, .oc__item--platos .oc-card__title { font-size: 1.45rem; }
	.oc__item--navidad .oc-card__text { font-size: .95rem; }
	.oc-card__arrow { width: 38px; height: 38px; }
}

/* Nota bajo el horario (horario provisional) */
.ol-nota { display: block; margin-top: 4px; font-size: .82rem; line-height: 1.45; color: #6b6a72; font-style: italic; }
