/* OMG Service Card */
.omg-sc{
	--omg-sc-img-w:32%;
	--omg-sc-img-pos:center center;
	--omg-sc-img-h-mobile:320px;
	--omg-sc-bg:#f3f3f3;
	--omg-sc-accent:#bfa07a;
	--omg-sc-divider:#9a9a9a;
	--omg-sc-bar:8px;
	--omg-sc-eyebrow:#8a8a8a;
	--omg-sc-title:#333;
	--omg-sc-text:#444;
	--omg-sc-prices-gap:40px;
	--omg-sc-btn-color:#333;
	--omg-sc-btn-border:#8a8a8a;
	--omg-sc-btn-bg:transparent;
	--omg-sc-btn-h-color:#fff;
	--omg-sc-btn-h-bg:#bfa07a;
	--omg-sc-btn-h-border:#bfa07a;
	--omg-sc-speed:.4s;
	--omg-sc-zoom:1.06;
	--omg-sc-in-dur:900ms;
	--omg-sc-in-delay:0ms;

	position:relative;
	display:flex;
	align-items:stretch;
	min-height:456px;
	background:var(--omg-sc-bg);
	font-family:"Playfair Display", Georgia, serif;
	box-shadow:0 0 0 rgba(0,0,0,0);
	transition:box-shadow var(--omg-sc-speed) ease;
}

/* Imagen */
.omg-sc__media{
	position:relative;
	flex:0 0 var(--omg-sc-img-w);
	max-width:var(--omg-sc-img-w);
	overflow:hidden;
}
.omg-sc__media img{
	position:absolute; inset:0;
	width:100% !important;
	height:100% !important;
	max-width:none !important;
	object-fit:cover;
	object-position:var(--omg-sc-img-pos);
	border-radius:0 !important;
	transition:transform 1.1s cubic-bezier(.2,.6,.2,1);
}
.omg-sc--zoom:hover .omg-sc__media img{ transform:scale(var(--omg-sc-zoom)); }

/* Contenido */
.omg-sc__body{
	position:relative;
	flex:1 1 auto;
	min-width:0;
	display:flex;
	flex-direction:column;
	justify-content:center;
	padding:44px 52px 40px 40px;
}
.omg-sc__body::before{
	content:"";
	position:absolute;
	top:0; left:0; right:0;
	height:var(--omg-sc-bar);
	background:var(--omg-sc-accent);
	transform:scaleX(0);
	transform-origin:left;
	transition:transform var(--omg-sc-speed) ease;
}

.omg-sc__eyebrow{
	color:var(--omg-sc-eyebrow);
	font-size:17px;
	letter-spacing:.14em;
	text-transform:uppercase;
	margin-bottom:6px;
}
.omg-sc__title{
	margin:0 0 10px;
	color:var(--omg-sc-title);
	font-family:inherit;
	font-size:28px;
	font-weight:500;
	letter-spacing:.12em;
	line-height:1.25;
	text-transform:uppercase;
}
.omg-sc__desc,
.omg-sc__includes{
	color:var(--omg-sc-text);
	font-size:14px;
	line-height:1.5;
}
.omg-sc__desc{ margin:0; }

.omg-sc__divider{
	border:0;
	border-top:1px solid var(--omg-sc-divider);
	margin:20px 0 18px;
	width:100%;
}

.omg-sc__label{
	color:var(--omg-sc-title);
	font-size:15px;
	letter-spacing:.12em;
	text-transform:uppercase;
	margin-bottom:4px;
}
.omg-sc__includes p{ margin:0 0 .5em; }
.omg-sc__includes p:last-child{ margin-bottom:0; }
.omg-sc__includes ul{
	list-style:none;
	margin:0; padding:0;
}
.omg-sc__includes li{ position:relative; padding-left:.8em; }
.omg-sc__includes li::before{
	content:"\2022";
	position:absolute; left:0;
}

