/* ============================= Banner Principal ============================= */
.start-banner {
    position: relative;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #1e81b0, #73c2fb);
    margin-top: 50px;
}

.background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 1;
    
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner-title {
    font-family: 'Caveat', cursive; 
    font-size: 4rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fade-slide-in 1.5s ease-out forwards; 
}

.banner-subtitle {
    font-family: 'Caveat', cursive; 
    font-size: 2rem;
    font-weight: 400;
    color: white;
    margin-top: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fade-slide-in 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

/* ============================= Animaciones ============================= */
@keyframes fade-slide-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= Innovación y Video Mejorado ============================= */
#innovacion-video {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#innovacion-video h2 {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.video-proyecto {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
}

.content-box {
    font-family: 'Oswald', sans-serif;
    background: white;
    border-left: 4px solid #0056b3; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.content-box h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #0056b3;
}

.content-box p {
    font-size: 1.5rem;
    color: #333;
    line-height: 1.6;
}

.content-box .btn {
    background: #0056b3;
    color: white;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.content-box .btn:hover {
    background: #003f7f;
    transform: scale(1.05);
}

/* ============================= Estilo de Tarjetas ============================= */
.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 250px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flip-card-front {
    z-index: 2;
}

.flip-card-back {
    transform: rotateY(180deg);
    z-index: 1;
}



/* ============================== Ajustar el carrusel ============================== */
.carousel-inner {
    display: flex;
    align-items: center;
}

.carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item .d-flex {
    gap: 20px;
}

/* ============================== Estilo de las Tarjetas ============================== */
.card-recomendado {
    font-family: 'Oswald', sans-serif;
    background: rgb(24, 59, 82);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100px;
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-recomendado:hover {
    font-family: 'Oswald', sans-serif;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.card-recomendado h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}
/* ============================== Botón Ver ============================== */
.btn-ver {
    background: #ffffff;
    color: #183b52;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-ver:hover {
    background: #003f7f;
    transform: scale(1.1);
}

/* ============================== Flechas del Carrusel ============================== */
.flecha-carrusel {
    width: 80px;
    height: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    opacity: 0.8;
}

.recomendados-prev {
    left: -20px;
}

.recomendados-next {
    right: -20px;
}

.flecha-carrusel:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}


/* ============================== Tamaño de la imagen en el modal ============================== */
.img-grande {
    width: 90%;
    max-width: 600px;
}


/* ============================= Sección de Contacto ============================= */
.contacto-section {
    font-family: 'Oswald', sans-serif;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #f5f9fc, #e3eff8);
    border-radius: 15px;
}

.contact-card {
    border: 1px solid #ddd;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0056b3;
}

.contact-card p {
    font-size: 1rem;
    color: #666;
}

.contact-card .form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

.contact-card .form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}

.contact-card .btn-submit {
    background: #0056b3;
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.contact-card .btn-submit:hover {
    background: #004494;
}

@media (max-width: 992px) {
    .banner-title {
      font-size: 2.5rem;
    }
  
    .banner-subtitle {
      font-size: 1.3rem;
    }
  
    .carousel-item .d-flex {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 15px;
      justify-content: center;
    }
  
    .card-recomendado {
      width: 80%;
      height: auto;
    }
  
    .flip-card {
      height: 200px;
    }
  
    .content-box h3 {
      font-size: 1.5rem;
    }
  
    .content-box p {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 576px) {
    .banner-title {
      font-size: 2rem;
    }
  
    .banner-subtitle {
      font-size: 1.1rem;
    }
  
    .card-recomendado {
      width: 100%;
      padding: 1rem;
    }
  
    .flip-card {
      height: 180px;
    }
  
    .flecha-carrusel {
      width: 40px;
    }
  
    .video-proyecto {
      width: 100%;
    }
  
    .content-box h3 {
      font-size: 1.2rem;
    }
  
    .content-box p {
      font-size: 0.9rem;
    }
  }

  /* Ajuste responsivo */
  @media (max-width: 768px) {
    .flip-card {
      width: 90%;
      max-width: 300px;
      height: auto; 
      margin: 0 auto 1.5rem auto;
    }
  
    .flip-card-inner {
      aspect-ratio: 16 / 9; 
      width: 100%;
      height: auto;
    }
  
    .flip-card-front,
    .flip-card-back {
      height: 100%;
      background-size: contain; 
      background-repeat: no-repeat;
      background-position: center;
    }

    #innovacion-video h2 {
        font-size: 28px;
    }
    
    .start-banner {
        height: 150px;
        margin-top: 05px;
    }
    
    .background-image {
        width: 100%;
        height: 100%;
    }
}