/* =========================================================
   Campos de Actuación Obimasa — Widget Elementor
   Autor: DonDigital · Diseño base: 1400px
   ========================================================= */

.odd-ca {
	--odd-ca-green: #1e3d33;
	--odd-ca-green-card: #16463a;
	--odd-ca-cream: #f7f5e9;
	--odd-ca-col-gap: 70px;
	width: 100%;
}

/* ---------------------------------------------------------
   Cabecera de sección
   --------------------------------------------------------- */
.odd-ca__eyebrow-wrap {
	margin-bottom: 18px;
}

.odd-ca__eyebrow {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 5px;
	color: var(--odd-ca-green);
	transition: opacity 0.25s ease;
}

a.odd-ca__eyebrow:hover {
	opacity: 0.7;
	color: var(--odd-ca-green);
}

.odd-ca__title {
	margin: 0;
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: clamp(44px, 6.5vw, 92px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--odd-ca-green);
}

.odd-ca__rule {
	width: 100%;
	height: 1px;
	background-color: var(--odd-ca-green);
	margin-top: 42px;
	margin-bottom: 72px;
}

/* ---------------------------------------------------------
   Grid / loop de cajas
   --------------------------------------------------------- */
.odd-ca__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--odd-ca-col-gap);
	row-gap: 80px;
	align-items: stretch;
}

/* Columnas (escritorio) */
.odd-ca-cols-1 .odd-ca__grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.odd-ca-cols-2 .odd-ca__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odd-ca-cols-3 .odd-ca__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.odd-ca-cols-4 .odd-ca__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.odd-ca__item {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* Divisor vertical entre columnas */
.odd-ca__item::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(var(--odd-ca-col-gap) / -2);
	width: 1px;
	background-color: var(--odd-ca-green);
	display: none;
}

.odd-ca-divider-yes.odd-ca-cols-2 .odd-ca__item:not(:nth-child(2n + 1))::before,
.odd-ca-divider-yes.odd-ca-cols-3 .odd-ca__item:not(:nth-child(3n + 1))::before,
.odd-ca-divider-yes.odd-ca-cols-4 .odd-ca__item:not(:nth-child(4n + 1))::before {
	display: block;
}

/* ---------------------------------------------------------
   Contenido de la caja
   --------------------------------------------------------- */
.odd-ca__image {
	margin-bottom: 40px;
	overflow: hidden;
}

.odd-ca__image a {
	display: block;
}

.odd-ca__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.odd-ca__item:hover .odd-ca__image img {
	transform: scale(1.03);
}

.odd-ca__item-title {
	margin: 0 0 20px;
	font-size: clamp(26px, 2.8vw, 39px);
	font-weight: 600;
	line-height: 1.15;
	color: var(--odd-ca-green-card);
}

.odd-ca__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-top: auto;
}

.odd-ca__item-text {
	margin: 0;
	flex: 1 1 auto;
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 400;
	line-height: 1.4;
	color: #1f2321;
}

/* ---------------------------------------------------------
   Botones
   --------------------------------------------------------- */
.odd-ca__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.odd-ca__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 17px 38px;
	background-color: var(--odd-ca-green);
	color: var(--odd-ca-cream);
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.odd-ca__btn:hover,
.odd-ca__btn:focus {
	background-color: #2c5a4b;
	color: var(--odd-ca-cream);
}

.odd-ca__circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 51px;
	height: 51px;
	border-radius: 50%;
	background-color: var(--odd-ca-green);
	color: var(--odd-ca-cream);
	flex: 0 0 auto;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.odd-ca__circle svg {
	width: 20px;
	height: 20px;
	transition: transform 0.25s ease;
}

.odd-ca__circle:hover {
	background-color: #2c5a4b;
	color: var(--odd-ca-cream);
}

.odd-ca__circle:hover svg {
	transform: translateX(3px);
}

/* ---------------------------------------------------------
   Responsive — Tablet (≤1024px, breakpoint por defecto de Elementor)
   --------------------------------------------------------- */
@media (max-width: 1024px) {

	.odd-ca-cols-tablet-1 .odd-ca__grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.odd-ca-cols-tablet-2 .odd-ca__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.odd-ca-cols-tablet-3 .odd-ca__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.odd-ca-cols-tablet-4 .odd-ca__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

	/* Recalcular divisores según columnas en tablet */
	.odd-ca-divider-yes[class*="odd-ca-cols-tablet-"] .odd-ca__item::before {
		display: none;
	}

	.odd-ca-divider-yes.odd-ca-cols-tablet-2 .odd-ca__item:not(:nth-child(2n + 1))::before,
	.odd-ca-divider-yes.odd-ca-cols-tablet-3 .odd-ca__item:not(:nth-child(3n + 1))::before,
	.odd-ca-divider-yes.odd-ca-cols-tablet-4 .odd-ca__item:not(:nth-child(4n + 1))::before {
		display: block;
	}

	.odd-ca__footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 22px;
	}
}

/* ---------------------------------------------------------
   Responsive — Móvil (≤767px)
   --------------------------------------------------------- */
@media (max-width: 767px) {

	.odd-ca-cols-mobile-1 .odd-ca__grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.odd-ca-cols-mobile-2 .odd-ca__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* Recalcular divisores según columnas en móvil */
	.odd-ca-divider-yes[class*="odd-ca-cols-mobile-"] .odd-ca__item::before {
		display: none;
	}

	.odd-ca-divider-yes.odd-ca-cols-mobile-2 .odd-ca__item:not(:nth-child(2n + 1))::before {
		display: block;
	}

	.odd-ca__grid {
		row-gap: 56px;
	}

	.odd-ca__rule {
		margin-top: 28px;
		margin-bottom: 44px;
	}

	.odd-ca__image {
		margin-bottom: 26px;
	}

	.odd-ca__actions {
		width: 100%;
	}

	.odd-ca__btn {
		padding: 15px 30px;
		font-size: 16px;
	}
}
