@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #202124;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ==================== LOGO ESTILO GOOGLE ==================== */

.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.google-logo {
  height: 120px;
  width: auto;
}

.logo-letter {
  font-family: 'Product Sans', 'Roboto', Arial, sans-serif;
  font-size: 70px;
  font-weight: 400;
}

.logo-letter.blue {
  fill: #4285f4;
}

.logo-letter.red {
  fill: #ea4335;
}

.logo-letter.yellow {
  fill: #fbbc04;
}

.logo-letter.green {
  fill: #34a853;
}

/* ==================== MAIN BODY ==================== */

.mainBody {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* ==================== SEARCH CONTAINER ==================== */

.search-container {
  width: 100%;
  max-width: 584px;
  margin: 0 auto;
}

/* ==================== MODE SELECTOR (Pills estilo Google) ==================== */

.mode-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.mode-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #dadce0;
  border-radius: 24px;
  background: #fff;
  color: #5f6368;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Roboto', sans-serif;
}

.mode-pill:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.mode-pill.active {
  background: #e8f0fe;
  border-color: #4285f4;
  color: #1967d2;
}

.mode-pill .material-icons {
  font-size: 18px;
}

/* ==================== SEARCH BOX ESTILO GOOGLE ==================== */

.google-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 584px;
  height: 48px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0 16px;
  margin: 0 auto 20px;
  background: #fff;
  transition: all 0.2s ease;
}

.google-search-box:hover {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: rgba(223, 225, 229, 0);
}

.google-search-box:focus-within {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: rgba(223, 225, 229, 0);
}

.google-search-box.secondary {
  margin-top: 12px;
}

.search-icon,
.mic-icon {
  color: #9aa0a6;
  font-size: 20px;
  flex-shrink: 0;
}

.mic-icon {
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.mic-icon:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.mode-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  color: #5f6368;
  margin-left: 4px;
  flex-shrink: 0;
}

.mode-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.mode-toggle-btn .material-icons {
  font-size: 20px;
}

.google-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #202124;
  padding: 0 12px;
  font-family: 'Roboto', sans-serif;
}

.google-search-box input::placeholder {
  color: #9aa0a6;
}

/* ==================== FAKE NOTICE ==================== */

.fake-notice {
  text-align: center;
  font-size: 13px;
  color: #5f6368;
  margin: 0 auto 20px;
  font-style: italic;
}

/* ==================== BOTONES ESTILO GOOGLE ==================== */

.google-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.google-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.1s ease;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.25px;
}

.google-btn:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-color: #dadce0;
  background: #f8f9fa;
}

.google-btn:active {
  background: #f1f3f4;
}

.google-btn.primary {
  background: #4285f4;
  border-color: #4285f4;
  color: #fff;
}

.google-btn.primary:hover {
  background: #357ae8;
  border-color: #357ae8;
  box-shadow: 0 1px 3px rgba(66, 133, 244, 0.3);
}

.google-btn.primary:active {
  background: #2b66c4;
}

.google-btn .material-icons {
  font-size: 18px;
}

/* ==================== EMOJIS ANIMADOS ==================== */

.emoji-random {
  position: fixed;
  opacity: 0.15;
  z-index: 9999;
  animation: desvanecer 6s ease-out forwards;
  pointer-events: none;
}

