/**
 * Theme Name:  AIEHMEX
 * Template:    twentytwentyfive
 * Description: Tema personalizado para el sitio de AIEHMEX
 * Version:     1.0.0
 * Author:      Luis Alberto Hernández Aguilar
 */

/* Estilos principales para tema WordPress AIEHMEX */

@import url('assets/header.css');
@import url('assets/footer.css');
@import url('assets/hero.css');
@import url('assets/cards.css');

:root {
  --primary-color: #222959;
  --secondary-color: #5e729e;
  --text-color: #666666;
  --white: #fff;
  --black: #000;
  --gray: #f7f7f7;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  background: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

.logo img {
  max-height: 40px;
}

.color-primary {
  color: var(--primary-color);
}

.show-more {
  max-width: 340px;
  text-align: center;
  margin: auto;
}

.show-more h5 {
  margin-top: 26px;
}

@media (max-width: 768px) {
  .show-more h5 {
    margin-top: 16px;
  }
}

/* Buttons */
.btn-aiehmex {
  background: var(--secondary-color);
  border: none;
  border-radius: 50px;
  padding: 8px 32px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  transition: 0.5s;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--white);
  width: fit-content;
}

.btn-aiehmex:hover {
  background: white;
  color: var(--primary-color);
}

.btn-primary {
  background: var(--secondary-color);
  border: none;
  border-radius: 50px;
  padding: 8px 32px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--primary-color);
}

.btn-cta {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 28px;
  border-radius: 25px;
  transition: 0.5s;
  margin-top: 10px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--primary-color);
  border: 2px solid #fff;
  color: white;
}

/* Sections */
.section-header h2 {
  font-size: 32px;
  color: #111;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding: 0 4px 15px 4px;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 24px;
  }
}

.section-header h2::before {
  content: '';
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: #ddd;
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-header h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: calc(50% - 20px);
}

.section-redirect-light:hover h5 {
  font-weight: 600 !important;
}

.section-redirect-dark:hover h5 {
  font-weight: 600 !important;
}

.contact-section .contact-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase;
  color: #999;
}

.contact-section i {
  font-size: 48px;
  display: inline-block;
  margin-bottom: 10px;
  color: #222959;
}

.cta-section {
  background: linear-gradient(rgba(0, 142, 99, 0.1), rgba(0, 0, 0, 0.1)), url(/wp-content/themes/aiehmex/img/cta-bg.jpg) fixed center center;
  background-size: cover;
  padding: 60px 0;
  color: white;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 30px 0;
  }
}

.cta-section .cta-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.bg-blanco {
  background-color: var(--white);
}

.bg-gris {
  background-color: var(--gray);
}

.bg-negro {
  background-color: var(--black);
}

.bg-negro .section-header h2 {
  color: var(--white);
}

.bg-negro .section-header h2::before {
  background: var(--white);
}

.bg-negro .section-header h2::after {
  background: var(--primary-color);
}

/* Filtros */
.filters {
  padding: 0;
  margin-bottom: 35px;
  list-style: none;
  text-align: center;
}

.filters li {
  cursor: pointer;
  margin: 15px 15px 15px 0;
  display: inline-block;
  padding: 10px 20px;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-color);
  border-radius: 4px;
  text-transform: uppercase;
  background: #fff;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .filters li {
    margin: 8px 8px 8px 0;
  }
}

.filters li.filter-active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0px 4px 12px rgba(34, 41, 89, 0.3);
}

.filters li:hover {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0px 4px 12px rgba(34, 41, 89, 0.3);
}

.separator-b {
  width: 306px;
  height: 4px;
  background-color: var(--black);
  margin: 10px 17px;
}

.separator-w {
  width: 306px;
  height: 4px;
  background-color: var(--white);
  margin: 10px 17px;
}

/* Columnas */
.columnas-section .title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
}

.columnas-section .description {
  font-size: 14px;
  margin-bottom: 0;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222959;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  text-align: center;
  line-height: 1;
  z-index: 1000;
}

.back-to-top i {
  padding-top: 12px;
  color: #fff;
}

.back-to-top:hover {
  background: #0056b3;
}

#intro-hero .carousel-item {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: 0.7s;
}

#intro-hero .carousel-item::before {
  content: '';
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

.about-col p .aligncenter,
.card-text .aligncenter,
.contenido-section .aligncenter {
  display: block;
  margin: 0 auto;
}

/* Alineación de imágenes en contenido WYSIWYG */
.section-body .alignleft,
.section-header .alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.section-body .alignright,
.section-header .alignright {
  float: right;
  margin: 0 0 20px 20px;
}

.section-body .aligncenter,
.section-header .aligncenter {
  display: block;
  margin: 0 auto;
}

.section-body img,
.section-header img {
  max-width: 100%;
  height: auto;
}

/* Corregir display de contenedores Elementor */
body:not(.admin-bar) .e-con {
  display: flex !important;
}