/*!
Theme Name: Sanimi
Theme URI: https://them.es/starter
Author: Héctor López Suárez
Author URI: https://mexwebs.com.mx
Description: sitio desarrollados para sanimi.com
Version: 3.5.4
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: sanimi
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */

/* From http://codex.wordpress.org/CSS */

.banner-text {
  text-transform: none !important;
}

.forminator-ui.forminator-custom-form[data-design="default"] .forminator-input {
  border-radius: 9px !important;
}

.forminator-ui#forminator-module-188.forminator-design--default .forminator-textarea {
  border-radius: 9px !important;
}

.font-w, .font-w p {
  font-family: Oswald;
  color:#3d3d3d;
  line-height: 7px;
}

.fas {
  font-size: 20px;
  color:#c10000;
}

.fab {
  font-size: 40px;
  color: #c10000;
  padding-left: 10px;
}
.navbar a {
  text-decoration: none !important;
}

.navbar {
  font-size: 18px;
}

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}
.breadcrumbs {
    font-size: 14px;
    margin: 20px 0;
}
.breadcrumbs a {
    text-decoration: none;
    color: #0073aa;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

h1 {
  color: #d20000 !important;
}

body p {
  text-align: justify !important;
}
/*************funcion fija al desplazar: el menú se ciñe al marco al hacer scroll***/
/* #secondary permanece en flujo normal (se desplaza junto con la página).
   #header se ciñe al marco (top:0) en cuanto su posición natural sale del viewport,
   tanto al bajar como al subir el scroll — sin necesitar JavaScript. */
#secondary {
    position: static;
}

#header {
    position: sticky;
    top: 0;
    z-index: 1001;
    height: 60px; /* Altura fija del menú */
    background: #333; /* Ajusta el color del fondo */
}

#main {
    margin-top: 1.5rem !important; /* Espacio consistente, independiente del alto del banner */
}

#main .card .bg-secondary {
  --bs-bg-opacity: 1;
  background-color: #d20000 !important;
}

.navbar-nav {
  --bs-nav-link-color: #fb4!important;
}

.equal-height {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(var(--max-card-height) + 100px); /* Altura base + 25px */
}

/* Ajustar el alto de todas las tarjetas dinámicamente */
:root {
    --max-card-height: 350px; /* Ajusta este valor según la tarjeta con más contenido */
}

/* 🔹 Estilos generales para listas */
ul.custom-list {
    list-style: none; /* Elimina las viñetas predeterminadas */
    padding: 0;
    margin: 0;
}

/* 🔹 Personaliza cada elemento de la lista */
ul.custom-list li {
    position: relative;
    font-size: 18px;
    padding: 10px 15px 10px 40px; /* Espacio para el icono */
    border-radius: 5px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    cursor: pointer;
}

/* 🔹 Agrega el icono en lugar de la viñeta clásica */
ul.custom-list li::before {
    content: "\f14a"; /* Código Unicode de FontAwesome (fa-check-square) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 10px;
    color: #007bff; /* Color del icono */
    font-size: 20px;
    transition: color 0.3s ease-in-out;
}

/* 🔹 Efecto al pasar el mouse en listas SIN enlaces */
ul.custom-list li:not(:has(a)):hover {
    background: #f0f0f0; /* Color de fondo al pasar el mouse */
    transform: scale(1.02); /* Efecto ligero de zoom */
}

/* 🔹 Estilos para listas con enlaces */
ul.custom-list li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

/* 🔹 Efecto hover en enlaces */
ul.custom-list li a:hover {
    color: #007bff;
    text-decoration: underline;
}

/******footer*********************/
#footer a {
    color: white;
}

#footer a:hover {
    color: #fb4;
}

#footer h4 {
    color: white;
}

#footer .col-md-6 a {
    color: #fb4;
}
.copy {
  background-color: #f6f6f6;
  color: #000;
  padding-top: 4px;
  padding-bottom: 1px;

}
#footer {
    background-color: #ba0505;
    color: white;
    box-shadow: inset 0px 4px 135px rgba(0, 0, 0, 0.5); /* Sombra interior */
    padding: 20px 0; /* Espaciado opcional */
}
.copy {
  position: relative;
  top: 18px;
}
#footer .copy p{
  text-align: center!important;
  }

