/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f6b393 0%, #ffffff 30%, #d9ffd9 100%);
  overflow-x: hidden;
}

/* ---------------------------------
   NAVBAR
--------------------------------- */
.navbar {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;

  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #008000;
  letter-spacing: -1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #008000;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #333;
  font-weight: 500;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.15);
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background: #f6b393;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.nav-links a.active {
  background-color: #008000;
  color: white;
  border-radius: 25px;
  padding: 8px 18px;
  transition: 0.3s;
}

.nav-links a.active:hover {
  background-color: #006400;
  color: white;
}


/* Toggle en móviles */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 26px;
}

/* ---------------------------------
   HERO LADO A LADO CENTRADO
--------------------------------- */

.hero {
  padding: 150px 40px 80px;
  display: flex;
  justify-content: center; /* centra todo */
  align-items: center;
  gap: 300px; /* separa texto e imagen */
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text {
  max-width: 500px;
  text-align: left;
}

.hero-text h1 {
  font-size: 48px;
  color: #008000;
  font-weight: 700;
  line-height: 1.1;
}

.hero-text p {
  font-size: 18px;
  margin-top: 20px;
  color: #444;
  max-width: 500px;
}

/* Botón */
.cta-btn {
  display: inline-block;
  margin-top: 25px;
  background: #008000;
  color: white;
  padding: 14px 30px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0px 10px 25px rgba(0, 128, 0, 0.25);
}

.cta-btn:hover {
  background: #006400;
  transform: translateY(-3px);
}

/* Imagen del teléfono */
.hero-image img {
  width: 320px;
  max-width: 40vw;
  height: auto;
  object-fit: contain;
  animation: float 4s infinite ease-in-out;
  filter: drop-shadow(0px 10px 25px rgba(0, 0, 0, 0.25));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------------------------
   FOOTER
--------------------------------- */
footer {
  text-align: center;
  padding: 30px;
  margin-top: 80px;
  color: #333;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
}

/* ---------------------------------
   RESPONSIVE
--------------------------------- */

@media (max-width: 950px) {

  .hero {
    flex-direction: column-reverse; /* móvil: imagen abajo */
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .hero-image img {
    width: 260px;
  }
}

@media (max-width: 768px) {

  .nav-links {
    display: none;
    position: absolute;
    right: 20px;
    top: 80px;
    background: white;
    width: 220px;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    border-radius: 10px;
    box-shadow: 0px 5px 20px rgba(0,0,0,0.15);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-image img {
    width: 230px;
  }
}

/* ---------------------------------
   PUBLICACIONES
--------------------------------- */
.publicaciones {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.publicaciones h2 {
  font-size: 36px;
  color: #008000;
  margin-bottom: 50px;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  font-size: 20px;
  color: #008000;
  margin: 15px 15px 10px;
}

.card p {
  font-size: 16px;
  color: #444;
  margin: 0 15px 20px;
}

/* RESPONSIVE */
@media (max-width: 950px) {
  .cards-container {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 350px;
  }
}

/* ---------------------------------
   PERFIL
--------------------------------- */
.perfil {
  padding: 150px 40px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.perfil-container {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.avatar img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #008000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.info h2 {
  font-size: 32px;
  color: #008000;
  margin-bottom: 15px;
}

.info p {
  font-size: 18px;
  color: #444;
  margin-bottom: 10px;
}

.acciones {
  margin-top: 20px;
}

.btn-perfil {
  display: inline-block;
  margin-right: 15px;
  background: #008000;
  color: white;
  padding: 10px 25px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-perfil:hover {
  background: #006400;
  transform: translateY(-2px);
}

/* Resumen de reciclajes */
.resumen h3 {
  font-size: 28px;
  color: #008000;
  margin-bottom: 30px;
  text-align: center;
}

.resumen .cards-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.resumen .card {
  background: white;
  border-radius: 15px;
  width: 200px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resumen .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.resumen .card h4 {
  color: #008000;
  margin-bottom: 10px;
  font-size: 20px;
}

.resumen .card p {
  font-size: 18px;
  color: #444;
}

/* RESPONSIVE PERFIL */
@media (max-width: 950px) {
  .perfil-container {
    flex-direction: column;
    text-align: center;
  }

  .avatar img {
    width: 160px;
    height: 160px;
  }

  .info h2 {
    font-size: 28px;
  }

  .resumen .card {
    width: 80%;
    max-width: 250px;
  }
}

/* ---------------------------------
   LOGIN PAGE
--------------------------------- */
.login-section {
  padding: 150px 20px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  background: white;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-container h2 {
  color: #008000;
  margin-bottom: 30px;
}

.login-form label {
  display: block;
  text-align: left;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 2px solid #f6b393;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border 0.3s;
}

.login-form input:focus {
  border-color: #008000;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: #008000;
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-login:hover {
  background: #006400;
  transform: translateY(-2px);
}

.register-text {
  margin-top: 15px;
  font-size: 14px;
}

.register-text a {
  color: #008000;
  text-decoration: none;
  font-weight: 600;
}

.register-text a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 500px) {
  .login-container {
    padding: 30px 25px;
  }
}

/* ---------------------------------
   HISTÓRICO PAGE
--------------------------------- */
.historico-section {
  padding: 120px 20px 80px;
  text-align: center;
}

.historico-section h2 {
  color: #008000;
  font-size: 32px;
  margin-bottom: 10px;
}

.historico-section p {
  color: #444;
  font-size: 16px;
  margin-bottom: 40px;
}

.historico-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #008000;
  margin-bottom: 10px;
}

.card p {
  color: #333;
  font-size: 14px;
  margin: 5px 0;
}

/* Responsive */
@media (max-width: 500px) {
  .historico-section h2 {
    font-size: 26px;
  }

  .historico-cards {
    gap: 15px;
  }
}




