* {
    box-sizing: border-box;
}

html, body {
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Poppins, sans-serif;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100vh;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    position: relative;
}

.header-right, .header-left {
    width: 100%;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
}

.header a {
    margin-left: 15px;
    text-decoration: none;
    color: black;
    font-size: 14px;
}

.headerIcon {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.header .profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid white; 
    transition: border 0.5s ease;
}

.profile:hover{
    border: 3px solid rgba(0, 0, 0, 0.2);
}


/* Estilos para el contenedor de la foto de perfil */
.profile-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Estilos para la foto de perfil */
.profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    transition: border 0.3s ease;
}

.profile:hover {
    border: 2px solid rgba(0, 0, 0, 0.2);
}

/* Estilos para el recuadro de información */
.profile-info {
    position: absolute;
    top: 50px; /* Ajusta la posición vertical */
    left: 50%;
    transform: translateX(-90%);
    background-color: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px;
    width: 200px;
    height: 50px; 
    text-align: start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

/* Mostrar el recuadro al hacer hover */
.profile-container:hover .profile-info {
    opacity: 1;
    visibility: visible;
}

/* Estilos para el nombre y el correo dentro del recuadro */
.profile-name {
    font-size: 12px;
    font-weight: bold;
    color: #202124;
    margin: 0 0 4px 0;
}

.profile-email {
    font-size: 12px;
    color: #5f6368;
    margin: 0;
}

.logo {
    width: 100%;
    text-align: center;
    font-size: 80px;
    font-weight: bold;
    color: #4285F4;
    margin-top: 200px;
    margin-bottom: 30px;
}

.logo span:nth-child(2) { color: #EA4335; }
.logo span:nth-child(3) { color: #FBBC05; }
.logo span:nth-child(4) { color: #4285F4; }
.logo span:nth-child(5) { color: #34A853; }
.logo span:nth-child(6) { color: #EA4335; }

.search {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.search-container {
    width: 40%;
    text-align: center;
}

.moreApp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.moreApp:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.svgMoreApp {
    width: 24px;
    height: 24px;
    fill: black;
    transition: fill 0.3s ease;
}

.searchBar {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-box {
    width: 100%;
    padding: 12px 12px 12px 40px;
    padding-right: 80px;
    font-size: 16px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    outline: none;
    box-shadow: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: gray;
}

.search-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-icon-container:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.voice-search-icon,
.image-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    fill: gray;
}

.voice-search-icon {
    right: 40px;
    margin-right: 10px;
}

.image-search-icon {
    right: 12px;
}

.buttons {
    margin-top: 20px;
}

.btn {
  background-color: #f8f9fa;
  color: #3c4043; 
  border: 1px solid #6b6b60;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  margin: 5px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #f1f3f4;
  border: 1px solid #c6c6c6;
}


.footer-block {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-family: Arial,Helvetica,sans-serif
}

.footer-links {
    color: var(--primary-color);
    text-decoration: none
}

.header-left a:hover, .headerText a:hover,.footer-links:hover {
    text-decoration: underline
}

.country, .footer-links-right, .footer-links-left {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    
}

.country p, hr {
    margin: 0;
}

.footer-links {
    margin-right: 1.5rem; /* Separación horizontal */
}

.footer-links:last-child {
    margin-right: 0; /* Evita margen extra en el último enlace */
}

.footer-links-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* ----- Tablets (max 768px) ----- */
@media (max-width: 768px) {
  .logo {
    font-size: 48px;
    margin-top: 100px;
  }

  .search-container {
    width: 80%;
  }

  .search-box {
    font-size: 15px;
  }

  .header a {
    font-size: 13px;
  }

  .footer-links-container {
    justify-content: center;
    gap: 10px;
  }
}

/* ----- Móviles (max 480px) ----- */
@media (max-width: 480px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .logo {
    font-size: 36px;
    margin-top: 80px;
  }

  .search-container {
    width: 90%;
  }

  .search-box {
    font-size: 14px;
    padding: 10px 10px 10px 36px;
  }

  .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .buttons .btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  .header {
    gap: 8px;
  }

  

  .header-left a {
    margin: 0 8px;
  }

  .profile-info {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .country {
    text-align: center;
    padding: 10px 0;
  }
}