/* Precios */
.omg-sc__prices{
	display:flex;
	flex-wrap:wrap;
	align-items:flex-end;
	column-gap:var(--omg-sc-prices-gap);
	row-gap:12px;
	margin-top:24px;
}
.omg-sc__price{ display:flex; flex-direction:column; align-items:flex-start; }
.omg-sc__price-info{ display:flex; }
.omg-sc__prices--below .omg-sc__price-info{ flex-direction:column; }
.omg-sc__prices--inline .omg-sc__price-info{ flex-direction:row; align-items:baseline; gap:28px; }
/* Un botón por precio: columnas fijas (precio arriba, botón debajo) */
.omg-sc--per-price .omg-sc__prices{
	display:grid;
	grid-template-columns:repeat(var(--omg-sc-price-cols, 2), minmax(0, max-content));
	justify-content:start;
	align-items:start;
	row-gap:28px;
}
.omg-sc--per-price .omg-sc__price{ min-width:0; }
.omg-sc--per-price .omg-sc__price .omg-sc__btn-wrap{ max-width:100%; }
.omg-sc--per-price .omg-sc__price .omg-sc__btn{ max-width:100%; }
.omg-sc--per-price .omg-sc__prices{ column-gap:min(var(--omg-sc-prices-gap), 7%); }
.omg-sc--per-price .omg-sc__price .omg-sc__btn-text{ white-space:nowrap; padding-left:20px; padding-right:20px; }
.omg-sc--per-price .omg-sc__price .omg-sc__btn-icon{ padding:0 11px; }

/* Respaldo: si el contenido es demasiado angosto para dos botones, pasan a una columna */
.omg-sc--per-price .omg-sc__body{ container-type:inline-size; container-name:omgsc; }
@container omgsc (max-width: 370px){
	.omg-sc--per-price .omg-sc__prices{ grid-template-columns:minmax(0, max-content); }
}

.omg-sc__duration{ display:flex; align-items:baseline; gap:4px; }
.omg-sc__num{
	color:var(--omg-sc-title);
	font-size:34px;
	line-height:1;
}
.omg-sc__unit{
	color:var(--omg-sc-title);
	font-size:13px;
	letter-spacing:.12em;
	text-transform:uppercase;
}
.omg-sc__amount{
	color:var(--omg-sc-accent);
	font-size:20px;
	line-height:1.2;
}

/* Botón */
.omg-sc__btn-wrap{ margin-top:var(--omg-sc-btn-top, 26px); }
.omg-sc__price .omg-sc__btn-wrap{ margin-top:var(--omg-sc-btn-top, 20px); }
.omg-sc__btn{
	display:inline-flex;
	align-items:stretch;
	border:1px solid var(--omg-sc-btn-border);
	background:var(--omg-sc-btn-bg);
	color:var(--omg-sc-btn-color) !important;
	text-decoration:none !important;
	font-family:inherit;
	font-size:15px;
	font-weight:600;
	letter-spacing:.14em;
	text-transform:uppercase;
	line-height:1;
	transition:background-color var(--omg-sc-speed) ease, color var(--omg-sc-speed) ease, border-color var(--omg-sc-speed) ease;
}
.omg-sc__btn-text{ display:flex; align-items:center; padding:15px 22px; }
.omg-sc__btn-icon{
	display:flex; align-items:center;
	padding:0 12px;
	border-left:1px solid var(--omg-sc-btn-border);
	transition:border-color var(--omg-sc-speed) ease;
}

/* ===== Hover / destacada ===== */
.omg-sc:hover,
.omg-sc:focus-within,
.omg-sc.is-active{
	box-shadow:0 10px 24px rgba(0,0,0,.14);
}
.omg-sc:hover .omg-sc__body::before,
.omg-sc:focus-within .omg-sc__body::before,
.omg-sc.is-active .omg-sc__body::before{ transform:scaleX(1); }

/* Un solo botón: se rellena con el hover de la tarjeta */
.omg-sc--single-btn:hover .omg-sc__btn,
.omg-sc--single-btn:focus-within .omg-sc__btn,
.omg-sc--single-btn.is-active .omg-sc__btn,
/* Botón por precio: cada uno se rellena con su propio hover */
.omg-sc--per-price a.omg-sc__btn:hover,
.omg-sc--per-price a.omg-sc__btn:focus-visible{
	background:var(--omg-sc-btn-h-bg);
	border-color:var(--omg-sc-btn-h-border);
	color:var(--omg-sc-btn-h-color) !important;
}
.omg-sc--single-btn:hover .omg-sc__btn-icon,
.omg-sc--single-btn:focus-within .omg-sc__btn-icon,
.omg-sc--single-btn.is-active .omg-sc__btn-icon,
.omg-sc--per-price a.omg-sc__btn:hover .omg-sc__btn-icon,
.omg-sc--per-price a.omg-sc__btn:focus-visible .omg-sc__btn-icon{ border-left-color:rgba(255,255,255,.6); }

