@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&display=swap');



/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


.volume-control {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
}

.volume-button {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.3s, box-shadow 0.3s;
}

.volume-button:hover {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.volume-button:focus {
  outline: none;
}


/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: var(--accent-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  transition: all 0.5s;
  z-index: 997;
}

.header .logo img {
  max-height: 150px; /* Tamaño más grande por defecto */
  width: auto;
  height: auto; /* Mantiene la proporción de la imagen */
  padding-top: 0; /* Quitar el padding superior */
  margin-top: -10px; /* Opcional: ajustar la posición hacia arriba si es necesario */
}


/* Media Query para ajustar en pantallas pequeñas */
@media (max-width: 768px) {
  .header .logo img {
    max-height: 120px; /* Reducir tamaño en pantallas más pequeñas */
  }
}


.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .logo span {
  font-size: 24px;
  padding-left: 1px;
  font-family: var(--heading-font);
  color: var(--color-primary);
}



/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/* Global Header on Scroll */
.scrolled .header {
  --background-color: rgba(41, 62, 88, 0.85); /* Fondo más oscuro y semi-transparente */
  padding: 0; /* Altura reducida del navbar al hacer scroll */
  color: #FFEBCC;
  height: 120px; /* Altura reducida cuando se hace scroll */

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Sombra para dar un efecto de profundidad */
}

.scrolled .header .navmenu ul li a,
.header .navmenu ul li a {
  color: #FFEBCC; /* Color de los enlaces de navegación */
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3); /* Sombra para mejor legibilidad */
  font-weight: 300; /* Aumenta el grosor de la fuente */
  font-size: 15px; /* Tamaño de fuente ligeramente mayor */
  transition: color 0.3s ease, text-shadow 0.3s ease; /* Suave transición en hover */
}

.header .navmenu ul li a:hover {
  color: var(--nav-hover-color); /* Cambia el color al hacer hover */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Aumenta la sombra al pasar el ratón */
}

/* Mobile nav toggle */
.header .mobile-nav-toggle {
  color: #0d4d52; /* Color del ícono o texto */
  background-color: #FFEBCC; /* Amarillo */
  border-radius: 50%; /* Hace que el contenedor sea redondo */
  padding: 10px; /* Ajusta el espacio dentro de la redondela */
  display: inline-flex; /* Asegura que el contenido esté centrado */
  align-items: center;
  justify-content: center;
  width: 40px; /* Ajusta el tamaño de la redondela */
  height: 40px; /* Ajusta el tamaño de la redondela */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

.legal-link {
  text-decoration: none; /* Quita el subrayado del enlace */
  color: inherit; /* Usa el mismo color del texto circundante */
}

.legal-link:hover, .legal-link:focus {
  text-decoration: none; /* Mantiene sin subrayado al pasar el cursor o al enfocarse */
  color: inherit; /* No cambia de color al hacer hover */
}


/* Mobile Navigation */
@media (min-width: 768px) { /* Cambiado a 768px para incluir dispositivos hasta iPad Pro */
  .navmenu {
    padding: 0;
  }

  .scrolled .header .navmenu ul li a,
  .header .navmenu ul li a {
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3); /* Sombra para mejor legibilidad */
    font-weight: 400; /* Aumenta el grosor de la fuente */
    font-size: 16px; /* Tamaño de fuente ligeramente mayor */
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Suave transición en hover */
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu > ul > li {
    padding: 15px 14px;
  }

  .navmenu > ul > li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 14px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }



  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    font-weight: 400;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }
}

/* Mobile Navigation */
@media (max-width: 946px) { /* Ajustes para dispositivos móviles */
  .mobile-nav-toggle {
    color: var(--nav-hover-color);
    font-size: 24px; /* Tamaño de fuente reducido */
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: rgba(21, 47, 95, 0.85);; /* Cambia el color de fondo aquí */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Cambia el borde si lo deseas */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Añade una sombra suave */
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #ffffff; /* Cambiado a blanco para el navbar en móviles */
    padding: 10px 15px; /* Reduce el padding para un menú más compacto */
    font-family: var(--nav-font);
    font-size: 15px; /* Tamaño de fuente ligeramente menor */
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: rgba(255, 255, 255, 0.2); /* Fondo semitransparente para iconos */
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #FFEBCC; /* Color en hover, puedes cambiarlo si deseas */
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

.mobile-nav-toggle {
  color: #183458;
  font-size: 26px; /* más pequeño */
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  z-index: 10000;
}

.mobile-nav-toggle:hover {
  color: #005CD7;
}

.mobile-nav-active .navmenu 
{ position: fixed;
   overflow: hidden;
    inset: 0;
     background: rgba(33, 37, 41, 0.8);
      /* Mantiene el fondo oscuro semi-transparente */
       transition: 0.3s; } .mobile-nav-active .navmenu > ul 
       { display: flex; flex-direction: column; position: absolute; top: 60px;
         /* ajusta altura respecto al header */ left: 50%; 
         /* centra horizontalmente */ transform: translateX(-50%);
          /* centra exactamente el menú */ width: 180px; 
          /* ancho del menú */ background: rgba(41, 62, 88, 0.95);
           border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
            padding: 8px 0; z-index: 9999; animation: fadeInMenu 0.3s ease forwards; }
}
.mobile-nav-active .navmenu > ul li a {
  display: block;
  padding: 8px 18px;
  color: #FFEBCC;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none; /* quita subrayado */
  text-align: left;
  transition: all 0.3s ease;
  font-family: 'Cinzel', serif;
}

.mobile-nav-active .navmenu > ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 946px) {
  .mobile-nav-active .navmenu a:before {
    display: none; /* quita subrayado en móviles */
  }
}

/* Hero Section */
.hero-mask {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #ffffff; /* Fondo blanco */
  clip-path: polygon(100% 0, 99% 88%, 61% 96%, 25% 93%, 0 98%, 0 0); /* figura base */
  animation: movePolygon 12s ease-in-out infinite; /* ciclo más rápido */
}

