/*
Theme Name:   RMB GeneratePress
Theme URI:    https://www.rosabrufal.com/
Description:  Tema hijo de GeneratePress para Martínez & Brufal Procuradores.
Author:       Martínez & Brufal
Template:     generatepress
Version:      0.2.0
Text Domain:  rmb-gp
*/

/* ===== Variables (venían del style.css de Business Pro) ===== */
:root {
	--rojo: #fb2056;
	--azul: #232c39;
	--mostaza: #ebbd30;
	--verde: #70a83b;
	--azulMarva: #14375f;
	--dorado: #eabe3f;
	--rojoMarva: #e4353b;
}

/* ===== Base (igual que Business Pro) ===== */
html { font-size: 62.5%; } /* 1rem = 10px, del que dependen tamaños del contenido */
body {
	background-color: #fff;
	color: #232c39;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
p { margin: 0 0 10px; }
a { color: #fb2056; text-decoration: none; }
a:hover { color: #647585; text-decoration: underline; text-decoration-color: #e4353b; }
h1, h2, h3, h4, h5, h6 {
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 0.382em;
	color: #232c39;
}
h1 { font-size: 1.8em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1.05em; }

/* Botones clásicos del tema anterior (se usan en los extractos y widgets) */
.button, a.button {
	display: inline-block;
	background-color: #232c39;
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 18px 33px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: inset 0 0 0 90px rgba(255, 255, 255, 0), 0 10px 10px -10px rgba(35, 44, 57, 0.1);
	transition: all 0.3s ease;
}
.button.accent, a.button.accent { background-color: #fb2056; }
/* Los botones mantienen el texto blanco aunque el enlace ya se haya visitado (el hero de GP pinta a:visited en rosa) */
a.button:visited, .page-hero a.button, .page-hero a.button:visited { color: #fff; }
.button:hover, a.button:hover { color: #fff; text-decoration: none; box-shadow: inset 0 0 0 90px rgba(255, 255, 255, 0.1), 0 15px 20px -10px rgba(35, 44, 57, 0.2); }

/* ===== Cabecera fija, transparente sobre el hero y blanca al bajar ===== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background-color: transparent;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .inside-header { max-width: 1280px; padding: 10px 0; transition: padding 0.3s ease; }
.site-header.shrink { background-color: #fff; box-shadow: 0 0 20px rgba(35, 44, 57, 0.2); }
.site-header.shrink .inside-header { padding: 0; }
.site-logo img, .site-header .header-image { width: 200px; height: auto; }

/* Menú principal */
.main-navigation, .main-navigation ul ul { background-color: transparent; }
.main-navigation .main-nav ul li a {
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #000;
	padding-left: 12px;
	padding-right: 12px;
	line-height: 65px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.sfHover > a { color: #fb2056; background: transparent; }
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: #fb2056; background: transparent; }
.main-navigation .menu-item-has-children .dropdown-menu-toggle { color: #fb2056; padding-left: 4px; }
.main-navigation .main-nav ul ul {
	background-color: #fff;
	width: 180px;
	box-shadow: 0 5px 15px rgba(35, 44, 57, 0.05);
	padding: 9px 7px;
}
.main-navigation .main-nav ul ul li a {
	color: #232c39;
	font-size: 15px;
	line-height: 15px;
	padding: 15px;
}

/* ===== Hero (Element "Hero páginas" / "Hero portada") ===== */
.page-hero { text-align: center; color: #232c39; }
.page-hero .inside-page-hero { max-width: 768px; margin: 0 auto; }
.page-hero h1.rmb-hero-titulo { font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 41.6px; font-weight: 300; line-height: 1.2; color: #232c39; margin: 0 0 0.382em; }
.page-hero .rmb-hero-extracto h2 { font-size: 24px; font-weight: 300; line-height: 1.2; color: #000; }
.page-hero .rmb-hero-extracto h3 { font-size: 20.8px; font-weight: 300; color: #000; }
.page-hero .rmb-hero-extracto p { margin: 0 0 10px; }
.page-hero .rmb-hero-extracto > p:empty { display: none; }
.page-hero.rmb-hero-portada h1 { font-size: 56px; font-weight: 300; color: #000; margin: 0 0 21px; }
.page-hero.rmb-hero-portada h2 { font-size: 24px; font-weight: 300; color: #000; margin: 0 0 9px; }
@media (max-width: 768px) {
	.page-hero h1.rmb-hero-titulo { font-size: 30px; }
	.page-hero.rmb-hero-portada h1 { font-size: 36px; }
	.page-hero .button { margin: 10px 5px !important; min-width: 0 !important; }
}

/* ===== Contenido ===== */
.one-container .site-content { padding: 80px 0 40px; }
@media (max-width: 1279px) { .one-container .site-content { padding-left: 5%; padding-right: 5%; } }
.one-container.right-sidebar .site-main { margin-right: 40px; }

/* ===== Pie ===== */
.site-footer .footer-widgets { background-color: #232c39; color: #a7aeb8; }
.site-footer .footer-widgets a { color: #a7aeb8; }
.site-footer .footer-widgets a:hover { color: #fff; }
.site-footer .footer-widgets .widget-title { color: #fff; font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 500; text-transform: uppercase; }
.site-info { background-color: #232c39; color: #a7aeb8; font-size: 14px; text-align: center; }
.site-info a { color: #a7aeb8; }
.site-info .copyright-bar { width: 100%; }
.rmb-creditos, .rmb-creditos-enlaces { margin-bottom: 20px; }
.rmb-creditos-diseno { font-size: 11px; }
.page-hero .rmb-hero-marca { display: block; font-size: 40px; line-height: 1.2; }

/* Entradas y página del blog: título del hero en recuadro blanco con borde rosa (antes en los scripts de Genesis) */
.single-post .page-hero .inside-page-hero {
	background-color: #ffffff9e;
	padding: 38px;
	width: fit-content;
	max-width: 768px;
	border-left: 10px solid #fb2056;
}
.single-post .page-hero h1.rmb-hero-titulo { font-weight: 400; }
.rmb-migas { font-size: 14px; margin-bottom: 20px; }
.rmb-migas .sep { margin: 0 4px; }

/* Archivo de Partidos Judiciales (antes plantilla de Business Pro) */
.rmb-partidos-titulo { text-align: center; }
.rmb-partidos-intro { display: flex; gap: 2.5641%; }
.rmb-partidos-intro p { flex: 1; margin: 30px auto; }
@media (max-width: 767px) { .rmb-partidos-intro { display: block; } }
.rmb-marca-comfortaa { color: #084f82; font-weight: 500; font-family: Comfortaa, sans-serif; font-size: 14px; }
.rmb-marca-comfortaa span { color: #e4353b; font-weight: 600; }
.portfolio { width: 100%; }
.portfolio .filter { font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: small; font-weight: 500; text-align: center; display: block; margin-bottom: 40px; }
.portfolio .filter .wrap { display: flex; flex-wrap: wrap; justify-content: center; }
.portfolio .filter a { text-decoration: none; margin: 0.5em; padding: 0.5em; display: block; color: #232c39; }
.portfolio .filter a.active { color: #fb2056; }
.portfolio-item { width: 100%; margin-bottom: 20px; box-shadow: 0 20px 20px -10px rgba(35, 44, 57, 0.1); border-radius: 4px; position: relative; }
.portfolio-item:before { content: ""; display: block; position: absolute; inset: 0; background-color: rgba(35, 44, 57, 0.9); z-index: 1; pointer-events: none; opacity: 0.1; border-radius: 4px; transition: all 0.75s cubic-bezier(0, 1, 0.5, 1); }
.portfolio-item:hover { box-shadow: 0 20px 20px -10px rgba(35, 44, 57, 0.3); }
.portfolio-item:hover:before, .portfolio-item:hover .entry-title { opacity: 1; }
.portfolio-item a { display: block; position: relative; }
.portfolio-item img { border-radius: 4px; display: block; width: 100%; height: auto; }
.portfolio-item .entry-title { text-align: center; position: absolute; font-family: Montserrat, Helvetica, Arial, sans-serif; font-weight: 500; font-size: 16px; color: #fff; height: 1em; line-height: 1; z-index: 2; opacity: 0; transition: all 0.75s cubic-bezier(0, 1, 0.5, 1); margin: auto; inset: 0; }
@media (min-width: 512px) { .portfolio-item { width: calc(50% - 10px); } }
@media (min-width: 768px) { .portfolio-item { width: calc(33.333333% - 13.333333px); } }

/* Listado del blog: tarjetas a dos columnas (como Business Pro) */
.blog .site-main article .inside-article,
.archive.category .site-main article .inside-article {
	padding: 0 30px 30px;
	background: #fff;
	box-shadow: 0 10px 20px -10px rgba(35, 44, 57, 0.1);
	display: flex;
	flex-direction: column;
}
.blog .site-main .post-image,
.archive.category .site-main .post-image { margin: 0 -30px 20px; order: -2; }
.blog .site-main .post-image img,
.archive.category .site-main .post-image img { width: 100%; height: auto; display: block; }
.blog .site-main .entry-header,
.archive.category .site-main .entry-header { display: flex; flex-direction: column; }
.blog .site-main .entry-header .entry-meta,
.archive.category .site-main .entry-header .entry-meta { order: -1; font-size: 12px; margin: 0 0 5px; }
.blog .site-main .entry-title,
.archive.category .site-main .entry-title { font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.3; }
.blog .site-main .entry-summary,
.archive.category .site-main .entry-summary { font-size: 15px; margin-top: 10px; }
.blog .site-main footer.entry-meta,
.archive.category .site-main footer.entry-meta { font-size: 12px; }
.blog .site-main .entry-title a,
.archive.category .site-main .entry-title a { color: #fb2056; }

/* ===== Rejilla de columnas de Genesis (la usan formularios CF7, widgets y contenidos antiguos) ===== */
@media (min-width: 768px) {
	.one-half, .one-third, .one-fourth, .one-fifth, .one-sixth, .two-thirds, .two-fourths, .two-fifths, .two-sixths,
	.three-fourths, .three-fifths, .three-sixths, .four-fifths, .four-sixths, .five-sixths { float: left; margin-left: 2.5641%; }
	.one-half, .three-sixths, .two-fourths { width: 48.71795%; }
	.one-third, .two-sixths { width: 31.62393%; }
	.four-sixths, .two-thirds { width: 65.81197%; }
	.one-fourth { width: 23.07692%; }
	.three-fourths { width: 74.35897%; }
	.one-fifth { width: 17.94872%; }
	.two-fifths { width: 38.46154%; }
	.three-fifths { width: 58.97436%; }
	.four-fifths { width: 79.48718%; }
	.one-sixth { width: 14.52991%; }
	.five-sixths { width: 82.90598%; }
	.first { clear: both; margin-left: 0; }
}

/* ===== Formularios (como Business Pro) ===== */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], select, textarea {
	background-color: #fff;
	border: 1px solid #263f50;
	border-radius: 4px;
	padding: 0.5em 1em;
	width: 100%;
	line-height: 2;
	font-size: 18px;
	color: #000;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #647585; background-color: #fff; color: #000; }
label { color: #263f50; }
::placeholder { color: #647585; opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: auto; }
button, input[type="button"], input[type="reset"], input[type="submit"] {
	background-color: #232c39;
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-family: Montserrat, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 18px 33px;
	box-shadow: inset 0 0 0 90px rgba(255, 255, 255, 0), 0 10px 10px -10px rgba(35, 44, 57, 0.1);
}
button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover { background-color: #232c39; color: #fff; box-shadow: inset 0 0 0 90px rgba(255, 255, 255, 0.1), 0 15px 20px -10px rgba(35, 44, 57, 0.2); }
input[type="submit"]:disabled, button:disabled { background-color: #f6f7f8; color: #697886; cursor: not-allowed; }
.main-navigation .menu-toggle, .main-navigation .menu-bar-item > a { box-shadow: none; } /* el botón del menú móvil no hereda el estilo de botón */

/* Botón de las FAQ (directorios de juzgados), como en Business Pro */
.gs-faq .gs-faq__question, .gs-faq .gs-faq__question:hover, .gs-faq .gs-faq__question:focus {
	background-color: #fff;
	color: #14375f;
	border: 1px solid #14375f;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* Etiquetas de "Relacionado" ([entidades_relacionadas]), como en Business Pro */
.entidades { display: inline-block; padding: 4px 8px; background-color: #263f50; color: #fff; font-weight: 600; border-radius: 3px; margin: 5px; font-size: 0.9em; cursor: pointer; }

/* Menú móvil desplegado: fondo blanco para que se lea sobre el hero */
@media (max-width: 768px) {
	.site-header:has(.main-navigation.toggled) { background-color: #fff; box-shadow: 0 0 20px rgba(35, 44, 57, 0.2); }
	.main-navigation.toggled,
	.main-navigation.toggled .main-nav > ul,
	.main-navigation.toggled .main-nav ul ul { background-color: #fff; }
	.main-navigation.toggled .main-nav ul li a { line-height: 50px; }
}

/* Contacto: el mapa va en el bloque "¿Dónde encontrarnos?" (antes del pie); se oculta el de la tarjeta de Business Profile */
.bp-contact-card .bp-map { display: none !important; }
