/*
Theme Name: Medical Clinic Child
Theme URI: http://cmsmasters.net/medical-clinic-child/
Author: cmsmasters
Author URI: http://cmsmasters.net/
Description: Medical Clinic Child Theme
Template: medical-clinic
Version: 1.0.0
License:
License URI:
Text Domain: medical-clinic-child
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

.right-contacto{   
    padding: 25px 35px;
    background-color: #f7f7f7;
    border: 1px solid #c0c0c0;
}

.home-area-image img{
	height: 186px !important;
}

/* Texto blanco en la opción del menú principal seleccionada */
#navigation > li.current-menu-item > a,
#navigation > li.current-menu-item > a .nav_title,
#navigation > li.current-menu-ancestor > a,
#navigation > li.current-menu-ancestor > a .nav_title,
#navigation > li.current-menu-parent > a,
#navigation > li.current-menu-parent > a .nav_title,
#navigation > li.current_page_item > a,
#navigation > li.current_page_item > a .nav_title,
#navigation > li.current-page-ancestor > a,
#navigation > li.current-page-ancestor > a .nav_title,
#navigation > li.current_page_ancestor > a,
#navigation > li.current_page_ancestor > a .nav_title,
#navigation > li.cmsmasters_active > a,
#navigation > li.cmsmasters_active > a .nav_title {
	color: #ffffff !important;
}

#navigation .sub-menu li.current-menu-item > a,
#navigation .sub-menu li.current-menu-item > a .nav_title,
#navigation .sub-menu li.current-menu-ancestor > a,
#navigation .sub-menu li.current-menu-ancestor > a .nav_title {
	color: #ffffff !important;
}


/* Blanco cuando el item está realmente activo (fondo negro) */
body #navigation > li.current-menu-item > a,
body #navigation > li.current-menu-item > a .nav_title,
body #navigation > li.current-menu-ancestor > a,
body #navigation > li.current-menu-ancestor > a .nav_title,
body #navigation > li.current-page-ancestor > a,
body #navigation > li.current-page-ancestor > a .nav_title,
body #navigation > li.cmsmasters_active.current-menu-item > a,
body #navigation > li.cmsmasters_active.current-menu-item > a .nav_title,
body #navigation > li.cmsmasters_active.current-menu-ancestor > a,
body #navigation > li.cmsmasters_active.current-menu-ancestor > a .nav_title,
body #navigation > li.cmsmasters_active.current-page-ancestor > a,
body #navigation > li.cmsmasters_active.current-page-ancestor > a .nav_title {
	color: #ffffff !important;
}


/* Reset: si existe una coincidencia exacta en otra rama del menú,
   los que solo son "ancestro heredado" vuelven a negro */
body #navigation:has(li.current-menu-item)
	> li:not(:has(.current-menu-item)):not(.current-menu-item):not(:has(> a:hover)) > a,
body #navigation:has(li.current-menu-item)
	> li:not(:has(.current-menu-item)):not(.current-menu-item):not(:has(> a:hover)) > a .nav_title {
	color: #565658 !important;
	background: transparent !important;
}


/* Si un elemento de primer nivel coincide exactamente con la página actual,
   ese manda: todos los demás vuelven a negro aunque contengan un duplicado */
body #navigation:has(> li.current-menu-item) > li:not(.current-menu-item):not(:has(> a:hover)),
body #navigation:has(> li.current-menu-item) > li:not(.current-menu-item):not(:has(> a:hover)) > a {
	background: transparent !important;
	background-color: transparent !important;
}

body #navigation:has(> li.current-menu-item) > li:not(.current-menu-item):not(:has(> a:hover)) > a,
body #navigation:has(> li.current-menu-item) > li:not(.current-menu-item):not(:has(> a:hover)) > a .nav_title {
	color: #565658 !important;
}

/* Duplicado en el submenú: texto negro, sin resaltar */
body #navigation:has(> li.current-menu-item) .sub-menu li.current-menu-item > a,
body #navigation:has(> li.current-menu-item) .sub-menu li.current-menu-item > a .nav_title {
	color: #565658 !important;
}
body #navigation:has(> li.current-menu-item) .sub-menu li.current-menu-item > a {
	background: transparent !important;
}

/* Hover directo sobre un enlace de submenú: texto blanco sobre el fondo negro */
body #navigation .sub-menu li > a:hover,
body #navigation .sub-menu li > a:hover .nav_title {
	color: #ffffff !important;
}