/* Animación del polígono */
@keyframes movePolygon {
  0% {
    clip-path: polygon(100% 0, 99% 88%, 61% 96%, 25% 93%, 0 98%, 0 0); /* base */
  }

  50% {
    /* Expansión hacia abajo: las puntas inferiores bajan a casi 100% */
    clip-path: polygon(100% 0, 100% 100%, 80% 100%, 35% 100%, 0 100%, 0 0);
  }

  100% {
    clip-path: polygon(100% 0, 99% 88%, 61% 96%, 25% 93%, 0 98%, 0 0); /* vuelve a la base */
  }
}


        /* Video */
        .hero-video {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;
          z-index: 0;
          filter: brightness(0.6); /* Oscurece para contraste */
          transition: filter 0.5s ease;
        }

        .hero-video:hover {
          filter: brightness(0.7);
        }

        /* Overlay poligonal */
        .mask {
          position: absolute;
          inset: 0;
          background: 
            linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 60%), /* Más oscuro arriba */
            radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.1) 90%);
          z-index: 1;
          background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
        }
        
        /* Sombra superior para navbar */
        .top-shadow {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 120px;
          background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
          z-index: 2;
        }

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff; /* Letras blancas */
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  text-align: center; /* centra el texto */
  z-index: 3;
}


        /* Lista con animación y hover */
        .hero-text ul {
          list-style: none;
          padding: 0;
          margin: 0;
        }

        .hero-text li {
          opacity: 0;
          transform: translateY(30px);
          animation: fadeInUp 1s ease forwards;
          margin-bottom: 0.5em;
          transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
        }

        .hero-text li:hover {
          transform: scale(1.05);
          text-shadow: 0 0 15px rgba(255,255,255,0.5);
        }

        /* Delay escalonado */
        .hero-text li:nth-child(1) { animation-delay: 0.3s; }
        .hero-text li:nth-child(2) { animation-delay: 0.8s; }
        .hero-text li:nth-child(3) { animation-delay: 1.1s; }
        .hero-text li:nth-child(4) { animation-delay: 1.4s; }

        @keyframes fadeInUp {
          from { opacity: 0; transform: translateY(30px); }
          to { opacity: 1; transform: translateY(0); }
        }


/* Responsive */
@media (max-width: 991px) {
  .hero-text {
    font-size: 1.6rem;
  }
}

@media (max-width: 767px) {
  .hero-text {
    font-size: 1.3rem;
  }
}


.equipo-img-container {
  overflow: hidden;
  display: inline-block;
  position: relative;
}

.equipo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.equipo-img-container:hover .equipo-img {
  filter: grayscale(100%) brightness(70%);
  transform: scale(1.05);
}



@keyframes polyMove {
  0% { transform: rotate(0deg) translate(0,0); }
  50% { transform: rotate(30deg) translate(15px, -15px); }
  100% { transform: rotate(0deg) translate(0,0); }
}

/* Contenido centrado */
.fernandez-content {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  text-align: center;

}



.fernandez-section .section-header h2:hover {
  color: #183458;
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(0, 92, 215, 0.3);
}

/* Divider */
.fernandez-section .divider {
  width: 70px;
  height: 4px;
  margin: 0 auto 40px;
  border-radius: 2px;
  background: linear-gradient(90deg, #005CD7, #111111);
  transition: all 0.3s ease;
}

.fernandez-section .section-header:hover .divider {
  width: 120px;
}

/* Descripción con animación y efecto hover */
.fernandez-description p {
  font-size: 8px;
  line-height: 1.8;
  margin-bottom: 1.5em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  transition: all 0.3s ease;
  color: #111111;
}

.fernandez-description p:hover {
  color: #005CD7;
  transform: translateY(-5px) scale(1.02);
  text-shadow: 0 0 10px rgba(0,92,215,0.2);
}

.fernandez-description p:nth-child(1) { animation-delay: 0.3s; }
.fernandez-description p:nth-child(2) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Responsive */
@media (max-width: 991px) {
  .fernandez-section { 
    height: auto; 
    padding: 80px 0; 
    clip-path: none; 
  }
  .fernandez-section .section-header h2 { 
    font-size: 1.8rem; 
  }
  .fernandez-description p { 
    font-size: 1.1rem; 
  }
}

@media (max-width: 767px) {
  .fernandez-section .section-header h2 { 
    font-size: 1.8rem; 
  }
  .fernandez-description p { 
    font-size: 1rem; 
    text-align: left; 
  }
  .fernandez-cta .btn { 
    padding: 10px 25px; 
    font-size: 0.95rem; 
  }
}
.title-logo {
  height: 40px;           /* ajusta según el tamaño deseado */
  margin-right: 10px;     /* separa del texto */
  vertical-align: middle; /* alinea con el texto */
}

/* Footer general: más claro, gris oscuro */
.footer {
  position: relative;
  background: linear-gradient(to top, #1a1a1a 0%, #2a2a2a 50%, #3a3a3a 100%);
  color: #d7e4e5c0;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem; /* tamaño pequeño */
  padding: 20px 0 7px 0; /* –30% delgado */
  overflow: hidden;
}

/* Efecto sutil de luz lenta */
.footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(41, 62, 88, 0.85) 0%, transparent 70%);
  animation: lightMove 40s linear infinite; /* lento y sutil */
  pointer-events: none;
}

/* Contenedor de columnas */
.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Secciones individuales */
.footer-section h4 {
  color: #fff;
  font-size: 1rem; 
  margin-bottom: 6px; /* reducido */
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.footer-section h4:hover {
  color: #00c3a5;
}

.footer-section p, 
.footer-section li, 
.footer-section a {
  color: #d7e4e5c0;
  text-decoration: none;
  margin-bottom: 3px; /* reducido */
  font-size: 0.8rem; /* más pequeño */
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #00c3a5;
}

/* Lista de prácticas */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  margin-top: 10px; /* reducido */
  font-size: 0.7rem; /* más pequeño */
  color: #bbb;
}

/* Animación efecto de luz lenta */
@keyframes lightMove {
  0% { transform: rotate(0deg) translate(0, 0); }
  50% { transform: rotate(180deg) translate(5px, 5px); }
  100% { transform: rotate(360deg) translate(0, 0); }
}

/* Responsive */
@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}




