body, html {
  height: 100%;
}


h1, h2, h3, h4, h5, h6 {
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-optical-sizing: auto;
}
a{
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.9px;
  font-optical-sizing: auto;
}
.bgfooter{
  background-image:  url('../images/temixcoacuatico-piedepagina.png'); 
  background-repeat: no-repeat;
  background-position:  top center;
  background-size: cover;
}
.boxfooter{
  background-color: rgba(255, 255, 255, 0.5); /* White background with 50% opacity */
  color: black; /* Content color remains fully opaque */
}
.boxvideos{
  background-color: rgba(255, 159, 7, 0.8); /* White background with 50% opacity */
  -webkit-border-bottom-right-radius: 30px;
-moz-border-radius-bottomright: 30px;
border-bottom-right-radius: 30px;
}
a{
  text-decoration: none;
}
.card-ta {
  border-top-left-radius:50%; /* Redondea la esquina superior izquierda */
  border-top-right-radius: 50%; /* Redondea la esquina superior derecha */
  /* O puedes usar: */
  /* border-radius: 10px 10px 0 0; */ /* Aplica 10px a superior izquierda y derecha, y 0 a las inferiores */
}



p{
  font-size:16px;
}
/*Colores institucionales*/
.w3-text-green-ta,.w3-hover-text-green-ta:hover{
  color: #1cad9aff;
}
.w3-green-ta,.w3-hover-green-ta:hover{
  background-color: #1cad9aff !important;
  color: #FFFFFF !important;
}
.w3-border-green-ta,.w3-hover-border-green-ta:hover{border-color:#1cad9aff!important}
.w3-text-black-ta,.w3-hover-text-black-ta:hover{
  color: #242423ff;
}
.w3-black-ta,.w3-hover-black-ta:hover{
  background-color: #242423ff !important;
  color: #FFFFFF !important;
}

.w3-text-pink-ta,.w3-hover-text-pink-ta:hover{
  color: #dd489dff;
}
.w3-pink-ta,.w3-hover-pink-ta:hover{
  background-color: #dd489dff !important;
  color: #242423ff !important;
}

.w3-text-yellow-ta,.w3-hover-text-yellow-ta:hover{
  color: #f7c81fff;
}
.w3-yellow-ta,.w3-hover-yellow-ta:hover{
  background-color: #f7c81fff !important;
  color: #242423ff !important;
}

/* Contenedor padre centrado */
/* Tarjeta centrada */
.tarjeta-curso {
  width: 300px;
  overflow: hidden;
  
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  background: white;
  margin: 0 auto;
}

/* Imagen */
.imagen-container {
  position: relative;
  width: 100%;
  height: 200px;
}

.imagen-principal,
.imagen-secundaria {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease;
}

.imagen-secundaria {
  opacity: 0;
}

.tarjeta-curso:hover .imagen-secundaria {
  opacity: 1;
}

.tarjeta-curso:hover .imagen-principal {
  opacity: 0;
}

/* Contenido */
.contenido {
  position: relative;
  transition: all 0.4s ease;
}

.descripcion {
  margin: 0;
  transition: transform 0.4s ease;
}

.tarjeta-curso:hover .descripcion {
  transform: translateY(-10px);
}

.boton-vermas {
  display: none;
  transition: opacity 0.3s ease;
  

}

.tarjeta-curso:hover .boton-vermas {
  display: inline-block;
  opacity: 1;
}

.bgimg {
    background-image: url('../images/temixcoacuatico-principal.png');
    min-height: auto;}
.bgimg2 {
    background-image: url('../images/temixcacuatico-palmeras.png');
    min-height: auto;
  background-size: cover;}


#myNavbar li a {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-style: normal;
   font-optical-sizing: auto;

}
#myNavbar li.active a {
  color: #0541d9ff;
}

.w3-ul li {
  border-bottom: none !important;
  padding: 1px 2px;
}
ul ul {
  list-style-type: none !important;
} 

.w3-strong-ci{
  font-weight: 600;
}

/* For Mobile Portrait View */
@media screen and (max-device-width: 480px) {
  #rotador .w3-large{
    font-size:smaller !important;
  }
  #rotador .w3-xlarge{
    font-size:small !important;
  }
  #rotador .w3-xxlarge{
    font-size:large !important;
  }
  #rotador .w3-xxxlarge{
    font-size:larger !important;
  }
  #rotador .w3-jumbo{
    font-size:x-large !important;
  }
  h2,h3{
    line-height: inherit !important;
    padding-left: 0px !important;
    margin-left: 0px !important;
  }
  .w3-image-ps{
    max-width:241px; position:absolute;
  left:100px;
    z-index: 1; 
  }
  .w3-image2-ps{
    
    max-width:100%;height:auto;
  }
  .w3-min-height{
    min-height:250px;
  }
  .w3-display-right {
    position:relative !important;
    top:auto !important;
    right:auto !important;
    transform:none !important;
  }
  .w3-display-left {
    position:relative !important;
    top:auto !important;
    right:auto !important;
    transform:none !important;
  }
  .w3-display-bottomleft {
    position:relative !important;
    top:auto !important;
    right:auto !important;
  }
 
  
    .container .middle {
    opacity: 1;
    }
    .container .image {
      opacity: 0.5;
    }
    .container:hover .image {
      opacity: 1;
      }
}

.texto-rubik {
  font-family: "Rubik", sans-serif  !important; 
  font-size: 15px;
  line-height: 1.8;
}

.texto-rubik ol {
  font-family: "Rubik", sans-serif !important;
  color: #00587a !important;
}

.texto-rubik li {
  font-family: "Rubik", sans-serif !important;
  color: #00587a !important;
}

.texto-rubik ul {
  list-style: none;   /* quita los puntitos */
  padding-left: 0;    /* elimina la sangría */
  margin-left: 0;
}

/* ===== Corrección de textos en vista móvil ===== */
@media screen and (max-width: 480px) {

  /* Ajuste de los títulos del banner */
  .w3-display-middle h2 {
    font-size: 1.1rem !important;  /* Tamaño reducido */
    line-height: 1.3em !important; /* Espaciado entre líneas */
    margin: 8px 0 !important;      /* Espacio vertical */
    padding: 0 10px !important;    /* Un poco de margen interno */
  }

  /* Ajuste del texto en mayúsculas y centrado */
  .w3-display-middle h2 b {
    display: block;
    text-align: center;
  }

  /* Ajuste del span naranja */
  .w3-display-middle h2 span.w3-orange {
    display: inline-block;
    padding: 0 5px;
    font-size: 1.1rem;
  }

  /* Centrar todo el contenedor */
  .w3-display-middle {
    width: 100%;
    padding: 0 10px;
    text-align: center;
  }
}


/* ===== Corrección final: texto visible en móviles sin cambiar el diseño ===== */
@media screen and (max-width: 480px) {

  /* 🔹 Asegura que el texto no se recorte */
  .w3-display-container {
    height: auto !important;           /* Permite que crezca con el texto */
    overflow: visible !important;
  }

  /* 🔹 Evita que el texto quede oculto o fuera del área visible */
  .w3-display-topmiddle {
    overflow: visible !important;
    white-space: normal !important;
    text-align: center !important;
    width: 90% !important;
  }

  /* 🔹 Ajusta el tamaño de texto para que quepa sin cortar */
  .w3-display-topmiddle h2 {
    font-size: 1.1rem !important;
    line-height: 1.3em !important;
    margin: 4px 0 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6) !important;
  }

  /* 🔹 Asegura que los saltos de línea se respeten */
  .w3-display-topmiddle br {
    display: inline;
  }
}