/* El ratón está en el sub-submenú, no en el enlace: sin resaltar */
body #navigation .sub-menu li:hover:not(:has(> a:hover)):not(.current-menu-item) > a,
body #navigation .sub-menu li:hover:not(:has(> a:hover)):not(.current-menu-item) > a .nav_title {
	color: #565658 !important;
	background: transparent !important;
}

body #navigation .sub-menu li:hover:not(:has(> a:hover)):not(.current-menu-item):not(:has(.current-menu-item)) > a,
body #navigation .sub-menu li:hover:not(:has(> a:hover)):not(.current-menu-item):not(:has(.current-menu-item)) > a .nav_title {
	color: #565658 !important;
	background: transparent !important;
}

/* Estado por defecto: sin clase real de WordPress → negro,
   aunque el JS del tema haya dejado cmsmasters_active pegado */
body #navigation > li:not(.current-menu-item, .current-menu-ancestor, .current-menu-parent,
	.current_page_item, .current-page-ancestor, .current_page_ancestor,
	.current_page_parent, .current-page-parent):not(:has(> a:hover)) > a,
body #navigation > li:not(.current-menu-item, .current-menu-ancestor, .current-menu-parent,
	.current_page_item, .current-page-ancestor, .current_page_ancestor,
	.current_page_parent, .current-page-parent):not(:has(> a:hover)) > a .nav_title {
	color: #565658 !important;
	background: transparent !important;
}



/* ==========================================================
   BOTÓN "PIDE CITA" — barra superior
   ========================================================== */

/* Contenedor: permite que la barra crezca con el botón */
.header_top_right,
.header_top_right .top_nav_wrap {
	height: auto !important;
}

/* Separación arriba y abajo respecto a la barra */
#top_line_nav li#menu-item-16897 {
	padding-top: 8px;
	padding-bottom: 8px;
	line-height: normal;
}

/* Aspecto del botón: fondo blanco, borde y letra negros */
#top_line_nav li#menu-item-16897 > a,
#top_line_nav li#menu-item-16897.current-menu-item > a {
	display: inline-block;
	padding: 6px 18px;
	margin: 0 0 0 10px;
	background-color: #fff !important;
	border: 2px solid #000;
	border-radius: 4px;          /* 0 si lo prefieres con esquinas rectas */
	color: #000 !important;
	font-weight: 700;
	line-height: 1.4 !important;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* El tema envuelve el texto en un span: hereda color y sin subrayado */
#top_line_nav li#menu-item-16897 > a .nav_item_wrap {
	color: inherit !important;
	border: 0 !important;
}

/* Hover y foco: se invierten los colores */
#top_line_nav li#menu-item-16897 > a:hover,
#top_line_nav li#menu-item-16897 > a:focus,
#top_line_nav li#menu-item-16897.current-menu-item > a:hover {
	background-color: #000 !important;
	border-color: #000;
	color: #fff !important;
}

#top_line_nav li#menu-item-16897 > a:hover .nav_item_wrap,
#top_line_nav li#menu-item-16897 > a:focus .nav_item_wrap {
	color: #fff !important;
}

/* Foco visible al navegar con teclado */
#top_line_nav li#menu-item-16897 > a:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

/* Móvil / tablet: dentro del menú desplegable */
@media only screen and (max-width: 1024px) {
	#top_line_nav li#menu-item-16897 {
		display: block;
		text-align: center;
	}

	#top_line_nav li#menu-item-16897 > a {
		display: inline-block;
		margin: 0;
	}
}


/* ==========================================================
   ICONOS SOCIALES — barra superior
   Negro por defecto, color de marca al pasar el ratón
   ========================================================== */

/* --- Común a los tres --- */
#top_line_nav li#menu-item-16899,
#top_line_nav li#menu-item-16900,
#top_line_nav li#menu-item-16901 {
	display: flex !important;
	align-items: center;
	line-height: normal !important;
	padding-top: 0;
	padding-bottom: 0;
}

#top_line_nav li#menu-item-16899 > a,
#top_line_nav li#menu-item-16900 > a,
#top_line_nav li#menu-item-16901 > a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: auto !important;
	padding: 0 8px !important;
	line-height: 0 !important;
	color: #000 !important;
	text-decoration: none;
	transition: color .25s ease;
}