/*--------------------------------------------------------------
# Preloader
-
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&display=swap');

      /* Fondo general del preloader */
      #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, #0d0d0d 0%, #1b1b1b 100%);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        overflow: hidden;
        transition: opacity 1s ease, visibility 1s ease;
      }

      /* Ocultar cuando carga */
      #preloader.hide {
        opacity: 0;
        visibility: hidden;
      }

      /* Logo */
      #preloader .logo-img {
        width: 130px;
        filter: brightness(1.2);
        animation: fadeIn 1.5s ease-in-out;
      }

      /* Textos */
      #preloader .slogan p {
        font-family: 'Cinzel', serif;
        margin: 0.3rem 0;
        color: #ffffff;
        font-size: 1.3rem;
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInUp 1s ease forwards;
      }

      #preloader .slogan .pulse {
        color: #00c3a5;
        font-weight: 600;
        letter-spacing: 1px;
        animation: pulseGlow 2s infinite;
      }

      /* Animaciones escalonadas */
      .delay1 { animation-delay: 0.4s; }
      .delay2 { animation-delay: 0.8s; }
      .delay3 { animation-delay: 1.2s; }
      .delay4 { animation-delay: 1.6s; }
      .delay5 { animation-delay: 2.2s; }

      /* Keyframes */
      @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(15px); }
        to { opacity: 1; transform: translateY(0); }
      }

      @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
      }

      @keyframes pulseGlow {
        0%, 100% { text-shadow: 0 0 5px #00c3a5, 0 0 10px #0078c3; opacity: 1; }
        50% { text-shadow: 0 0 20px #00c3a5, 0 0 30px #00c3a5; opacity: 0.8; }
      }
/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--default-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* Estilos para las cards de empresas asociadas */
.card {
  margin: 10px; /* Margen alrededor de las cards */
  padding: 15px; /* Padding para mejor presentación */
  max-width: 150px; /* Tamaño máximo de las cards */
  height: auto; /* Altura ajustable según el contenido */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
  border-radius: 10px; /* Bordes más suaves */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición suave para efectos */
}

.card-hover:hover {
  transform: scale(1.05); /* Escala ligera al pasar el mouse */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada en hover */
}

.card-img {
  max-width: 100%;
  max-height: 60px; /* Tamaño máximo de los íconos */
  object-fit: contain;
}

.card-body {
  padding: 0;
}

/* Centrar el contenido */
.row.justify-content-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ajustes de espaciado entre secciones */
#services, #mission-vision, #empresas-asociadas {
  margin-bottom: 0;
  padding-bottom: 0;
}
/* Asegúrate de que la sección 'Empresas Asociadas' no tenga margen ni padding inferior innecesario */
#empresas-asociadas {
  margin-bottom: 10px !important; /* Elimina el margen inferior */
  padding-bottom: 10px !important; /* Elimina el padding inferior */
}

/* Asegúrate de que no haya conflicto con la clase .services */
#empresas-asociadas .section-title {
  margin-bottom: 10px !important; /* Elimina el margen inferior del título en la sección 'Empresas Asociadas' */
}

/* Asegúrate de que no haya padding aplicado a la sección 'Empresas Asociadas' */
#empresas-asociadas .container {
  padding-bottom: 10px !important; /* Elimina el padding inferior del contenedor */
}

/* Ajusta el margen y padding del título 'Empresas Asociadas' si es necesario */
#empresas-asociadas h2 {
  margin-bottom: 10px !important; /* Ajusta el margen inferior del título según sea necesario */
}

/* Estilos del modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Fondo más oscuro para mejorar el contraste */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto; /* Permitir scroll si el contenido es largo */
}

.modal-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  width: 90%; /* Ajusta el ancho del modal */
  max-width: 800px; /* Ancho máximo en pantallas grandes */
  margin: 0 10px; /* Añadido margen para evitar el contacto con los bordes */
  max-height: 80vh; /* Limita la altura máxima del modal */
  overflow-y: auto; /* Permitir scroll dentro del modal si el contenido es largo */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Sombra para un efecto más elevado */
}

.close-btn {
  cursor: pointer;
  font-size: 24px;
  float: right;
  color: #007bff; /* Color del botón de cierre */
  transition: color 0.3s; /* Transición suave para el color */
}

.close-btn:hover {
  color: #ff0000; /* Cambiar a rojo en hover */
}

.modal-title {
  margin-bottom: 20px; /* Espacio entre el título y el contenido */
  font-size: 1.5rem; /* Tamaño de fuente del título */
  font-weight: bold; /* Hacer el título más destacado */
}

/* Media query para dispositivos pequeños */
@media (max-width: 576px) { /* Cambia este valor según tus necesidades */
  .modal-content {
    width: 95%; /* Ancho mayor para dispositivos pequeños */
    max-width: none; /* Desactiva el ancho máximo para pantallas pequeñas */
  }
}


/* Estilos de la sección de servicios */
.section-title h2 {
  text-align: center;
}

.card-item {
  border: 1px solid #ddd;
  position: relative; /* Necesario para el pseudo-elemento */
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

/* Estilos para el pseudo-elemento que crea el subrayado */
.card-item::after {
  content: ""; /* Crear el pseudo-elemento */
  position: absolute; /* Posicionamiento absoluto */
  left: -40px; /* Extender a la izquierda */
  right: -40px; /* Extender a la derecha */
  bottom: -15px; /* Posiciona el subrayado ligeramente debajo del contenido */
  height: 30px; /* Altura del efecto */
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 10"><path d="M0 5 Q 50 2, 100 5 Q 150 8, 200 5 V 10 H 0 Z" fill="none" stroke="%23177a7efb" stroke-width="4"/></svg>'); /* Mantener el mismo SVG */
  background-repeat: no-repeat; /* No repetir la imagen */
  background-size: 180% 100%; /* Escala completa de la imagen */
  transform: scaleX(0); /* Inicia invisible */
  transform-origin: left; /* La animación comienza desde la izquierda */
  transition: transform 1s ease; /* Transición suave */
}

/* Efecto al pasar el cursor en desktop */
.card-item:hover::after {
  transform: scaleX(1); /* Activa el subrayado en hover */
}

/* Para activar el efecto automáticamente en pantallas móviles */
.card-item.active::after {
  transform: scaleX(1); /* Aplica el subrayado cuando el elemento es visible */
}


.card-bg {
  background: #f8f9fa;
  padding: 20px;
  text-align: center;
}

.card-title {
  font-size: 1.25rem;
  margin: 0;
}

.card-body {
  padding: 5px;
}

.more-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.more-link:hover {
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Estilos para Títulos H2
--------------------------------------------------------------*/




.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 60px 0;
  text-align: center;
  position: relative;
  text-align: left;
}

.page-title:before {
  content: "";
  background-color: color-mix(in srgb, var(--background-color), transparent 40%);
  position: absolute;
  inset: 0;
}

.page-title h1 {
  font-size: 56px;
  font-weight: 500;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 92px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 76px;
  }
}