@keyframes desvanecer {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0.15;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* ==================== FOOTER ESTILO GOOGLE ==================== */

.google-footer {
  background: #f2f2f2;
  margin-top: auto;
}

.footer-section {
  padding: 15px 30px;
  color: #70757a;
  font-size: 14px;
}

.footer-divider {
  border-top: 1px solid #dadce0;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left,
.footer-right {
  display: flex;
  gap: 27px;
  flex-wrap: wrap;
}

.google-footer a {
  color: #70757a;
  text-decoration: none;
  transition: color 0.2s;
}

.google-footer a:hover {
  color: #202124;
  text-decoration: underline;
}

/* ==================== FOOTER MOCKUP #10 - DARK ELEGANTE ==================== */

.footer-dark-elegant {
  background: #202124;
  padding: 30px;
  text-align: center;
  color: #9aa0a6;
  margin-top: auto;
}

.footer-dark-elegant .footer-content {
  font-size: 14px;
  line-height: 1.8;
}

.footer-dark-elegant a {
  color: #8ab4f8;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-dark-elegant a:hover {
  color: #aecbfa;
  text-decoration: underline;
}

/* Ajuste para modo oscuro */
.dark-mode .footer-dark-elegant {
  background: #171717;
}

.dark-mode .footer-dark-elegant a {
  color: #8ab4f8;
}

.dark-mode .footer-dark-elegant a:hover {
  color: #aecbfa;
}

/* ==================== MODO OSCURO ==================== */

.dark-mode {
  background-color: #202124;
  color: #e8eaed;
}

.dark-mode .mode-toggle-btn {
  color: #e8eaed;
}

.dark-mode .mode-toggle-btn:hover {
  background-color: rgba(232, 234, 237, 0.08);
}

.dark-mode .mode-pill {
  background: #303134;
  border-color: #5f6368;
  color: #e8eaed;
}

.dark-mode .mode-pill:hover {
  background: #3c4043;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-mode .mode-pill.active {
  background: #1a2b47;
  border-color: #8ab4f8;
  color: #8ab4f8;
}

.dark-mode .google-search-box {
  background: #303134;
  border-color: #5f6368;
}

.dark-mode .google-search-box:hover,
.dark-mode .google-search-box:focus-within {
  background: #303134;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  border-color: #5f6368;
}

.dark-mode .google-search-box input {
  color: #e8eaed;
}

.dark-mode .google-search-box input::placeholder {
  color: #9aa0a6;
}

.dark-mode .search-icon,
.dark-mode .mic-icon {
  color: #9aa0a6;
}

.dark-mode .mic-icon:hover {
  background-color: rgba(232, 234, 237, 0.08);
}

.dark-mode .fake-notice {
  color: #9aa0a6;
}

.dark-mode .google-btn {
  background: #303134;
  border-color: #5f6368;
  color: #e8eaed;
}

.dark-mode .google-btn:hover {
  background: #3c4043;
  border-color: #5f6368;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.dark-mode .google-btn:active {
  background: #494c50;
}

.dark-mode .google-btn.primary {
  background: #8ab4f8;
  border-color: #8ab4f8;
  color: #202124;
}

.dark-mode .google-btn.primary:hover {
  background: #aecbfa;
  border-color: #aecbfa;
}

.dark-mode .google-btn.primary:active {
  background: #c9ddfb;
}

.dark-mode .google-footer {
  background: #171717;
}

.dark-mode .footer-divider {
  border-top-color: #3c4043;
}

.dark-mode .google-footer a {
  color: #9aa0a6;
}

.dark-mode .google-footer a:hover {
  color: #e8eaed;
}

.dark-mode .emoji-random {
  opacity: 0.08;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .mainBody {
    padding: 30px 16px;
  }

  .google-logo {
    height: 110px;
  }

  .logo-letter {
    font-size: 65px;
  }

  .search-container {
    max-width: 100%;
  }

  .mode-selector {
    gap: 6px;
    margin-bottom: 20px;
  }

  .mode-pill {
    padding: 8px 16px;
    font-size: 13px;
  }

  .mode-pill .material-icons {
    font-size: 16px;
  }

  .google-search-box {
    height: 44px;
    padding: 0 12px;
  }

  .google-buttons {
    margin-top: 20px;
    gap: 8px;
  }

  .google-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .mainBody {
    padding: 20px 12px;
  }

  .google-logo {
    height: 90px;
  }

  .logo-letter {
    font-size: 55px;
  }

  .logo-container {
    margin-bottom: 25px;
  }

  .mode-selector {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .mode-pill {
    justify-content: center;
    padding: 10px 16px;
  }

  .google-search-box {
    height: 48px;
  }

  .google-search-box input {
    font-size: 15px;
  }

  .google-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .google-btn {
    justify-content: center;
    padding: 12px 20px;
  }

  .footer-section {
    padding: 12px 20px;
    font-size: 12px;
  }

  .footer-left,
  .footer-right {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}