.textwidget {
  padding-left: 45px;
  padding-right: 45px;
  padding-top: 30px;
}
#footer .fas {
  color: #fff !important;
}

#footer .fab {
  color: #fb4 !important;
}

#footer .font-w, #footer .font-w p {
  font-family: Oswald;
  color: #fff;
  line-height: 7px;
}

#footer .text-md-start .fab {
  margin-bottom: 17px;
  margin-top: 17px;
}

#footer .text-md-start {
  position: relative;
  top: -6px;
}
#secondary .hesder-s {
  position: relative;
  top: -28px;
}


#header-banner-container {
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: flex-end; /* alinea el texto abajo, como en tu diseño */
    justify-content: center;
    position: relative;
    /* min-height se define inline, así que lo dejamos */
}

.banner-text {
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1.2;position: relative;
    top: -60px;
}

@media(max-width:768px) {

.logo-p img {
  margin-bottom: 36px;
  position: relative;
  left: 25%;
}
    
    .social-m{
        margin-bottom: 40px;
        margin-top: 50px!important;
    }
    
}
@media (max-width: 768px) {

.escritorio{
display: none;
}

}

/***********vista de telefonos****************/
/* Fondo del menú solo en móviles cuando está colapsado */
@media (max-width: 768px) {
    .navbar-collapse {
        background: #383838; /* Color de fondo solo en móviles */
        border-radius: 5px;
        padding: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    /* Hover de elementos del menú en móviles */
    .navbar-nav .nav-item .nav-link {
        color: var(--bs-nav-link-color);
        padding: 10px 15px;
        transition: background 0.3s ease-in-out;
    }

    .navbar-nav .nav-item .nav-link:hover {
        background: #f0f0f0;
        color: #000;
    }
}

.font-w p {
  line-height: 27px;
  margin-bottom: 2px;
  text-align: left !important;
}

#footer .font-w p {
  line-height: 28px;
}

/* Botón de hamburguesa personalizado */
.navbar-toggler {
    border:solid 3px; /* Color del borde del botón hamburguesa */
}

.navbar-toggler-icon {
   filter: invert(0) !important; /* Hace que el icono de hamburguesa sea blanco */
}

/* Mantener la barra de navegación con su color original */
.bg-dark {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
}

/* Respetar estilos originales de los enlaces en escritorio */
.nav-link {
    background: none;
    border: 0;
    color: var(--bs-nav-link-color);
    display: block;
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Enlace activo en el menú */
.navbar-nav .nav-link.active, 
.navbar-nav .nav-link.show {
    color: var(--bs-navbar-active-color);
}
/***************************************************
 * TARJETAS DE LA PÁGINA ACERCA DE
 ***************************************************/

/* Animación de la tarjeta */
#main .card{
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

#main .card:hover{
    transform:translateY(-6px);
    box-shadow:0 1rem 2rem rgba(0,0,0,.18)!important;
}

/* Encabezado clickeable */
.card-header-link{
    display:block;
    width:100%;
    padding:1rem;
    text-align:center;
    text-decoration:none;
    background:#b70404;
    color:#ffbb44;
    overflow:hidden;

    transition:
        background-color .35s ease,
        color .35s ease,
        transform .35s ease;
}

/* Mantener el estilo del H2 */
.card-header-link h2{
    margin:0;
    padding:0;
    color:inherit;
    font-family:inherit;
    font-size:2rem;
    font-weight:700;

    transition:
        color .35s ease,
        transform .35s ease;
}

/* Hover */
.card-header-link:hover,
.card-header-link:focus{
    background:#ffbb44;
    color:#b70404;
    text-decoration:none;
}

/* Ligero zoom al título */
.card-header-link:hover h2{
    transform:scale(1.03);
}

/* Elimina cualquier color heredado de Bootstrap */
.card-header-link:visited,
.card-header-link:active{
    color:#ffbb44;
}

.card-header-link:hover:visited{
    color:#b70404;
}