/*--------------------------------------------------------------
# Estilos para Títulos H2 con Efecto Gráfico
--------------------------------------------------------------*/

.section-title {
  position: relative; /* Para el posicionamiento del pseudo-elemento */
}
/* === HERO SECTION UNIFICADO PARA TODAS LAS PÁGINAS === */
.contact-hero {
  text-align: center;
  padding: 15px 20px 60px; /* Mismo padding superior */
  color: #293e58;
  background: #f8f9fa;
}

.contact-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 5vw, 2.5rem); /* Escala automáticamente según ancho de pantalla */
  font-weight: 600;
  margin-bottom: 1rem;
  color: #293e58;
  white-space: nowrap; /* Evita que se divida en dos líneas */
  overflow: hidden;
  text-overflow: ellipsis; /* Previene desbordes si el texto es muy largo */
}

.contact-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* Ajustes responsivos adicionales */
@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .contact-hero p {
    font-size: 1rem;
    padding: 0 10px;
  }
}

/* Divider consistente */
.divider {
    width: 70px;
    height: 3px;
    background: #293e58;
    margin: 0 auto 20px auto;
}
      

.custom-padding {
  padding-top: 40px; /* Ajusta el valor según tus necesidades */
}



/* Aplicar el efecto al párrafo */
.section-title p {
  font-size: 18px; /* Tamaño del texto del párrafo */
  color: #333; /* Color del texto del párrafo */
  margin-top: 0; /* Sin margen superior */
  position: relative; /* Para el posicionamiento del pseudo-elemento */
}
/* === SECCIÓN FERNÁNDEZ & CÍA - EFECTOS LENTOS === */
.fernandez-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    padding: 100px 0;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
    animation: polygonMove 15s ease-in-out infinite alternate;
    font-family: 'Cinzel', serif;
}

.fernandez-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
  font-family: 'Cormorant Garamond', serif;
}

/* Título principal con efectos más lentos */
.fernandez-section .section-header h2 {
    font-family: 'Cinzel', serif !important;
    font-size: 1.7rem;
    font-weight: 500;
    color: #293e58;
    margin-bottom: 20px;
    letter-spacing: 2px;
    transition: all 0.8s ease;
    position: relative;
    display: inline-block;
    text-align: center;
}

.fernandez-section .section-header h2:hover {
    color: #183458;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(0, 92, 215, 0.3);
}

/* Divider animado más lento */
.fernandez-section .divider {
    width: 100px;
    height: 4px;
    margin: 0 auto 40px;
    border-radius: 2px;
    background: linear-gradient(90deg, #005CD7, #111111);
    transition: all 1s ease;
}

.fernandez-section .section-header:hover .divider {
    width: 120px;
}

/* Descripción con animación más lenta */
.fernandez-description {

    text-align: justify; /* ✅ Justifica todo el texto */
}

.fernandez-description p {
  font-family: 'Cormorant Garamond', serif;

    font-size: 1.7rem;
    margin-bottom: 1.4em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 2.5s ease forwards;
    transition: all 0.8s ease;
    color: #111111;
    font-weight: 200;
    text-align: justify; /* ✅ Asegura que todos los párrafos estén justificados */
}


.fernandez-description p:hover {
    color: #005CD7;
    transform: translateY(-5px) scale(1.02);
    text-shadow: 0 0 10px rgba(0,92,215,0.2);
}

/* Delays más largos para la animación escalonada */
.fernandez-description p:nth-child(1) { 
    animation-delay: 0.8s;
}

.fernandez-description p:nth-child(2) { 
    animation-delay: 1.6s;
}

/* Animaciones más lentas */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes polygonMove {
    0% { 
        clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%); 
    }
    50% { 
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%); 
    }
    100% { 
        clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%); 
    }
}
/* Asegurar que todas las cards tengan la misma altura */
.card-practica {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Resaltar títulos */
.card-practica h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #293e58; /* color destacado */
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* Cuerpo del card ocupa todo el espacio restante */
.card-practica .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Párrafos dentro del card */
.card-practica p {
  flex: 1; /* hace que el contenido se distribuya de manera uniforme */
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1b1b1b;
}

/* Efecto hover opcional */
.card-practica:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ajustes responsivos */
@media (max-width: 992px) {
  .card-practica {
    height: auto; /* 
  }
}

/* Fondo poligonal más lento */
.fernandez-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(41, 62, 88, 0.05) 0%, transparent 70%);
    animation: lightMove 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes lightMove {
    0% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(180deg) translate(10px, 10px); }
    100% { transform: rotate(360deg) translate(0, 0); }
}

/* Efectos de entrada para AOS más lentos */
[data-aos] {
    transition-duration: 2000ms !important; /* 2 segundos para AOS */
}

[data-aos][data-aos][data-aos-delay="200"] {
    transition-delay: 400ms !important; /* Delays duplicados */
}

[data-aos][data-aos][data-aos-delay="400"] {
    transition-delay: 800ms !important;
}

[data-aos][data-aos][data-aos-delay="600"] {
    transition-delay: 1200ms !important;
}

/* Responsive */
@media (max-width: 991px) {
    .fernandez-section { 
        padding: 80px 0; 
        clip-path: none; 
        animation: none; /* Desactivar animación en móviles para mejor rendimiento */
    }
    
    .fernandez-section .section-header h2 { 
        font-size: 1.5rem; 
    }
    
    .fernandez-description p { 
        font-size: 1.1rem; 
    }
    
    /* Animaciones más rápidas en móviles */
    .fernandez-description p {
        animation: fadeInUp 1.5s ease forwards;
    }
}

@media (max-width: 767px) {
    .fernandez-section .section-header h2 { 
        font-size: 1.5rem; 
    }
    
    .fernandez-description p { 
        font-size: 1rem; 
        text-align: left; 
    }
    
    .fernandez-section .section-header h2 {
        transition: all 0.5s ease; /* Transición más rápida en móviles */
    }
    
    .fernandez-section .divider {
        transition: all 0.6s ease;
    }
    
    .fernandez-description p {
        transition: all 0.5s ease;
    }
}

/* Clases de utilidad para textos */
.text-center {
    text-align: center !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Smooth scrolling para toda la página */
html {
    scroll-behavior: smooth;
}

/* Mejoras de rendimiento para animaciones */
.fernandez-section {
    will-change: transform, clip-path;
}

.fernandez-section .section-header h2 {
    will-change: transform, color;
}

.fernandez-description p {
    will-change: transform, opacity;
}

/*--------------------------------------------------------------
# Get Started Section
--------------------------------------------------------------*/
.get-started .content {
  padding: 30px 0;
}

.get-started .content h3 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 25px;
  position: relative;
}

.get-started .content h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.get-started .content p {
  font-size: 14px;
}

.get-started .php-email-form {
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  padding: 30px;
  height: 100%;
}

@media (max-width: 575px) {
  .get-started .php-email-form {
    padding: 20px;
  }
}

.get-started .php-email-form h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.get-started .php-email-form p {
  font-size: 14px;
  margin-bottom: 20px;
}

.get-started .php-email-form input[type=text],
.get-started .php-email-form input[type=email],
.get-started .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 20%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.get-started .php-email-form input[type=text]:focus,
.get-started .php-email-form input[type=email]:focus,
.get-started .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.get-started .php-email-form input[type=text]::placeholder,
.get-started .php-email-form input[type=email]::placeholder,
.get-started .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.get-started .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 4px;
}