/* Oculta el texto sin quitarlo del DOM (lectores de pantalla) */
#top_line_nav li#menu-item-16899 > a .nav_item_wrap,
#top_line_nav li#menu-item-16900 > a .nav_item_wrap,
#top_line_nav li#menu-item-16901 > a .nav_item_wrap {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Caja del icono (la máscara la define cada red) */
#top_line_nav li#menu-item-16899 > a::before,
#top_line_nav li#menu-item-16900 > a::before,
#top_line_nav li#menu-item-16901 > a::before {
	content: "";
	display: block;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	        mask-repeat: no-repeat;
	-webkit-mask-position: center;
	        mask-position: center;
	-webkit-mask-size: contain;
	        mask-size: contain;
}

/* Foco visible por teclado */
#top_line_nav li#menu-item-16899 > a:focus-visible,
#top_line_nav li#menu-item-16900 > a:focus-visible,
#top_line_nav li#menu-item-16901 > a:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

/* --- YouTube --- */
#top_line_nav li#menu-item-16899 > a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.6 12 3.6 12 3.6s-7.5 0-9.4.5A3 3 0 0 0 .5 6.2C0 8.1 0 12 0 12s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.5 9.4.5 9.4.5s7.5 0 9.4-.5a3 3 0 0 0 2.1-2.1c.5-1.9.5-5.8.5-5.8s0-3.9-.5-5.8zM9.6 15.6V8.4l6.2 3.6-6.2 3.6z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.6 12 3.6 12 3.6s-7.5 0-9.4.5A3 3 0 0 0 .5 6.2C0 8.1 0 12 0 12s0 3.9.5 5.8a3 3 0 0 0 2.1 2.1c1.9.5 9.4.5 9.4.5s7.5 0 9.4-.5a3 3 0 0 0 2.1-2.1c.5-1.9.5-5.8.5-5.8s0-3.9-.5-5.8zM9.6 15.6V8.4l6.2 3.6-6.2 3.6z'/%3E%3C/svg%3E");
}
#top_line_nav li#menu-item-16899 > a:hover,
#top_line_nav li#menu-item-16899 > a:focus {
	color: #ff0000 !important;
}

/* --- Facebook --- */
#top_line_nav li#menu-item-16900 > a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 12.07C24 5.44 18.63.07 12 .07S0 5.44 0 12.07c0 5.99 4.39 10.95 10.13 11.85v-8.38H7.08v-3.47h3.05V9.43c0-3.01 1.79-4.67 4.53-4.67 1.31 0 2.69.24 2.69.24v2.95h-1.51c-1.49 0-1.96.93-1.96 1.87v2.25h3.33l-.53 3.47h-2.8v8.38C19.61 23.02 24 18.06 24 12.07z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 12.07C24 5.44 18.63.07 12 .07S0 5.44 0 12.07c0 5.99 4.39 10.95 10.13 11.85v-8.38H7.08v-3.47h3.05V9.43c0-3.01 1.79-4.67 4.53-4.67 1.31 0 2.69.24 2.69.24v2.95h-1.51c-1.49 0-1.96.93-1.96 1.87v2.25h3.33l-.53 3.47h-2.8v8.38C19.61 23.02 24 18.06 24 12.07z'/%3E%3C/svg%3E");
}
#top_line_nav li#menu-item-16900 > a:hover,
#top_line_nav li#menu-item-16900 > a:focus {
	color: #1877f2 !important;
}

