/* ==========================================================================
   Orbegozo Abogado — estilos e interacciones de la landing
   ========================================================================== */

/* --- Pilares de autoridad: al pasar el mouse la tarjeta sube ligeramente
       y su fondo se oscurece (el texto no cambia) --- */
.oa-pilar {
	transition: transform 0.35s ease;
}

.oa-pilar:hover {
	transform: translateY(-8px);
}

.oa-pilar > .elementor-widget-wrap {
	transition: background-color 0.35s ease;
}

.oa-pilar:hover > .elementor-widget-wrap {
	background-color: #17504b !important;
}

/* --- Servicios especializados: zoom central SOLO de la imagen al hover ---
       (overflow en el propio widget: con el DOM optimizado de Elementor
       no siempre existe .elementor-widget-container) --- */
.oa-zoom,
.oa-zoom .elementor-widget-container {
	overflow: hidden;
}

.oa-zoom img {
	transition: transform 0.5s ease;
	transform-origin: center center;
}

.oa-zoom:hover img {
	transform: scale(1.08);
}

/* --- Formulario de contacto: la flecha del botón va a la derecha del texto --- */
.elementor-form .elementor-field-type-submit .elementor-button-content-wrapper {
	display: flex !important;
	flex-direction: row-reverse !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* --- Separación de 24px entre tarjetas con fondo propio ---
       (dibujada como borde del color de la sección, 12px por lado,
       para que ambas tarjetas midan lo mismo que en el diseño) --- */
.oa-sep-verde-l {
	border-right: 12px solid #1c504c;
}

.oa-sep-verde-r {
	border-left: 12px solid #1c504c;
}

.oa-sep-blanco-l {
	border-right: 12px solid #ffffff;
}

.oa-sep-blanco-r {
	border-left: 12px solid #ffffff;
}

@media (max-width: 767px) {
	.oa-sep-verde-l,
	.oa-sep-verde-r,
	.oa-sep-blanco-l,
	.oa-sep-blanco-r {
		border-right: 0;
		border-left: 0;
	}

	.oa-card-m {
		margin-bottom: 16px;
	}

	/* Servicios: las tarjetas apiladas se separan 24px como en el Figma móvil */
	.oa-sep-blanco-l.oa-card-m {
		margin-bottom: 24px;
	}

	/* Datos de contacto en móvil: icono 32px a la izquierda del texto (Figma móvil).
	   Elementor apila el image-box en móvil; forzamos fila con flex. */
	.oa-dato .elementor-image-box-wrapper {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 16px;
	}

	.oa-dato .elementor-image-box-img {
		width: 32px !important;
		flex-shrink: 0;
		margin: 0 !important;
	}

	.oa-dato .elementor-image-box-img img {
		width: 32px !important;
	}

	/* Datos de contacto (contenedores): icono 32px a la izquierda y texto al lado,
	   sin salto de línea en móvil */
	.oa-sep-verde-r:not(.oa-pilar) .e-con > .e-con-inner {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: flex-start;
	}

	.oa-sep-verde-r:not(.oa-pilar) .e-con > .e-con-inner > .e-con.e-child:last-child {
		width: auto !important;
		flex: 1 1 0 !important;
		min-width: 0;
	}
}

/* --- Botones: el texto de los botones píldora no se parte en dos líneas --- */
.elementor-widget-button .elementor-button {
	white-space: nowrap;
}

/* --- Servicios (PC): la imagen de la tarjeta horizontal llena la misma
       altura que el bloque verde de al lado (en tablet/móvil la imagen
       conserva sus alturas fijas propias) --- */
@media (min-width: 1025px) {
	.oa-card-img .elementor-widget-wrap,
	.oa-card-img .elementor-widget-image,
	.oa-card-img .elementor-widget-image .elementor-widget-container {
		height: 100%;
	}

	.oa-card-img .elementor-widget-image img {
		height: 100% !important;
	}

	/* Tarjetas de servicio en grilla: el enlace "Tengo un caso" queda
	   anclado al fondo de la tarjeta, alineado entre ambas columnas */
	.oa-card-srv .elementor-widget-wrap {
		display: flex;
		flex-direction: column;
	}

	.oa-card-srv .elementor-widget-wrap > .elementor-widget:last-child {
		margin-top: auto;
	}
}

/* --- Menú de navegación: la rayita del estado activo/hover respira bajo el
       texto (8px sobre el fondo del ítem, que ahora tiene 18px de padding
       vertical) y solo subraya el texto, no todo el padding del ítem --- */
.elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item:before,
.elementor-widget-nav-menu .elementor-nav-menu--main .elementor-item:after {
	bottom: 8px;
	left: 22px;
	width: calc(100% - 44px);
}

/* --- Header: en PC y tablet el botón va a la derecha y el menú al centro,
       sin cambiar el orden real de las columnas (que móvil usa tal cual) --- */
@media (min-width: 768px) {
	.elementor-column.oa-col-nav {
		order: 2;
	}

	.elementor-column.oa-col-btn {
		order: 3;
	}
}

/* ==========================================================================
   Menú lateral (off-canvas) — móvil y tablet
   ========================================================================== */

.oa-burger,
.oa-burger:hover,
.oa-burger:focus,
.oa-burger:active {
	background: transparent !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
}

.oa-burger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	justify-content: center;
	align-items: flex-end;
	margin-left: auto;
	padding: 10px 6px;
	cursor: pointer;
}