.get-started .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# servicios Section
--------------------------------------------------------------*/
.servicios .card-item {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  position: relative;
  border-radius: 0;
}


.servicios .card-item .card-bg {
  min-height: 300px;
  position: relative;
}

.servicios .card-item .card-bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.servicios .card-item .card-body {
  padding: 30px;
}

.servicios .card-item h4 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
}

.servicios .card-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}



/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  padding: 40px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.services .service-item .icon {
  width: 48px;
  height: 48px;
  position: relative;
  margin-bottom: 50px;
}

.services .service-item .icon i {
  color: var(--heading-color);
  font-size: 56px;
  transition: ease-in-out 0.3s;
  z-index: 2;
  position: relative;
}

.services .service-item .icon:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: color-mix(in srgb, var(--heading-color), transparent 95%);
  border-radius: 50px;
  z-index: 1;
  top: 10px;
  right: -20px;
  transition: 0.3s;
}

.services .service-item h3 {
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  font-size: 22px;
  position: relative;
  display: inline-block;
  border-bottom: 4px solid color-mix(in srgb, var(--heading-color), transparent 90%);
  transition: 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item .readmore {
  margin-top: 15px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.services .service-item:hover .icon i {
  color: var(--heading-color);
}

.services .service-item:hover .icon:before {
  background: var(--accent-color);
}

.services .service-item:hover h3 {
  border-color: var(--accent-color);
  color: var(--heading-color);
}

.services .service-item:hover .readmore {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Alt Services Section
--------------------------------------------------------------*/
.alt-services .features-image {
  position: relative;
  min-height: 400px;
}

.alt-services .features-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.alt-services h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.alt-services h3:after {
  content: "";
  background: var(--accent-color);
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  left: 0;
  bottom: 0;
}

.alt-services .icon-box {
  margin-top: 50px;
}

.alt-services .icon-box i {
  color: var(--accent-color);
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  line-height: 0;
  box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.alt-services .icon-box:hover i {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.alt-services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
}

.alt-services .icon-box h4 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.alt-services .icon-box h4 a:hover {
  color: var(--accent-color);
}

.alt-services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .nav-tabs {
  border: 0;
}

.features .nav-link {
  color: var(--heading-color);
  padding: 15px 0;
  transition: 0.3s;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 100%;
  border: 0;
  border-bottom: 4px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.features .nav-link i {
  padding-right: 15px;
  font-size: 48px;
}

.features .nav-link h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 575px) {
  .features .nav-link h4 {
    font-size: 16px;
  }
}

.features .nav-link:hover {
  color: var(--accent-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.features .nav-link.active {
  background-color: var(--background-color);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.features .tab-content {
  margin-top: 30px;
}

.features .tab-pane h3 {
  color: var(--heading-color);
  font-weight: 700;
  font-size: 32px;
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.features .tab-pane h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.features .tab-pane ul {
  list-style: none;
  padding: 0;
}

.features .tab-pane ul li {
  padding-top: 10px;
}

.features .tab-pane ul i {
  font-size: 20px;
  padding-right: 4px;
  color: var(--accent-color);
}

.features .tab-pane p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.projects .portfolio-filters {
  padding: 0;
  margin: 0 auto 40px auto;
  list-style: none;
  display: flex; /* Usa flexbox para alinear los ítems */
  flex-wrap: wrap; /* Permite que los ítems se envuelvan */
  justify-content: flex-start; /* Alinea los ítems a la izquierda */
  text-align: center;
}

.projects .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px; /* Agrega un relleno para mejorar la apariencia */
  font-size: 18px;
  font-weight: 500;
  margin: 5px 10px; /* Mayor margen para la separación entre ítems */
  line-height: 1;
  border-radius: 5px; /* Bordes redondeados */
  background-color: #e0f4e9; /* Fondo verde claro */
  transition: all 0.3s ease-in-out;
}

/* Ajuste para alinear los filtros cuando se envuelven a la siguiente línea */
@media (max-width: 575px) {
  .projects .portfolio-filters li {
    font-size: 14px;
    margin: 5px 8px; /* Ajusta el margen para dispositivos móviles */
  }
}

.projects .portfolio-filters li:hover,
.projects .portfolio-filters li.filter-active {
  color: var(--accent-color);
  background-color: #c1e4d8; /* Fondo verde más oscuro cuando se activa o se pasa el ratón */
}

.projects .portfolio-filters li:first-child {
  margin-left: 0;
}

.projects .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .projects .portfolio-filters li {
    font-size: 14px;
    margin: 0 10px; /* Ajusta el margen para dispositivos móviles */
  }
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.portfolio-item {
  width: 100%;
  max-width: 400px; /* Ajusta el tamaño máximo del contenedor */
  height: 450px; /* Ajusta la altura fija del contenedor (aumenta si es necesario) */
  margin-bottom: 20px; /* Espaciado inferior para separar los elementos */
  margin-right: 15px; /* Reduce el margen derecho entre contenedores */
  margin-left: 15px; /* Reduce el margen izquierdo entre contenedores */
}

/* Contenedor del contenido de la tarjeta */
.portfolio-content {
  height: 100%; /* Ocupa toda la altura del contenedor padre */
  position: relative; /* Para posicionar correctamente el caption */
  overflow: hidden; /* Oculta cualquier contenido que se salga del contenedor */
}

/* Estilo de la imagen */
.portfolio-content img {
  width: 100%;
  height: 300px; /* Aumenta la altura de la imagen */
  object-fit: cover; /* La imagen cubrirá el contenedor manteniendo la proporción */
  display: block; /* Asegura que la imagen se comporte como un bloque */
}

/* Contenedor de la leyenda */
.caption-content {
  display: flex;
  flex-direction: column; /* Apilar los elementos verticalmente */
  justify-content: space-between; /* Espacio entre los elementos */
  align-items: center; /* Centrar los elementos horizontalmente */
  height: auto; /* Ajusta la altura según el contenido */
  text-align: center; /* Centrar el texto dentro del contenedor */
  padding: 5px; /* Añade un poco de espacio interno si es necesario */
}

/* Estilo del enlace "Ver más" */
.more-details {
  display: inline-block; /* Permite el centrado en línea */
  margin-top: 10px; /* Espacio entre el span y el enlace */
  font-size: 16px; /* Ajusta el tamaño del texto si es necesario */
}

/* Elimina reglas no utilizadas */
.projects .portfolio-content .portfolio-info {
  display: none; /* Oculta el overlay si no es necesario */
}

.projects .portfolio-content:hover .portfolio-info {
  opacity: 1; /* Asegura que la leyenda sea visible al hacer hover */
}

.portfolio-caption h6, .portfolio-caption span, .portfolio-caption a {
  margin: 0; /* Elimina márgenes innecesarios */
  line-height: 1.5; /* Ajusta el interlineado */
}

.projects .portfolio-content:hover img {
  transform: scale(1.05); /* Escala la imagen al hacer hover */
  transition: transform 0.3s ease-in-out; /* Suaviza la transición del hover */
}



/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  margin-bottom: 0; /* Elimina el margen inferior de la sección "About" */
}

.about .inner-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 30px 0;
}

@media (min-width: 991px) {
  .about .inner-title {
    max-width: 100%; /* Asegura que el título use el ancho total */
    margin: 0 0 40px 0; /* Reduce el margen inferior en pantallas grandes */
  }
}

.about .our-story {
  padding: 20px; /* Reduce el padding de la sección de historia */
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
}

@media (min-width: 991px) {
  .about .our-story {
    padding-right: 0; /* Ajusta el padding a 0 en pantallas grandes */
  }
}

.about .our-story p {
  margin-bottom: 10px; /* Reduce el espaciado entre párrafos */
}

.about .watch-video {
  text-align: center; /* Centra el contenedor del video */
  margin-top: 10px; /* Reduce el margen superior */
}

.about .watch-video a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
  text-decoration: none;
}

.about .watch-video a:hover {
  color: var(--accent-color);
}

.about .watch-video i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-right: 8px;
}

.about .watch-video span {
  font-size: 1rem;
}

@media (min-width: 992px) {
  .about .about-img {
    display: none; /* Oculta la imagen ya que la vamos a reemplazar por el video */
  }
}



/*--------------------------------------------------------------
# Mision Vision Section
--------------------------------------------------------------*/
.mission-vision {
  margin-top: 0; /* Elimina el margen superior de la sección "Misión y Visión" */
  margin-bottom: 0; /* Elimina el margen inferior si es necesario */
  padding: 20px 0; /* Ajusta el padding superior e inferior */
}

.mission-vision .mission-vision-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  padding: 20px; /* Reduce el padding interno */
  margin-bottom: 10px; /* Reduce el margen inferior entre ítems */
}

@media (max-width: 992px) {
  .mission-vision .mission-vision-item {
    margin-bottom: 15px; /* Reduce el margen inferior en pantallas pequeñas */
  }
}


/*--------------------------------------------------------------

# Política de Gestión Section
--------------------------------------------------------------*/
.policy .policy-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 30px;
}

.policy .policy-list {
  list-style-type: none; /* Elimina los puntos de la lista */
  padding: 0; /* Asegura que no haya padding adicional */
  margin: 0; /* Asegura que no haya margen adicional */
}

.policy .policy-list li {
  margin-bottom: 10px;
  display: flex; /* Alinea los íconos y el texto */
  align-items: center;
  text-align: left;
}

.policy .policy-list i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  line-height: 1.2;
  color: var(--accent-color); /* Asegúrate de que esta variable esté definida */
}