/* --- Instagram --- */
#top_line_nav li#menu-item-16901 > a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.16c3.2 0 3.58.01 4.85.07 3.25.15 4.77 1.69 4.92 4.92.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.15 3.23-1.66 4.77-4.92 4.92-1.27.06-1.64.07-4.85.07s-3.58-.01-4.85-.07c-3.26-.15-4.77-1.7-4.92-4.92-.06-1.27-.07-1.64-.07-4.85s.01-3.58.07-4.85c.15-3.23 1.66-4.77 4.92-4.92 1.27-.06 1.65-.07 4.85-.07zM12 0C8.74 0 8.33.01 7.05.07 2.7.27.27 2.69.07 7.05.01 8.33 0 8.74 0 12s.01 3.67.07 4.95c.2 4.36 2.62 6.78 6.98 6.98C8.33 23.99 8.74 24 12 24s3.67-.01 4.95-.07c4.35-.2 6.78-2.62 6.98-6.98.06-1.28.07-1.69.07-4.95s-.01-3.67-.07-4.95c-.2-4.35-2.62-6.78-6.98-6.98C15.67.01 15.26 0 12 0zm0 5.84a6.16 6.16 0 1 0 0 12.32 6.16 6.16 0 0 0 0-12.32zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.41-11.85a1.44 1.44 0 1 0 0 2.88 1.44 1.44 0 0 0 0-2.88z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.16c3.2 0 3.58.01 4.85.07 3.25.15 4.77 1.69 4.92 4.92.06 1.27.07 1.65.07 4.85s-.01 3.58-.07 4.85c-.15 3.23-1.66 4.77-4.92 4.92-1.27.06-1.64.07-4.85.07s-3.58-.01-4.85-.07c-3.26-.15-4.77-1.7-4.92-4.92-.06-1.27-.07-1.64-.07-4.85s.01-3.58.07-4.85c.15-3.23 1.66-4.77 4.92-4.92 1.27-.06 1.65-.07 4.85-.07zM12 0C8.74 0 8.33.01 7.05.07 2.7.27.27 2.69.07 7.05.01 8.33 0 8.74 0 12s.01 3.67.07 4.95c.2 4.36 2.62 6.78 6.98 6.98C8.33 23.99 8.74 24 12 24s3.67-.01 4.95-.07c4.35-.2 6.78-2.62 6.98-6.98.06-1.28.07-1.69.07-4.95s-.01-3.67-.07-4.95c-.2-4.35-2.62-6.78-6.98-6.98C15.67.01 15.26 0 12 0zm0 5.84a6.16 6.16 0 1 0 0 12.32 6.16 6.16 0 0 0 0-12.32zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.41-11.85a1.44 1.44 0 1 0 0 2.88 1.44 1.44 0 0 0 0-2.88z'/%3E%3C/svg%3E");
}
#top_line_nav li#menu-item-16901 > a:hover,
#top_line_nav li#menu-item-16901 > a:focus {
	color: #e1306c !important;
}

/* Alinea los elementos de la barra entre sí */
#top_line_nav {
	display: flex;
	align-items: center;
}


/* ==========================================================
   ACORDEONES — barra azul con chevron
   ========================================================== */

.cmsmasters_toggles.toggles_mode_accordion {
	border: 0 !important;
	margin: 0;
}

.cmsmasters_toggles .cmsmasters_toggle_wrap {
	border: 0 !important;
	margin: 0 !important;
	background: none !important;
}

/* --- Barra del título --- */
.cmsmasters_toggles .cmsmasters_toggle_title {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background-color: #3065b5 !important;
	border: 0 !important;
	border-bottom: 1px solid #fff !important;
	margin: 0 !important;
	padding: 20px 28px !important;
	cursor: pointer;
	transition: background-color .25s ease;
}

.cmsmasters_toggles .cmsmasters_toggle_title:hover {
	background-color: #27538f !important;
}

/* Texto del título */
.cmsmasters_toggles .cmsmasters_toggle_title > a {
	flex: 1 1 auto;
	order: 1;
	color: #fff !important;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
}

/* --- Chevron (sustituye al "+" del tema) --- */
.cmsmasters_toggles .cmsmasters_toggle_title .cmsmasters_toggle_plus {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	flex: 0 0 auto;
	order: 2;
	width: 16px !important;
	height: 16px !important;
	background: none !important;
	border: 0 !important;
}

/* Oculta las dos rayitas originales */
.cmsmasters_toggles .cmsmasters_toggle_plus_hor,
.cmsmasters_toggles .cmsmasters_toggle_plus_vert {
	display: none !important;
}

/* Cerrado: apunta a la derecha */
.cmsmasters_toggles .cmsmasters_toggle_title .cmsmasters_toggle_plus::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translate(-70%, -50%) rotate(-45deg);
	transition: transform .3s ease;
}

/* Abierto: apunta hacia abajo */
.cmsmasters_toggles .cmsmasters_toggle_wrap.current_toggle .cmsmasters_toggle_plus::before {
	transform: translate(-50%, -70%) rotate(45deg);
}

/* --- Contenido desplegable --- */
.cmsmasters_toggles .cmsmasters_toggle {
	background: #fff !important;
	border: 0 !important;
	margin: 0 !important;
}

.cmsmasters_toggles .cmsmasters_toggle_inner {
	padding: 28px !important;
	border: 0 !important;
}

.cmsmasters_toggles .cmsmasters_toggle_inner img {
	max-width: 100%;
	height: auto;
}

/* --- Responsive --- */
@media (max-width: 767px) {
	.cmsmasters_toggles .cmsmasters_toggle_title {
		padding: 16px 18px !important;
		gap: 14px;
	}
	.cmsmasters_toggles .cmsmasters_toggle_title > a {
		font-size: 13px;
	}
	.cmsmasters_toggles .cmsmasters_toggle_inner {
		padding: 18px !important;
	}
}