.oa-burger span {
	display: block;
	width: 26px;
	height: 2px;
	background: #d6bc6f;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.oa-burger span:nth-child(2) {
	width: 18px;
}

.oa-burger:hover span {
	width: 26px;
}

.oa-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(11, 40, 39, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
	z-index: 9998;
}

.oa-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100dvh;
	width: min(320px, 86vw);
	background: #1c504c;
	z-index: 9999;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
	display: flex;
	flex-direction: column;
	padding: 24px;
	box-shadow: -16px 0 48px rgba(0, 0, 0, 0.3);
}

body.oa-drawer-open .oa-drawer {
	transform: translateX(0);
}

body.oa-drawer-open .oa-drawer-backdrop {
	opacity: 1;
	visibility: visible;
}

body.oa-drawer-open {
	overflow: hidden;
}

.oa-drawer-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(214, 188, 111, 0.35);
}

.oa-drawer-logo {
	width: 150px;
	height: auto;
	display: block;
}

.oa-drawer-brand {
	color: #d6bc6f;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 18px;
	letter-spacing: 1px;
}

.oa-drawer-close {
	background: none;
	border: 1px solid rgba(214, 188, 111, 0.5);
	border-radius: 999px;
	width: 36px;
	height: 36px;
	color: #d6bc6f;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.oa-drawer-close:hover {
	background: #d6bc6f;
	color: #1c504c;
}

.oa-drawer-nav {
	flex: 1;
	overflow-y: auto;
}

.oa-drawer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oa-drawer-menu li {
	border-bottom: 1px solid rgba(214, 188, 111, 0.18);
}

.oa-drawer-menu a {
	display: block;
	padding: 16px 4px;
	color: #ffffff;
	font-family: 'DM Sans', 'Segoe UI', sans-serif;
	font-size: 17px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.25s ease, padding-left 0.25s ease;
}

.oa-drawer-menu a:hover {
	color: #d6bc6f;
	padding-left: 10px;
}

.oa-drawer-cta {
	margin-top: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #d6bc6f;
	color: #1c504c !important;
	border-radius: 999px;
	padding: 13px 16px;
	font-family: 'DM Sans', 'Segoe UI', sans-serif;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none !important;
	transition: filter 0.25s ease;
}

.oa-drawer-close svg {
	display: block;
	flex-shrink: 0;
}

.oa-drawer-cta:hover {
	filter: brightness(1.05);
}

/* --- Tablet (768-1024): paneles de contacto apilados, sin bordes separadores --- */
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-column.oa-sep-verde-l:not(.oa-pilar) {
		border-right: 0;
		margin-bottom: 24px;
	}

	.elementor-column.oa-sep-verde-r:not(.oa-pilar) {
		border-left: 0;
	}
}