.policy .policy-image img {
  width: 100%; /* Ajusta el tamaño de la imagen según el contenedor */
  height: auto; /* Mantiene la proporción de la imagen */
}

.policy .policy-image {
  text-align: center; /* Alinea la imagen al centro del contenedor */
}

@media (max-width: 992px) {
  .policy .policy-content {
    margin-bottom: 20px;
  }
}


/* Estilos generales para el contenido del overlay */
.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: center;
  z-index: 2;
  width: 80%;
  max-width: 1200px;
  padding: 20px;
}

/*--------------------------------------------------------------
# Stats Counter Section
--------------------------------------------------------------*/
.stats-counter .stats-item {
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  padding: 20px; /* Ajusta el padding según sea necesario */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra el contenido horizontalmente */
  text-align: center;  /* Alinea el texto en el centro */
  margin-bottom: 20px; /* Reduce el margen entre ítems */
}

.stats-counter .stats-item i {
  color: var(--accent-color);
  font-size: 64px; /* Tamaño del ícono */
  line-height: 1; /* Ajusta la altura de línea para alinear mejor los íconos */
  margin-bottom: 15px; /* Espacio debajo del ícono */
}

/* Ajusta el diseño en pantallas grandes (mayores a 992px de ancho) */
@media (min-width: 992px) {
  .stats-counter .row.gy-4 {
    justify-content: center; /* Centra las columnas en la fila */
    margin: 0; /* Elimina los márgenes negativos */
  }

  .stats-counter .col-lg-3 {
    padding: 0 10px; /* Ajusta el padding a los lados de cada columna */
    flex: 0 0 20%; /* Asegura que cada columna ocupe el 20% del ancho en pantallas grandes */
    max-width: 20%; /* Limita el ancho máximo a 20% en pantallas grandes */
  }
}