/* ===== Animación de entrada =====
   Solo se oculta cuando el JS "arma" la tarjeta (.omg-sc--armed).
   Si el JS no corre, la tarjeta se ve normal. */
.omg-sc--anim.omg-sc--armed{
	transition:opacity var(--omg-sc-in-dur) ease var(--omg-sc-in-delay),
		transform var(--omg-sc-in-dur) cubic-bezier(.2,.65,.25,1) var(--omg-sc-in-delay),
		box-shadow var(--omg-sc-speed) ease;
}
.omg-sc--anim.omg-sc--armed:not(.is-inview){ opacity:0; }
.omg-sc--in-fade-up.omg-sc--armed:not(.is-inview){ transform:translateY(40px); }
.omg-sc--in-fade-left.omg-sc--armed:not(.is-inview){ transform:translateX(-50px); }
.omg-sc--in-fade-right.omg-sc--armed:not(.is-inview){ transform:translateX(50px); }
.omg-sc--in-zoom-in.omg-sc--armed:not(.is-inview){ transform:scale(.94); }

/* Cascada del contenido */
.omg-sc--stagger.omg-sc--armed .omg-sc__body > *{ transition:opacity .6s ease, transform .6s ease; }
.omg-sc--stagger.omg-sc--armed:not(.is-inview) .omg-sc__body > *{ opacity:0; transform:translateY(16px); }
.omg-sc--stagger.is-inview .omg-sc__body > :nth-child(1){ transition-delay:calc(var(--omg-sc-in-delay) + 250ms); }
.omg-sc--stagger.is-inview .omg-sc__body > :nth-child(2){ transition-delay:calc(var(--omg-sc-in-delay) + 350ms); }
.omg-sc--stagger.is-inview .omg-sc__body > :nth-child(3){ transition-delay:calc(var(--omg-sc-in-delay) + 450ms); }
.omg-sc--stagger.is-inview .omg-sc__body > :nth-child(4){ transition-delay:calc(var(--omg-sc-in-delay) + 550ms); }
.omg-sc--stagger.is-inview .omg-sc__body > :nth-child(5){ transition-delay:calc(var(--omg-sc-in-delay) + 650ms); }
.omg-sc--stagger.is-inview .omg-sc__body > :nth-child(6){ transition-delay:calc(var(--omg-sc-in-delay) + 750ms); }
.omg-sc--stagger.is-inview .omg-sc__body > :nth-child(n+7){ transition-delay:calc(var(--omg-sc-in-delay) + 850ms); }

/* Apilado (imagen arriba) según dispositivo */
@media (max-width: 1024px){
	.omg-sc--stack-tablet{ flex-direction:column; min-height:0 !important; }
	.omg-sc--stack-tablet .omg-sc__media{ flex:none; max-width:none; width:100%; height:var(--omg-sc-img-h-mobile); }
	.omg-sc--stack-tablet .omg-sc__body{ padding:32px 24px; }
}
@media (max-width: 767px){
	.omg-sc--stack-mobile{ flex-direction:column; min-height:0 !important; }
	.omg-sc--stack-mobile .omg-sc__media{ flex:none; max-width:none; width:100%; height:var(--omg-sc-img-h-mobile); }
	.omg-sc--stack-mobile .omg-sc__body{ padding:32px 24px; }
	.omg-sc--stack-mobile .omg-sc__title,
	.omg-sc--stack-tablet .omg-sc__title{ font-size:24px; }
}

@media (prefers-reduced-motion:reduce){
	.omg-sc, .omg-sc *, .omg-sc *::before{ transition:none !important; }
	.omg-sc--anim, .omg-sc--anim *{ opacity:1 !important; transform:none !important; }
}