/* --- Datos de contacto: los valores largos (correo) nunca desbordan --- */
.oa-dato .elementor-image-box-description {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* --- Datos de contacto: icono a tamaño fijo del diseño (56px) --- */
.oa-dato .elementor-image-box-img {
	width: 56px;
	flex-shrink: 0;
}

.oa-dato .elementor-image-box-img img {
	width: 56px;
}

/* --- Datos de contacto: el dato enlazado (tel/mailto/maps) se subraya al
       pasar el cursor para que se note que es cliqueable --- */
.oa-dato .elementor-image-box-description a:hover {
	text-decoration: underline !important;
}

/* ==========================================================================
   Páginas de contenido (p. ej. Política de Privacidad) — heredan el estilo
   de la landing: tipografía DM Sans, títulos en verde y ancho de lectura
   ========================================================================== */

body.page:not(.elementor-page) .site-main {
	max-width: 960px;
	margin: 0 auto;
	padding: 48px 24px 72px;
	font-family: "DM Sans", sans-serif;
	color: #2a2a2a;
	line-height: 1.65;
}

body.page:not(.elementor-page) .site-main h1,
body.page:not(.elementor-page) .site-main h2,
body.page:not(.elementor-page) .site-main h3,
body.page:not(.elementor-page) .page-header .entry-title {
	font-family: "DM Sans", sans-serif;
	color: #1c504c;
}

body.page:not(.elementor-page) .site-main h2 {
	margin: 1.5em 0 0.5em;
}

body.page:not(.elementor-page) .site-main p,
body.page:not(.elementor-page) .site-main ul {
	margin-bottom: 1em;
}

body.page:not(.elementor-page) .site-main a {
	color: #1c504c;
	text-decoration: underline;
	text-decoration-color: #d6bc6f;
}

/* ==========================================================================
   Menú principal de escritorio (shortcode [oa_nav]) — réplica exacta del
   widget Nav Menu de Elementor Pro que usaba el header
   ========================================================================== */

.oa-mainnav-list {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.oa-mainnav-list a {
	position: relative;
	display: block;
	padding: 18px 26px;
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
	color: #ffffff;
	text-decoration: none;
	transition: color 0.4s;
}

.oa-mainnav-list a:hover,
.oa-mainnav-list .oa-active > a {
	color: #d6bc6f;
}

/* La rayita del estado activo/hover: 3px dorados que respiran bajo el texto
   y solo subrayan el texto, igual que la regla del widget de Pro */
.oa-mainnav-list a::after {
	content: "";
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 8px;
	height: 3px;
	background: #d6bc6f;
	opacity: 0;
	transition: opacity 0.4s;
}

.oa-mainnav-list a:hover::after,
.oa-mainnav-list .oa-active > a::after {
	opacity: 1;
}

/* ==========================================================================
   Formulario de contacto (Contact Form 7) — réplica exacta del widget
   Form de Elementor Pro
   ========================================================================== */

.oa-cf7-row {
	margin-bottom: 24px;
}

.oa-cf7-row:last-child {
	margin-bottom: 0;
}

/* CF7 pasa el formulario por wpautop y envuelve cada fila en un <p> */
.oa-cf7-row p {
	margin: 0;
}

.oa-cf7-row label {
	display: block;
	margin-bottom: 8px;
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #f2fbf9;
}

.oa-cf7 input[type="text"],
.oa-cf7 input[type="tel"],
.oa-cf7 input[type="email"],
.oa-cf7 textarea {
	display: block;
	width: 100%;
	padding: 13px 16px;
	background-color: #227f76;
	color: #a7e8db;
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
	font-size: 16px;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
}

.oa-cf7 input:focus,
.oa-cf7 textarea:focus {
	outline: 1px solid #d6bc6f;
}

.oa-cf7 ::placeholder {
	color: #a7e8db;
	opacity: 1;
}

.oa-cf7 textarea {
	height: 110px;
	resize: vertical;
}

.oa-cf7 .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 80%;
	padding: 14px 24px;
	background-color: #d6bc6f;
	color: #371e11;
	font-family: "DM Sans", sans-serif;
	font-weight: 500;
	font-size: 16px;
	border: 0;
	border-radius: 50px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.3s;
}

.oa-cf7 .wpcf7-submit img {
	width: 16px;
	height: 16px;
	display: block;
}

/* Mensajes de validación y de respuesta, acordes al bloque verde */
.oa-cf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	color: #ffd9d9;
}

.wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 12px 16px;
	border: 1px solid #d6bc6f;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	color: #f2fbf9;
}

@media (max-width: 1024px) {
	.oa-mainnav {
		display: none;
	}

	.oa-cf7-row > label,
	.oa-cf7 input[type="text"],
	.oa-cf7 input[type="tel"],
	.oa-cf7 input[type="email"],
	.oa-cf7 textarea {
		font-size: 15px;
	}
}

@media (max-width: 767px) {
	.oa-cf7-row > label,
	.oa-cf7 input[type="text"],
	.oa-cf7 input[type="tel"],
	.oa-cf7 input[type="email"],
	.oa-cf7 textarea {
		font-size: 13px;
	}

	.oa-cf7 .wpcf7-submit {
		width: 100%;
		font-size: 13px;
	}
}