/* Ajusta el diseño en pantallas medianas (tabletas) */
@media (max-width: 991px) {
  .stats-counter .col-md-6 {
    flex: 0 0 50%; /* Asegura que cada columna ocupe el 50% del ancho en tabletas */
    max-width: 50%; /* Limita el ancho máximo a 50% en tabletas */
  }
}

/* Ajusta el diseño en pantallas pequeñas (celulares) */
@media (max-width: 575px) {
  .stats-counter .col-sm-12 {
    flex: 0 0 50%; /* Asegura que cada columna ocupe el 50% del ancho en celulares */
    max-width: 50%; /* Limita el ancho máximo a 50% en celulares */
  }

  .stats-counter .stats-item {
    text-align: center; /* Alinea el texto en el centro */
    margin: 0 auto 20px; /* Centra el elemento en su contenedor y ajusta el margen inferior */
  }

  .stats-counter .stats-item i {
    margin: 0 auto 15px; /* Centra el ícono horizontalmente y ajusta el margen inferior */
    display: block; /* Asegura que el ícono se comporte como un bloque para centrarlo */
  }
}


/*--------------------------------------------------------------
# Alt Services 2 Section
--------------------------------------------------------------*/
.alt-services-2 .features-image {
  position: relative;
  min-height: 400px;
}

.alt-services-2 .features-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.alt-services-2 h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.alt-services-2 .icon-box {
  margin-top: 30px;
}

.alt-services-2 .icon-box i {
  color: var(--accent-color);
  margin-right: 15px;
  font-size: 24px;
  line-height: 1.2;
}

.alt-services-2 .icon-box h4 {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 18px;
}

.alt-services-2 .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Features Cards Section
--------------------------------------------------------------*/

.card-large {
  height: calc(100% * 5); /* Ajusta la altura como prefieras */
}

.card-large .card-bg img {
  width: 100%;
  height: auto;
}

.card-large .card-body {
  padding: 30px;
}

.card-large .col-xl-5,
.card-large .col-xl-7 {
  flex: 1;
}


.features-cards h3 {
  font-size: 20px;
  font-weight: 700;
}

.features-cards p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.features-cards ul li {
  display: flex;
  align-items: center;
  font-size: 14px;
  padding-top: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.features-cards ul li i {
  font-size: 16px;
  color: var(--accent-color);
  margin-right: 6px;
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}
/*--------------------------------------------------------------
# Project Details Section
--------------------------------------------------------------*/
.project-details .portfolio-details-slider {
  max-width: 1000px; /* Tamaño máximo más pequeño para el contenedor del slider */
  max-height: 1000px;
  margin: 50px auto 10px; /* Centrar el contenedor con margen superior de 50px */
}

.project-details .portfolio-details-slider img {
  width: 100%;
  max-height: 100%;
  object-fit: cover; /* Asegura que la imagen ocupe el contenedor completo sin recortarse */
}

.project-details .swiper-wrapper {
  height: auto;
}

.project-details .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px; /* Aumentar altura del contenedor */
}

.project-details .swiper-button-prev,
.project-details .swiper-button-next {
  width: 40px;
  height: 40px;
}

.project-details .swiper-button-prev:after,
.project-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 20px; /* Aumentar tamaño de las flechas */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.project-details .swiper-button-prev:hover:after,
.project-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 575px) {
  .project-details .swiper-button-prev,
  .project-details .swiper-button-next {
    display: none;
  }
}

.project-details .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.project-details .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.project-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/* Información del Proyecto */
.project-details .portfolio-info {
  background-color: #f9f9f9; /* Fondo gris claro */
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 350px; /* Tamaño máximo del contenedor */
  margin: 30px; /* Eliminar margen para alinear con el slider */
}

.project-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  display: inline-block; /* Asegura que el subrayado abarque el texto completo */
}

.project-details .portfolio-info h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; /* Abarca todo el ancho del título */
  height: 3px;
  background: var(--accent-color); /* Color del subrayado */
  border-radius: 2px; /* Opcional: Añade un borde redondeado a la línea */
}


.project-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.project-details .portfolio-info ul li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-family: 'Saira', sans-serif; /* Fuente personalizada */
  color: #555; /* Color gris oscuro */
}

.project-details .portfolio-info ul li i {
  font-size: 24px; /* Tamaño del ícono */
  color: #82bc01; /* Color del ícono */
  margin-right: 10px;
}

.project-details .portfolio-info ul li a {
  color: #005cd7; /* Color del enlace */
  text-decoration: none;
}

.project-details .portfolio-info ul li a:hover {
  text-decoration: underline;
}

.project-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

.project-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.project-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.project-details .portfolio-description p {
  padding: 0;
}

.project-details .portfolio-description .testimonial-item {
  padding: 30px;
  position: relative;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
}

.project-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.project-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.project-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.project-details .portfolio-description .testimonial-item .quote-icon-left,
.project-details .portfolio-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.project-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.project-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.project-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .content h3 {
  font-weight: 400;
  font-size: 34px;
}

.faq .content p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
  margin: 0; /* Elimina los márgenes que hacen que el contenedor se expanda */
  padding: 0; /* Elimina el padding adicional */
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);

  .faq .faq-container .faq-item .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, visibility 0.3s, opacity 0.3s;
  }
  
  .faq .faq-container .faq-active .faq-content {
    max-height: 200px; /* Ajusta según el contenido */
    visibility: visible;
    opacity: 1;
  }
  
}
/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.blog-posts .post-img img {
  transition: 0.5s;
}

