/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 1000;
}

/* Contenedor */
.header-container {
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* izquierda - centro (logo) - derecha */
    align-items: center;
}

/* Grupos izquierdo y derecho */
.header-left-group,
.header-right-group {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.header-left-group{
    padding-right: 40px;
}

.header-right-group{
    padding-left: 40px;
}
.header-left,
.header-right {
    display: flex;
    gap: 50px;
}

/* Estilo base de los enlaces */
.menu-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    color: white;
    font-weight: normal;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header.white-bg .menu-item {
    color: #3a3a3a; /* gris oscuro */
}

.menu-item:hover {
    color: #FF0030 !important;
}

.menu-item:hover .arrowH {
    color: #FF0030;
    transform: rotate(360deg);
}


/* Flechas */
.arrowH {
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-item:hover .arrowH {
    color: red;
    transform: rotate(360deg);
}

/* Panel desplegable */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    overflow: hidden !important;
    max-height: 0;
    transition: max-height 0.5s ease;
}

.dropdown-panel.open {
    max-height: 400px;
}

/* Contenido dentro del panel */
.dropdown-content {
    display: flex;
    flex-wrap: wrap; /* permite que bajen a la siguiente fila */
    gap: 30px;
    padding: 20px;
    justify-content: center;
}


/* Cada ítem */
.panel-item {
    position: relative;
    width: calc(33.33% - 20px); /* 3 por fila */
    max-width: 300px;
    height: 150px;
    overflow: hidden !important;
    border-radius: 5px;
    text-decoration: none;
  }
  
  /* Imagen */
  .panel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
  }
  
  /* Overlay animado por debajo del texto */
  .overlay {
    position: absolute;
    top: 0;
    left: -100%; /* empieza fuera hacia la derecha */
    width: 100%;
    height: 100%;
    background-color: rgba(199, 2, 2, 0.643);
    z-index: 1;
    transition: left 0.5s ease;
  }
  
  /* Al hacer hover, overlay se desliza dentro */
  .panel-item:hover .overlay {
    left: 0;
  }
  
  /* Texto encima de todo */
  .fixed-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    line-height: 1.4;
    pointer-events: none; /* permite que el enlace funcione sin bloquear el clic */
  }
  

/* Fondo blanco si se activa por clase JS o scroll */
.header.white-bg {
    background-color: white;
    color: black;
}

/* Iconos de redes sociales */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    display: inline-flex; /* ✅ asegura alineación horizontal */
    color: #FF0030 !important;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #FF0030 !important;
}


.header.white-bg .social-icons a {
    color: rgb(58, 57, 57);
}

/* Botón de contacto */
.contact-btn {
    padding: 8px 16px;
    background-color: red;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.header.white-bg .contact-btn {
    background-color: rgb(200, 0, 0);
    color: white;
}

.contact-btn:hover {
    background-color: red;
}

/* Logo centrado */
.logo_resp {
    display: flex;
    justify-content: center;
    max-width: 190px;
    max-height: 100px;
    padding: 15px;
}

@media (max-width: 1366px) {
    
  }

  .header:hover {
    background-color: white;
}

.header:hover .menu-item {
    color: #3a3a3a;
}

.header:hover .menu-item:hover {
    color: #FF0030 !important;
}
