/* style.css - Estilos personalizados para Mela Ramírez */

:root {
    --color-primary: #6C91C2;
    --color-secondary: #F7B8A7;
    --color-accent: #5E8C61;
    --color-light: #F9F7F4;
    --color-dark: #2D2D2D;
    --color-gray: #666;
  }
  
  body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-dark);
    line-height: 1.7;
    background-color: #fff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--color-dark);
  }
  
  /* Hero Section */
  .hero {
    background: linear-gradient(rgba(249, 247, 244, 0.9), rgba(249, 247, 244, 0.5)), url('../images/hero-bg.jpg') center/cover no-repeat;
    padding: 120px 0 80px;
  }
  
  /* Botones */
  .btn-primary {
    background-color: var(--color-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
  }
  
  .btn-primary:hover {
    background-color: #5a7aa8;
    transform: translateY(-2px);
    transition: all 0.3s ease;
  }
  
  .btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: white;
  }
  
  .btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: #fff;
  }
  
  /* Títulos de sección */
  .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    bottom: -10px;
    left: 0;
  }
  
  /* Tarjetas de cursos */
  .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
  
  .card-img-top {
    height: 200px;
    object-fit: cover;
  }
  
  /* Iconos de pasos */
  .icon-step {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
  }
  
  /* Redes sociales */
  .social-link {
    text-decoration: none;
    color: var(--color-gray);
    font-weight: 600;
  }
  
  .social-link i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
  }
  
  .social-link:hover i {
    transform: scale(1.2);
    color: var(--color-primary);
  }
  
  /* Footer */
  footer {
    background-color: var(--color-light);
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--color-gray);
  }
  
  /* WhatsApp Flotante */
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  .whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
  }
  
  /* Imágenes redondeadas */
  .img-fluid.rounded {
    border-radius: 12px !important;
  }
  
  /* Espaciado */
  .py-5 { padding-top: 4rem; padding-bottom: 4rem; }
  .mb-5 { margin-bottom: 4rem; }

  
  /* Asegurar que el contenedor del enlace tenga posición relativa */
  .nav-link {
    position: relative;
    padding: 0.5rem 0 !important;
    display: inline-block;
  }

  /* Línea animada debajo del texto */
  .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px; /* Ajusta esta medida para subir o bajar la línea */
    width: 0;
    height: 2px;
    background-color: #6C91C2; /* Color azul suave */
    transition: width 0.3s ease;
  }

  /* Expandir la línea al hacer hover */
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  /* Opcional: cambiar color del texto al hacer hover */
  .nav-link:hover {
    color: #6C91C2 !important;
  }

  /* Asegurar que el ícono y texto no se desalineen */
  .nav-link i {
    transition: color 0.3s ease;
  }

  .nav-link:hover i {
    color: #6C91C2;
  }

  .no-deco{
    text-decoration: none;
  }

  .negrita{
    font-weight: bold;
  }

  .boton-reserva{
    background: linear-gradient(to bottom, #ffc439, #ffdd00);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 206, 0, 0.4) !important;
    transition: all 0.3s ease;
    min-width: 280px;
  }

  .boton-reserva:hover{
    background: linear-gradient(to bottom, #ffdd00, #e6c200);
  }

  .boton-reserva:active{
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 206, 0, 0.5) !important;
  }

  .sombra-titulo{
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  #paypal-button-container {
    min-height: 250px !important;
    width: 100%;
  }


  /* Asegurar que el dropdown se muestre correctamente */
  .dropdown-menu {
    margin-top: 0.1rem;
    border-radius: 8px;
    border: none;
    overflow: hidden;
  }

  .dropdown-item {
    padding: 0.7rem 1rem;
    transition: background-color 0.2s ease;
  }

  .dropdown-item:hover,
  .dropdown-item.active {
    background-color: #f8f9fa;
    color: #6C91C2;
  }

  /* Hover en escritorio */
  @media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
      display: block;
    }
    .dropdown .dropdown-toggle {
      pointer-events: auto;
    }
  }



  /* En móviles, asegurar que no se colapse */
  @media (max-width: 768px) 
  {
    #paypal-button-container 
    {
      min-height: 250px !important;
      height: 100%;
      width: 90%;
      display: block;
    }


  /* En móviles, no usar hover */
    /*.dropdown .dropdown-menu 
    {
      display: none;
    }
    .dropdown.show .dropdown-menu 
    {
      display: block;
    }*/
  
  /*Fin menu*/
  }
 
  /* Responsive: en móvil, centrar los ítems */
  @media (max-width: 992px) 
  {
    .nav-link {
      justify-content: center;
    }
    .nav-link::after {
      bottom: 4px; /* Ajuste fino para móviles */
    }
  }
