/*=== MEDIA QUERY ===*/
@import url("https://fonts.googleapis.com/css?family=Barlow+Condensed:400,500,600,700|Montserrat|Poppins:400,500,600,700");

body {
  
  font-family: "Montserrat", sans-serif;
  padding-top: 56px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  background-color: #cfe5f6;
  text-decoration: none !important;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: #232323;
  letter-spacing: 0.5px;
  font-weight: 700 !important;
}

h1, .h1 {
  font-size: 44px;
  text-transform: uppercase;
}

h2, .h2 {
  font-size: 38px;
  text-transform: uppercase;
}

h3, .h3 {
  font-size: 28px;
  line-height: 38px;
  text-transform: uppercase;
}

h4, .h4 {
  font-size: 22px;
  line-height: 30px;
}

h5, .h5 {
  font-size: 18px;
  line-height: 24px;
}

h6, .h6 {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 400;
}

.font-primary {
  font-family: "Barlow Condensed", sans-serif;
}

.font-secondary {
  font-family: "Montserrat", sans-serif;
}
p{
  font-size: 14px !important;
}

a{
  text-decoration: none;
}

.navbar-toggle .icon-bar {
  background: rgb(161, 27, 7);
}
.text-color{
  color: #e64c4c;
}
.logotipo{
  width: 100%;
  max-width: 220px;
}
/* carrusel nuevo */
.d-item{
  height: 500px;
}
.d-img{
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}
.video-ok{
  max-height: 350px;
}
.contenedor{
  max-width: 900px;
}

/* tarjetas o card con efecto */

.tarj{
  width: 100%;
  max-width: 280px;
  height: 225px;
  background: #d2e5fc;
  
  box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.5);
  transition: 0.5s ease-in-out;
}
.tarj:hover{
  transform: translateY(20px);
}
.tarj::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,176,155,0.5), rgba(150,201,61,1));
  z-index: 2;
  transition: 0.5s all;
  opacity: 0;
}
.tarj:hover:before{
  opacity: 1;
}
.tarj img{
  width: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.tarj .info{
  
  z-index: 3;
  color: #fff;
  opacity: 0;
  transform: translate(30px);
  transition: 0.5s all;
  padding: 10px;
}
.tarj:hover .info{
  opacity: 1;
  transform: translateY(0px);
}
.tarj .info .btn{
  padding: 0.5rem 1rem;
  background: #b01010;
  color: #bbbbbb;
  font-weight: bold;
  cursor: pointer;
  transition: 0.4s ease-in-out;
}
.tarj .info .btn:hover{
  box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.5);
}

/* baner de las siguientes paginas */

.page-title {
  padding: 155px 0 100px;
}
.bg-1 {
  background: url("../images/bg/bg-image-2-3.jpg") no-repeat;
  background-size: cover;
}
.bg-2 {
  background: url("../images/bg/bg-image-2-1.jpg") no-repeat;
  background-size: cover;
}
.bg-3 {
  background: url("../images/bg/bg-cta2.jpg") no-repeat;
  background-size: cover;
}
.bg-4 {
  background: url("../images/bg/bg-image-2-2.jpg") no-repeat;
  background-size: cover;
}
.fotos-1 img{
  width: 100%;
  max-width: 220px;
}

/* texto al lado de imagen */
.wrapper img{
  max-width: 170px;
  float: left;
  margin-right: 15px;
}

/* error en formulario */
#success, #error {
  display: none;
}


/* css de los últimos videos subidos */
/* Estilos generales */

.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.header__logo img {
    height: 60px;
}

/* Menú desktop */
.nav__list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #c00;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger__bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s;
}