.blog-posts .post-date {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.blog-posts .post-content {
  padding: 30px;
}

.blog-posts .post-title {
  font-size: 20px;
  color: var(--heading-color);
  font-weight: 700;
  transition: 0.3s;
  margin-bottom: 15px;
}

.blog-posts .meta i {
  font-size: 16px;
  color: var(--accent-color);
}

.blog-posts .meta span {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-posts p {
  margin-top: 20px;
}

.blog-posts hr {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-bottom: 15px;
}

.blog-posts .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
}

.blog-posts .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.blog-posts article:hover .post-title,
.blog-posts article:hover .readmore {
  color: var(--accent-color);
}

.blog-posts article:hover .post-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Blog Pagination Section
--------------------------------------------------------------*/
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog-pagination li a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-pagination li a.active a,
.blog-pagination li a:hover a {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

/*--------------------------------------------------------------
# Blog Author Section
--------------------------------------------------------------*/
.blog-author {
  padding: 10px 0 40px 0;
}

.blog-author .author-container {
  background-color: var(--surface-color);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-author img {
  max-width: 120px;
  margin-right: 20px;
}

.blog-author h4 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 0px;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author .social-links {
  margin: 0 10px 10px 0;
}

.blog-author .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-right: 5px;
}

.blog-author p {
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding: 10px 0;
}

.blog-comments .comments-count {
  font-weight: bold;
}

.blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog-comments .comment .comment-img {
  margin-right: 14px;
}

.blog-comments .comment .comment-img img {
  width: 60px;
}

.blog-comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}

.blog-comments .comment h5 a:hover {
  color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-comments .comment h5 .reply i {
  font-size: 20px;
}

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply {
  padding-left: 40px;
}

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form {
  padding-top: 10px;
}

.comment-form form {
  background-color: var(--surface-color);
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-form form h4 {
  font-weight: bold;
  font-size: 22px;
}

.comment-form form p {
  font-size: 14px;
}

.comment-form form input {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  border-radius: 4px;
  padding: 10px 10px;
}

.comment-form form input:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  box-shadow: none;
  border-color: var(--accent-color);
}

.comment-form form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form textarea {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  height: 120px;
}

.comment-form form textarea:focus {
  color: var(--default-color);
  box-shadow: none;
  border-color: var(--accent-color);
  background-color: var(--surface-color);
}

.comment-form form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form .form-group {
  margin-bottom: 25px;
}

.comment-form form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.comment-form form .btn-primary:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.contact .info-item p {
  margin: 0;
  padding: 0;
}
.info-item {
  transition: transform 0.3s;
}
.contact .info-item p a {
  display: inline;
}

@media (max-width: 575px) {
  .contact .info-item p a {
    display: block;
    text-align: center;
  }
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  background-color: var(--surface-color);
  padding: 20px 0 30px 0;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 300px;
}
.contact .info-item p a {
  display: inline;
}

@media (max-width: 575px) {
  .contact .info-item p a {
    display: block;
    text-align: center;
  }
}

.contact .info-item i {
  font-size: 18px;
  color: var(--accent-color);
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  border: 2px dotted color-mix(in srgb, var(--accent-color), transparent 40%);
}

.contact .info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  max-width: 200px;
  word-wrap: break-word; /* Permitir que el texto largo se ajuste a nuevas líneas */
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.map-container {
  width: 100%;
  margin-top: 20px;
}

.contact-icons-container {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
}

@media (max-width: 767px) {
  /* Estilos para pantallas móviles */
  .contact-icons-container {
    flex-direction: column;
    align-items: center;
  }

  .contact .info-item {
    max-width: 100%;
    margin-bottom: 20px; /* Espacio entre ítems */
  }

  .contact .info-item i {
    margin-bottom: 10px; /* Separar icono del texto */
  }
  
  .contact .info-item p {
    max-width: 100%; /* Permitir que el texto ocupe todo el ancho disponible */
    text-align: center; /* Centrar el texto */
  }

  /* Ajustes adicionales para asegurar tamaños uniformes */
  .contact .info-item {
    width: 90%; /* Mantener un ancho uniforme para todos los ítems en móviles */
  }

  .contact .info-item h3, .contact .info-item p {
    font-size: 14px; /* Reducir el tamaño de fuente para asegurar consistencia */
  }
}



/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
  background-color: var(--surface-color);
  padding: 30px;
  margin: 60px 0 30px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.widget-item {
  margin-bottom: 40px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  padding: 3px 10px;
  position: relative;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}

.search-widget form button i {
  line-height: 0;
}

.search-widget form button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}

.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget ul li {
  padding-bottom: 10px;
}

.categories-widget ul li:last-child {
  padding-bottom: 0;
}

.categories-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.categories-widget ul a:hover {
  color: var(--accent-color);
}

.categories-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.recent-posts-widget .post-item {
  display: flex;
  margin-bottom: 15px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item img {
  width: 80px;
  margin-right: 15px;
}

.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.tags-widget {
  margin-bottom: -10px;
}

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li {
  display: inline-block;
}


.whatsapp-container {
  position: fixed;
  bottom: 20px; /* Ajusta esta distancia para la altura desde el fondo */
  display: flex;
  flex-direction: column; /* Coloca el texto debajo del ícono */
  align-items: center; /* Centra el ícono y el texto */
  background-color: transparent;
  z-index: 1000;
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Color verde característico de WhatsApp */
  border-radius: 50%; /* Hace el ícono circular */
  font-size: 30px; /* Tamaño del ícono */
  color: white; /* Color del ícono */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para darle profundidad */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-right: 30px; /* Desplaza el ícono a la izquierda */

}

.whatsapp-icon:hover {
  transform: scale(1.1); /* Efecto de aumento al pasar el cursor */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Sombra más intensa al hacer hover */
}

.whatsapp-text {
  margin-top: 8px; /* Espacio entre el ícono y el texto */
  font-size: 16px;
  color: #25D366;
  font-weight: 700;
  text-align: center; /* Centra el texto debajo del ícono */
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
  .whatsapp-container {
      bottom: 10px; /* Ajusta la distancia desde el fondo en dispositivos móviles */
  }

  .whatsapp-icon {
      width: 50px;
      height: 50px;
      font-size: 24px;
  }

  .whatsapp-text {
      font-size: 12px;
  }
}
