






/* Contenedor header */
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 20px; /* padding dinámico desde los bordes */
    width: 100%;
}

/* Partes del header */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8%; /* espacio dinámico desde el borde izquierdo */
}

.header-center {
    display: flex;
    justify-content: center;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Navegación de puntos */
.dot-navigation {
    display: flex;
    gap: 25px;
    align-items: center;
}

.dot-navigation a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s;
}

.dot-navigation a:hover {
    color: #777;
}

/* Menú hamburguesa */
#open-button {
    display: none;
}

/* --------------------- */
/* MÓVIL (<768px) */
/* --------------------- */
@media (max-width: 768px) {

    .header .container {
        justify-content: center;
    }

    .header-left {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        padding-left: 0; /* quitar padding en móvil */
    }

    .header-right {
        position: absolute;
        right: 20px;
    }

    .dot-navigation {
        display: none;
    }

    #open-button {
        display: block;
    }

    .header-left h1 {
        font-size: 18px;
    }

    .header-left img {
        width: 40px;
    }
    #slider-ef {
        /* height: 100svh; */
    }

    #videomain{
        height: 90svh;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    

        .contact-wrapper {
        flex-direction: column;
        gap: 25px;
    }

    .contact-map iframe {
        min-height: 280px;
    }

    .contact-info li {
        font-size: 16px;
    }
}

/* --------------------- */
/* DESKTOP (>=768px) */
/* --------------------- */
@media (min-width: 768px) {


    #translateButton {
    display: flex;
    justify-content: center;
    gap: 8px; /* espacio entre botones */
}



    .header-left h1 {
        font-size: 24px;
    }

    .header-left img {
        width: 60px;
    }

    .header-right {
        display: none; /* hamburger oculto */
    }
}


/* Aplica a todas las secciones a las que apuntan tus enlaces */
#initHappyBean,
#PorQueHappyBean,
#QuienesSomos,
#Servicios,
#Contacto {
    scroll-margin-top: 80px; /* altura navbar + margen */
}

.subrayado{
    background-color: yellow;
}

.hero-video {
    width: 100%;
    height: 90svh;
    object-fit: cover; /* rellena sin deformar */
    display: block;
}

.scroll-indicator{
    position: relative;
    top: -10svh;
}


.hero-video{
    border-radius: 20px;
}



/* el scrol para acisar el usuario  */
.scroll-indicator {
    margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.scroll-indicator span {
  width: 26px;
  height: 42px;
  border: 2px solid #000;
  border-radius: 20px;
  position: relative;
  opacity: 0.85;
}

/* Punto animado */
.scroll-indicator span::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollMove 1.5s infinite;
}

@keyframes scrollMove {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  100% {
    opacity: 0;
  }
}



/* =Header
-------------------------------------------------------------- */

.header {
    height: 100px;
    width: 100%;
    background: #fff;
    z-index: 9;
    position: relative;
}
.logo {
    float: left;
    line-height: 100px;
}

.logo h1 {
    line-height: 100px;
}

#titleMain{
    opacity: 0%;
}



/* ===== CONTACTO ===== */

.contact-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

/* INFO */
.contact-info {
    flex: 1;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    font-size: 17px;
    line-height: 1.8;
}

.contact-info li strong {
    display: block;
    margin-top: 18px;
    font-weight: 600;
}

.contact-info a {
    color: #000;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* MAPA */
.contact-map {
    flex: 1;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 16px;
}