/* Sección Hero */
.hero {
    margin-top: 80px;
    height: 80vh;
    min-height: 600px;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1555597673-b21d5c935865?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8a2FyYXRlfGVufDB8fDB8fHww');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.hero__content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__description {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero__cta {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: #c00;
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero__cta:hover {
    background-color: #a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Sección Training */
.training {
    padding: 5rem 2rem;
    background: #c0d6de;
}

.training__container {
    max-width: 1200px;
    margin: 0 auto;
}

.training__title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.training__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.training__card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.training__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.training__icon {
    font-size: 2.5rem;
    color: #c00;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.training__card:hover .training__icon {
    transform: scale(1.1);
}

.training__subtitle {
    color: #333;
    margin: 1rem 0;
    font-size: 1.25rem;
}

.training__text {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Sección Videos */
/*.videos {
    padding: 5rem 2rem;
    background: #fff;
}

.videos__container {
    max-width: 1200px;
    margin: 0 auto;
}

.videos__title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video__card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video__wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
}

.video__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
*/

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer__social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social__link {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
    padding: 0.5rem;
}

.social__link:hover {
    color: #c00;
    transform: translateY(-3px);
}

.footer__credits {
    text-align: center;
    line-height: 1.6;
}

.footer__text {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #ccc;
}

.highlight {
    color: #c00;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer__social {
        gap: 1rem;
    }
    
    .social__link {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .footer__container {
        gap: 1.5rem;
    }
    
    .footer__social {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .videos__title {
        font-size: 2rem;
    }
    
    .videos__grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .videos {
        padding: 3rem 1rem;
    }
    
    .videos__title {
        font-size: 1.75rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .training__title {
        font-size: 2rem;
    }
    
    .training__grid {
        gap: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__description {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .hero__cta {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero__title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero__description {
        font-size: 1rem;
    }
}

/* Aqui va el css nuevo */

        .container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
        }
        
        .videos {
            padding: 2rem 2rem;
            background: #758ec4;
        }
        .videos__title {
            text-align: center;
            font-size: 2.5rem;
            color: #333;
            margin-bottom: 2rem;
            text-transform: uppercase;
}
        .main-content {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        .video-card {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        .video-thumbnail {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            background-size: cover;
            background-position: center;
        }
        .video-thumbnail img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .video-info {
            padding: 15px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .video-title {
            font-size: 1.5em;
            font-weight: bold;
            margin-bottom: 5px;
            color: #1e1e1e;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .video-description {
            font-size: 1.2em;
            color: #666;
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            flex-grow: 1; /* Para que ocupe el espacio disponible */
        }
        .video-stats {
            font-size: 0.85em;
            color: #888;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .views {
            font-weight: bold;
        }
        .channel-info {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            background-color: #e0e0e0;
            border-radius: 8px;
        }
        .channel-info h2 {
            color: #1e1e1e;
            margin-bottom: 10px;
        }
        .channel-info p {
            color: #555;
            margin-bottom: 20px;
        }
        .channel-link {
            display: inline-block;
            background-color: #ff0000;
            color: #fff;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }
        .channel-link:hover {
            background-color: #cc0000;
        }
        footer {
            text-align: center;
            padding: 20px;
            margin-top: 40px;
            background-color: #1e1e1e;
            color: #bbb;
            font-size: 0.9em;
        }

        /* Estilos para agregar un botón de "Play" al thumbnail */
        .video-thumbnail::before {
            content: '\25B6'; /* Código Unicode para el triángulo de play */
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 3em;
            color: rgba(255, 255, 255, 0.8);
            text-shadow: 0 0 10px rgba(0,0,0,0.5);
            z-index: 1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .video-card:hover .video-thumbnail::before {
            opacity: 1;
        }

        /* Responsive */
        @media (max-width: 768px) {
            header h1 {
                font-size: 2em;
            }
            .main-content {
                grid-template-columns: 1fr;
            }
        }
        /* hasta aqui el css nuevo */

/* Responsive */
@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }
    
    .nav__list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav__list.active {
        max-height: 500px;
    }
    
    .nav__item {
        text-align: center;
        padding: 1rem;
    }
    
    .hamburger.active .hamburger__bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .hamburger__bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger__bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

