/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.elementor-text-editor p:last-child, .textwidget p:last-child, .elementor-widget-container p:last-child, .elementor-widget-text-editor p:last-child{ margin-bottom:0px;}  
p:last-child{ margin-bottom:0px;}

/* ---- Boton degradado ---- */
.btn-degradado .elementor-button,
a.elementor-button.btn-degradado {
	background: linear-gradient(90deg, var(--e-global-color-accent) 0%, var(--e-global-color-azulclaro) 50%, var(--e-global-color-accent) 100%);
	background-size: 200% 100%;
	background-position: 0% 0;
	transition: background-position 0.45s ease;
}

.btn-degradado .elementor-button:hover,
a.elementor-button.btn-degradado:hover {
	background-position: 100% 0;
}


.img-backcover-effect {
    flex: 1;
	position: relative;
   	display: flex;
   	align-items: stretch;
	& img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
    		object-fit: cover;
	}
}

.btn-flecha .elementor-button-text{
	display: flex;
    align-content: center;
    flex-wrap: wrap;
}

.btn-flecha svg{
    width: 17px;
}

.btn-flecha{
    line-height: 0px;
}

.caja-link {
    cursor: pointer;
	}

.cta-flecha .elementor-cta__button.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 0 5px;
  border: 0;
  border-radius: 0;
  letter-spacing: 0.56px;
  line-height: 16.8px;
}

/* La flecha se pinta como mascara para heredar el color del texto */
.cta-flecha .elementor-cta__button.elementor-button::after {
  --flecha: url("/wp-content/uploads/2026/09/mg-clinica-dental-flecha-derecha.svg") no-repeat center / contain;
  content: "";
  flex: 0 0 17px;
  height: 11px;
  background-color: currentColor;
  -webkit-mask: var(--flecha);
          mask: var(--flecha);
}

/* ---- Subtitulos H3 que mantienen el alto de linea de un span ---- */
.mg-titulo-inline .elementor-heading-title {
	display: inline;
}

/* ---- Contenido de los articulos: los H2 se ven como el texto en negrita ---- */
.elementor-widget-theme-post-content h2 {
	margin: 0 0 .9rem;
	font: inherit;
	font-weight: 700;
	color: inherit;
}

/* ---- Lightbox: ocultar titulo y descripcion de la imagen ---- */
.elementor-slideshow__footer {
	display: none;
}

body {
  counter-reset: seccion;
}

.numerado .elementor-heading-title::before {
  counter-increment: seccion;
  content: counter(seccion) ". ";
}


/*Colores y Ajustes Tabla*/
.fb-tabla-card {
  background: #fff;
}
.fb-tabla-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: #fff;
  border: 1px solid #C5D6EA;      
  border-radius: 5px;             
}
.fb-tabla {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 25.6px;
  color: #2B3A4A;
  margin: 0;
}
.fb-tabla th,
.fb-tabla td {
  text-align: left;
  padding: 9px 20px;
  border: none;
  white-space: nowrap;
}
.fb-tabla th {
  background: #D6E4F3;
  color: #1E3A5F;
  font-weight: 700;
}
.fb-tabla th:nth-child(1),
.fb-tabla td:nth-child(1) { width: 36.7%; }
.fb-tabla th:nth-child(2),
.fb-tabla td:nth-child(2) { width: 29%; }

/* Tablas de 4 columnas: mismo ancho para todas */
.fb-tabla tr > :first-child:nth-last-child(4),
.fb-tabla tr > :first-child:nth-last-child(4) ~ * { width: 25%; }

/* Filas alternas: azul muy claro (sin gris) */
.fb-tabla tbody tr:nth-child(even) {
  background: #F3F8FD;
}

/* Líneas verticales con color */
.fb-tabla th + th,
.fb-tabla td + td {
  border-left: 1px solid #C5D6EA;
}
.fb-tabla th + th {
  border-left-color: #B8CCE4;     /* un punto más marcada en la cabecera */
}

/* Primera columna destacada y línea entre filas */
.fb-tabla td:first-child {
  font-weight: 700;
  color: #1E3A5F;
}
.fb-tabla tbody td {
  border-bottom: 1px solid #C5D6EA;
}
.fb-tabla tbody tr:last-child td {
  border-bottom: none;
}

/* Escritorio: sin scroll, el texto salta de línea */
@media (min-width: 1025px) {
  .fb-tabla { min-width: 0; }
  .fb-tabla th,
  .fb-tabla td { white-space: normal; }
}

@media (max-width: 767px) {
  .fb-tabla { font-size: 15px; }
  .fb-tabla th, .fb-tabla td { padding: 8px 16px; }
}

/* Anula el gris del tema en filas impares */
.fb-tabla tbody tr:nth-child(odd) > td {
  background-color: #fff;
}

/* Filas pares en azul muy claro (aplicado a la celda, por si el tema también toca las pares) */
.fb-tabla tbody tr:nth-child(even) > td {
  background-color: #F3F8FD;
}

*::selection {
  background: var(--e-global-color-primary) !important;
  color: #ffffff !important;
}
*::-moz-selection {
  background: var(--e-global-color-primary) !important;
  color: #ffffff !important;
}
