@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Monomakh&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DM Serif Text', sans-serif;
}

body {
  font-family: 'DM Serif Text', sans-serif;
  background: linear-gradient(to right, #e3f2fd, #2b99f3);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

a {
  text-decoration: none;
}

/* ===== Navbar ===== */
.navbar {
    width: 100%;
    height: 80px;
    background: #f2f3f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px #0f5bb5;
}

.navbar-logo {
    height: 50px;
    width: 50px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px; /* Espacio entre logo y texto */
}

.navbar-title {
  font-size: 48px;
  color: #1a73e8;
  display: flex;
  align-items: center;
  font-family: 'Monomakh';
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f2f3f4;
  color: #1a73e8;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  box-shadow: 0 -2px 8px #0000001a;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo h2 {
  color: #1a73e8;
}

.rayo {
  width: 50px;
  height: 50px;
}

.navbar nav a {
  margin-left: 15px;
  margin-right: 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s;
}
.btn-login {
  color: #007bff;
}
.btn-login:hover {
  background: #eaf1fb;
}
.btn-register {
  background: #007bff;
  color: #fff;
}
.btn-register:hover {
  background: #0056cc;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 100px 20px;
  background-color: #f2f3f4;
  border-radius: 12px;
}
.hero h1 {
  font-size: 32px;
  color: #222;
  margin-bottom: 15px;
}
.hero p {
  font-size: 16px;
  color: #555;
  max-width: 500px;
  margin: 0 auto 25px;
}
.btn-cta {
  display: inline-block;
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
  margin-bottom: 20px;
  cursor: pointer;
  border: none;
}

.btn-cta:hover {
  background: #0056cc;
}

.hero-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex: auto;
  margin-top: 120px;
  margin-bottom: 80px;
}

.hero-box {
  width: 100%;
  max-width: 700px; /* limita el tamaño en pantallas grandes */
  padding: 60px;
  background-color: #f2f3f4;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* <-- centrado horizontal */
  min-height: 500px;
}

.hero-box h1, .hero-box h2 {
  color: #1a73e8;
  margin-bottom: 15px;
}

.hero-box p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.hero-box.right img.hero-icon {
  width: 100%;
  max-width: 400px; /* no más de 400px para mantener proporción */
  height: auto;
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
}

.cuenta-input {
  margin-top: 15px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.cuenta-input input {
  padding: 10px;
}

.btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

/* ==== Responsividad ==== */
/* Pantallas grandes (Laptops y desktops grandes) */
@media (min-width: 1200px) {
  .hero-box {
    max-width: 700px;
  }
  
  .navbar-title {
    font-size: 48px;
  }
}

/* Tablets y laptops pequeñas */
@media (max-width: 1024px) {
  .navbar-title {
    font-size: 36px;
  }
  
  .hero-pair {
    gap: 30px;
    margin-top: 100px;
  }
  
  .hero-box {
    max-width: 85%;
    padding: 45px;
    min-height: 450px;
  }
  
  .hero-box.right img.hero-icon {
    max-width: 350px;
  }
  
  .navbar nav a {
    font-size: 13px;
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* Tablets (pantallas medianas) */
@media (max-width: 992px) {
  .navbar {
    height: 70px;
    padding: 0 20px;
  }
  
  .navbar-logo {
    height: 45px;
    width: 45px;
  }
  
  .navbar-title {
    font-size: 32px;
  }
  
  .hero-box {
    max-width: 90%;
    padding: 40px;
    min-height: 400px;
  }
  
  .hero-box.right img.hero-icon {
    max-width: 320px;
  }
  
  .hero-box h1 {
    font-size: 28px;
  }
  
  .hero-box h2 {
    font-size: 26px;
  }
  
  .btn-cta {
    padding: 10px 20px;
    font-size: 15px;
  }
  
  .footer {
    font-size: 13px;
    padding: 10px 0;
  }
}

/* Tablets pequeñas y móviles grandes (horizontal) */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
  }
  
  .navbar {
    height: 65px;
    padding: 0 15px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
  
  .navbar-logo {
    height: 40px;
    width: 40px;
  }
  
  .navbar-title {
    font-size: 28px;
  }
  
  .navbar nav {
    display: flex;
    gap: 8px;
  }
  
  .navbar nav a {
    font-size: 12px;
    padding: 6px 10px;
    margin: 0;
  }
  
  .hero-pair {
    flex-direction: column;
    gap: 25px;
    margin-top: 90px;
    margin-bottom: 70px;
    padding: 0 15px;
  }

  .hero-box {
    max-width: 100%;
    padding: 30px 25px;
    min-height: auto;
  }
  
  .hero-box.right img.hero-icon {
    max-width: 280px;
  }
  
  .hero-box h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .hero-box h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .hero-box p {
    font-size: 15px;
    margin-bottom: 18px;
  }
  
  .btn-cta {
    padding: 10px 18px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
  }
  
  .cuenta-input {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .cuenta-input input {
    padding: 10px;
    font-size: 14px;
  }
  
  .footer {
    font-size: 12px;
    padding: 10px 15px;
  }
}

/* Móviles medianos */
@media (max-width: 576px) {
  .navbar {
    height: 60px;
  }
  
  .navbar-logo {
    height: 35px;
    width: 35px;
  }
  
  .navbar-title {
    font-size: 24px;
  }
  
  .navbar nav a {
    font-size: 11px;
    padding: 5px 8px;
  }
  
  .hero-pair {
    margin-top: 80px;
    margin-bottom: 60px;
  }
  
  .hero-box {
    padding: 25px 20px;
    border-radius: 16px;
  }
  
  .hero-box.right img.hero-icon {
    max-width: 240px;
  }
  
  .hero-box h1 {
    font-size: 22px;
  }
  
  .hero-box h2 {
    font-size: 20px;
  }
  
  .hero-box p {
    font-size: 14px;
  }
  
  .btn-cta {
    font-size: 13px;
    padding: 9px 16px;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  .navbar {
    height: 55px;
    padding: 0 10px;
  }
  
  .navbar-logo {
    height: 32px;
    width: 32px;
  }
  
  .rayo {
    width: 32px;
    height: 32px;
  }
  
  .navbar-title {
    font-size: 20px;
  }
  
  .navbar nav a {
    font-size: 10px;
    padding: 4px 6px;
  }
  
  .hero-pair {
    margin-top: 70px;
    margin-bottom: 50px;
    padding: 0 10px;
  }
  
  .hero-box {
    padding: 20px 15px;
    border-radius: 12px;
  }
  
  .hero-box.right img.hero-icon {
    max-width: 200px;
  }
  
  .hero-box h1 {
    font-size: 20px;
  }
  
  .hero-box h2 {
    font-size: 18px;
  }
  
  .hero-box p {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .btn-cta {
    font-size: 12px;
    padding: 8px 14px;
    margin-bottom: 15px;
  }
  
  .cuenta-input label {
    font-size: 13px;
  }
  
  .cuenta-input input {
    padding: 8px;
    font-size: 13px;
  }
  
  .footer {
    font-size: 11px;
    padding: 8px 10px;
  }
}

/* Celulares muy pequeños (menos de 360px) */
@media (max-width: 360px) {
  .navbar-title {
    font-size: 18px;
  }
  
  .hero-box {
    padding: 15px 12px;
  }
  
  .hero-box.right img.hero-icon {
    max-width: 180px;
  }
  
  .hero-box h1 {
    font-size: 18px;
  }
  
  .hero-box h2 {
    font-size: 16px;
  }
  
  .hero-box p {
    font-size: 12px;
  }
  
  .btn-cta {
    font-size: 11px;
    padding: 7px 12px;
  }
}

/* Orientación horizontal en móviles */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-pair {
    margin-top: 80px;
    margin-bottom: 40px;
  }
  
  .hero-box {
    min-height: auto;
    padding: 20px;
  }
  
  .hero-box.right img.hero-icon {
    max-width: 200px;
  }
  
  .navbar {
    height: 50px;
  }
  
  .footer {
    padding: 6px 0;
  }
}