* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #aacfe3 !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
 position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99;
  background: #aacfe3;
  z-index: 11000;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 2em;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  color: #000000;
  user-select: none;
}

.img {
  width: 100px;
  height: 90px;
  bottom: 100px;
  z-index: 2;
}

.header-title {
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 1.6em;
  font-weight: 600;
  color: #1a237e;
  white-space: nowrap;
  text-align: center;
}

.accesibilidad-btn {
  position: fixed !important;
  left: 0px !important;
  top: 30% !important;
  transform: translateY(-50%) !important;
  width: 55px !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  filter: brightness(1) drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.4)) !important;
  transition: transform 0.3s ease, filter 0.3s ease, width 0.3s ease !important;
}

.accesibilidad-btn:hover {
  transform: translateY(-50%) scale(1.25);
  filter: brightness(1.3) drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.9));
}

nav .contacto-link {
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
}

.navigation a {
  position: relative;
  font-size: 1.1em;
  color: #1a237e;
  text-decoration: none;
  font-weight: 500;
  margin-left: 40px;
}

.navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: #1a237e;
  border-radius: 5px;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.5s;
}

.navigation a:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

.navigation .btnLogin-popup {
  width: 130px;
  height: 50px;
  background: transparent;
  border: 2px solid #1a237e;
  outline: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  color: #1a237e;
  font-weight: 500;
  margin-left: 40px;
  transition: 0.5s;
}

.navigation .btnLogin-popup:hover {
  background: #1a237e;
  color: #ffffff;
}

.overlay {
  inset: 0;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10005;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 400px;
  height: 550px;
  background: transparent;
  border: 2px solid rgba(26, 35, 126, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.5s ease, height 0.2s ease;
  z-index: 10010;
  pointer-events: none;
}

.wrapper.active-popup {
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.wrapper.active {
  height: 700px;
}

.wrapper .form-box {
  width: 100%;
  padding: 40px;
}

.wrapper .form-box.login {
  transition: transform 0.18s ease;
  transform: translateX(0);
}

.wrapper.active .form-box.login {
  transition: none;
  transform: translateX(-400px);
}

.wrapper .form-box.register {
  position: absolute;
  transition: none;
  transform: translateX(400px);
}

.wrapper.active .form-box.register {
  transition: transform 0.18s ease;
  transform: translateX(0);
}

.wrapper .icon-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background: #1a237e;
  font-size: 2em;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 20px;
  cursor: pointer;
  z-index: 2;
}

.wrapper2 {
  position: relative;
  left: 1%;
  width: 300px;
  height: 200px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform: scale(0);
  transition: transform 0.5s ease, height 0.2s ease;
}

.wrapper2.active-popup {
  transform: scale(1);
}

.wrapper2.active {
  height: 520px;
}

.wrapper2 .form-box {
  width: 100%;
  padding: 40px;
  align-items: center;
  text-align: center;
}

.wrapper2 .icon-close2 {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background: #1a237e;
  font-size: 2em;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 20px;
  cursor: pointer;
  z-index: 2;
}

.wrapper3 {
  position: relative;
  left: -25%;
  width: 400px;
  height: 500px;
  background: transparent;
  border: 2px solid rgba(26, 35, 126, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(40px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform: scale(0);
  transition: transform 0.5s ease, height 0.2s ease;
}

.wrapper3.active-popup {
  transform: scale(1);
}

.wrapper3.active {
  height: 400px;
}

.wrapper3 .form-box {
  width: 100%;
  padding: 40px;
}

.wrapper3 .icon-close3 {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  background: #1a237e;
  font-size: 2em;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 20px;
  cursor: pointer;
  z-index: 2;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 98;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

.form-box h2 {
  font-size: 2em;
  color: #1a237e;
  text-align: center;
}

.form-box h3 {
  font-size: 2em;
  color: #1a237e;
  text-align: center;
  top: 0%;
}

.form-box h4 {
  font-size: 14px;
  color: #000000;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  top: 0%;
}

.input-box {
  position: relative;
  width: 100%;
  height: 50px;
  border-bottom: 2px solid #1a237e;
  margin: 30px 0;
}

.input-box.error {
  border-bottom-color: #ff0077;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 0;
  color: #1a237e;
  transform: translateY(-50%);
  font-size: 1.2em;
  pointer-events: none;
  transition: 0.5s;
}

.input-box input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  color: #fff;
  font-size: 1.1em;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 5px;
  z-index: 1;
  transform: translateY(-50%);
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -10px;
  left: 0;
  color: #ffffff;
  font-size: 0.8em;
}

.input-row {
  display: flex;
  margin-bottom: 20px;
}

.input-box.input-box2 {
  flex-basis: 50%;
  margin: -10px 0;
  margin-top: 30px;
}

.input-box.input-box2 input {
  position: absolute;
  margin-top: 10px;
  top: 50%;
  left: 0;
  width: 100%;
  color: #fff;
  font-size: 1.1em;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  z-index: 1;
  transform: translateY(-50%);
}

.input-box.input-box2 input:focus ~ label,
.input-box.input-box2 input:valid ~ label {
  top: -10px;
  left: 0;
  color: #ffffff;
  font-size: 0.8em;
}

.login-register p {
  text-align: center;
  margin-top: 20px;
  color: #1a237e;
}

.login-register p a {
  color: #77038f;
  text-decoration: none;
}

.btn {
  position: relative;
  margin-top: 30px;
  width: 200px;
  height: 50px;
  left: 18%;
  border: none;
  outline: none;
  background: #1a237e;
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.1);
}

.btn::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 5%;
  right: 5%;
  height: 20px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform-origin: bottom center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s, background-position 0.3s;
  background-position: 0% 100%;
}

.btn:hover {
  background-color: #1a237e;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1), 0px -6px 30px rgba(0, 0, 0, 0.2);
}

.btn:hover::after {
  opacity: 1;
  transform: scaleY(1);
  background-position: 0% 0%;
}

.error-message {
  color: #ff0000;
  font-size: 0.8em;
  margin-top: -5px;
  right: -200px;
}

.icon {
  position: relative;
}

.social {
  position: relative;
  width: 150px;
  height: 150px;
  font-size: 4em;
}

.social-link {
  color: #1a237e;
  transition: 0.5s;
}

.social-link:hover {
  filter: none;
  color: #ffbbf4;
}

.icon ion-icon {
  position: absolute;
  bottom: -40px;
  right: -300px;
}

footer {
  background-color: #000000;
  color: #ffffff;
  padding: 30px 20px 15px;
  font-family: Arial, sans-serif;
  margin-top: auto;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-section {
  margin: 10px 0;
  min-width: 150px;
}

.footer-section h4 {
  color: red;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-section p,
.footer-section a {
  color: #cccccc;
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
}

.footer-section a:hover {
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 5px;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
  font-size: 24px;
  color: #ffffff;
  transition: color 0.3s;
  background-color: #333333;
  border-radius: 5px;
  padding: 5px 8px;
}

.social-icons a:hover {
  color: #ff9900;
  background-color: #444444;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #333333;
  font-size: 12px;
  color: #888888;
}

.menu-toggle {
  display: flex;
  position: absolute;
  right: 35px;
  top: 18px;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 140;
  padding: 6px;
  border-radius: 8px;
  transition: transform 0.18s ease, background 0.18s ease;
  background: transparent;
}

.menu-toggle:hover {
  transform: scale(1.02);
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #1a237e;
  border-radius: 4px;
  display: block;
  transition: transform 0.28s ease, opacity 0.18s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-desplegable {
  position: absolute;
  right: 30px;
  top: 72px;
  width: 240px;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  z-index: 135;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fbfbff);
  border: 1px solid rgba(26, 35, 126, 0.08);
  box-shadow: 0 10px 30px rgba(15, 20, 40, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.18s ease;
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-6px) scale(0.99);
}

.menu-desplegable.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.menu-desplegable a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1a237e;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.16s ease, transform 0.12s ease;
}

.menu-desplegable a:hover {
  background: rgba(26, 35, 126, 0.06);
  transform: translateX(4px);
}

.menu-desplegable .divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(26, 35, 126, 0.04),
    rgba(26, 35, 126, 0.02)
  );
  margin: 6px 0;
  border-radius: 2px;
}

.menu-desplegable .btnLogin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a237e, #31459f);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 8px 18px rgba(26, 35, 126, 0.12);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.menu-desplegable .btnLogin:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.menu-desplegable a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 35, 126, 0.12);
  margin-left: 2px;
}

.logout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  backdrop-filter: blur(2px);
  z-index: 300;
}

.logout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 340px;
  background: #ffffff;
  border-radius: 14px;
  padding: 25px 22px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  display: none;
  opacity: 0;
  z-index: 301;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.logout-modal.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.logout-modal h3 {
  color: #1a237e;
  margin-bottom: 10px;
  font-size: 1.25em;
  font-weight: 700;
}

.logout-modal p {
  color: #333;
  font-size: 0.95em;
  margin-bottom: 18px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-confirm {
  background: #1a237e;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  transition: background 0.15s ease;
}

.btn-confirm:hover {
  background: #303f9f;
}

.btn-cancel {
  background: #e0e0e0;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  transition: background 0.15s ease;
}

.btn-cancel:hover {
  background: #cfcfcf;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 110px 0 22px;
  font-family: "Gill Sans", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  text-align: center;
}

.section-title .title-accent {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #8a2be2 0%, #1a237e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.6px;
}

.section-title .title-main {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a237e;
}

.section-title .title-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  color: #374151;
  opacity: 0.9;
}

.producto-card {
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 20, 40, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 380px;
  position: relative;
  border: 1px solid rgba(26, 35, 126, 0.04);
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 20, 40, 0.12);
}

.producto-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.producto-card:hover .producto-img img {
  transform: scale(1.03);
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.product-name {
  font-size: 1.06rem;
  font-weight: 800;
  color: #0f1724;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.description {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.3;
  max-height: 3.9em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pickup-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.pickup-info b {
  background: rgba(26, 35, 126, 0.08);
  color: #1a237e;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(26, 35, 126, 0.04);
}

.wishlist-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a237e;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(15, 20, 40, 0.06);
  border: 1px solid rgba(26, 35, 126, 0.04);
  transition: transform 0.12s ease, background 0.12s;
}

.wishlist-icon:hover {
  transform: translateY(-3px);
  background: #fff;
}

.producto-card .add-to-cart-btn {
  display: none;
}

#previewImg {
  display: inline-block;
  object-fit: cover;
  width: 180px;
  height: 130px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f6f8fb;
}

header.hide-header {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

header {
  transition: transform 0.3s ease;
}

/* ============================
   RESPONSIVE ADAPTATIONS
   ============================ */

/* Tablets (pantallas medianas) */
@media (max-width: 1024px) {
  header {
    padding: 15px 40px;
  }

  .header-title {
    font-size: 1.2em;
    max-width: 60%;
  }

  .img {
    width: 80px;
    height: 70px;
  }

  .navigation a {
    font-size: 1em;
    margin-left: 25px;
  }

  .navigation .btnLogin-popup {
    width: 110px;
    height: 45px;
    font-size: 1em;
    margin-left: 25px;
  }

  .wrapper {
    width: 90%;
    max-width: 400px;
  }

  .logout-modal {
    width: 90%;
    max-width: 340px;
  }

  .accesibilidad-btn {
    width: 50px !important;
  }
}

/* ============================================
   RESPONSIVE DESIGN - INDEX.PHP
   ============================================ */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 15px 50px;
    }

    .header-title {
        font-size: 1.3em;
        max-width: 60%;
    }

    .img {
        width: 80px;
        height: 70px;
    }

    .navigation a {
        margin-left: 25px;
        font-size: 1em;
    }

    .navigation .btnLogin-popup {
        width: 110px;
        height: 45px;
        font-size: 1em;
        margin-left: 25px;
    }

    /* Secciones */
    .noticias-section {
        padding: 80px 15px 50px;
    }

    .section-title .title-main {
        font-size: 1.4rem;
    }

    .section-title .title-accent {
        font-size: 1.1rem;
    }

    /* Carrusel de noticias */
    .carousel-container-noticias {
        max-width: 700px;
    }

    .noticia-imagen {
        height: 320px;
    }

    .noticia-contenido h3 {
        font-size: 1.45rem;
    }

    /* Equipos más prestados */
    .mas-prestados-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .prestado-img {
        height: 130px;
    }
}

/* Tablets pequeñas (600px - 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    header {
        padding: 12px 25px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.5em;
    }

    .img {
        width: 65px;
        height: 55px;
    }

    .header-title {
        font-size: 1em;
        max-width: 50%;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    }

    .navigation {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .navigation a {
        margin-left: 0;
        font-size: 0.95em;
    }

    .navigation .btnLogin-popup {
        width: 100px;
        height: 40px;
        font-size: 0.9em;
        margin-left: 0;
    }

    .navigation a img {
        width: 35px !important;
        height: 35px !important;
    }

    /* Mini menú */
    .mini-menu {
        width: 65px;
    }

    .mini-menu-item span {
        display: none;
    }

    .mini-menu-item {
        justify-content: center;
        padding: 12px 8px;
    }

    /* Accesibilidad */
    .accesibilidad-btn {
        width: 45px !important;
        top: 25% !important;
    }

    /* Noticias */
    .noticias-section {
        padding: 70px 10px 40px;
    }

    .section-title {
        margin: 90px 0 20px;
    }

    .section-title .title-main {
        font-size: 1.3rem;
    }

    .section-title .title-accent {
        font-size: 1rem;
    }

    .section-title .title-sub {
        font-size: 0.85rem;
    }

    .carousel-wrapper-noticias {
        gap: 10px;
    }

    .carousel-container-noticias {
        max-width: 100%;
    }

    .noticia-imagen {
        height: 250px;
    }

    .noticia-contenido {
        padding: 20px 15px;
    }

    .noticia-contenido h3 {
        font-size: 1.3rem;
        min-height: auto;
    }

    .noticia-contenido p {
        font-size: 0.9rem;
        min-height: auto;
    }

    .carousel-arrow-noticias {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .btn-leer-mas {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Equipos más prestados */
    .mas-prestados-section {
        padding: 60px 10px;
    }

    .mas-prestados-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .mas-prestados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .prestado-card {
        padding: 12px;
    }

    .prestado-img {
        height: 120px;
    }

    .prestado-name {
        font-size: 0.9rem;
    }

    .prestado-description {
        font-size: 0.82rem;
    }

    /* Modal login */
    .wrapper {
        width: 90%;
        max-width: 380px;
        height: auto;
        min-height: 500px;
    }

    .wrapper .form-box {
        padding: 30px 25px;
    }

    .form-box h2 {
        font-size: 1.7em;
    }

    .input-box {
        height: 45px;
        margin: 25px 0;
    }

    .btn {
        width: 180px;
        height: 45px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1em;
    }

    /* Modal noticia */
    .modal-contenido {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .modal-body h2 {
        font-size: 1.6rem;
    }

    .modal-header {
        height: 250px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-section {
        margin: 10px 0;
        min-width: 100%;
    }
}

/* Móviles grandes (480px - 600px) */
@media (max-width: 600px) {
    header {
        padding: 10px 15px;
    }

    .header-title {
        font-size: 0.85em;
        max-width: 45%;
    }

    .img {
        width: 55px;
        height: 45px;
    }

    .navigation .btnLogin-popup {
        width: 90px;
        height: 38px;
        font-size: 0.85em;
    }

    /* Mini menú oculto en móviles */
    .mini-menu {
        display: none;
    }

    /* Accesibilidad */
    .accesibilidad-btn {
        width: 40px !important;
        top: 20% !important;
    }

    /* Noticias */
    .section-title {
        margin: 80px 0 18px;
    }

    .section-title .title-main {
        font-size: 1.2rem;
    }

    .section-title .title-accent {
        font-size: 0.95rem;
    }

    .mas-prestados-title {
        font-size: 1.5rem;
    }

    .carousel-arrow-noticias {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Equipos más prestados */
    .mas-prestados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .prestado-card {
        padding: 10px;
    }

    .prestado-img {
        height: 110px;
    }

    .pagination-prestados button {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* Móviles pequeños (menos de 480px) */
@media (max-width: 480px) {
    header {
        padding: 10px;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.2em;
    }

    .img {
        width: 50px;
        height: 40px;
    }

    .header-title {
        font-size: 0.7em;
        max-width: 40%;
        line-height: 1.1;
    }

    .navigation {
        gap: 10px;
    }

    .navigation .btnLogin-popup {
        width: 80px;
        height: 35px;
        font-size: 0.8em;
        padding: 0 8px;
    }

    .navigation a img {
        width: 32px !important;
        height: 32px !important;
    }

    .btnLogout-header {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem;
    }

    /* Accesibilidad */
    .accesibilidad-btn {
        width: 38px !important;
    }

    /* Secciones */
    .noticias-section {
        padding: 60px 8px 30px;
    }

    .section-title {
        margin: 70px 0 15px;
    }

    .section-title .title-main {
        font-size: 1.1rem;
    }

    .section-title .title-accent {
        font-size: 0.9rem;
    }

    .section-title .title-sub {
        font-size: 0.8rem;
    }

    /* Noticias */
    .carousel-wrapper-noticias {
        gap: 8px;
    }

    .noticia-imagen {
        height: 200px;
    }

    .noticia-contenido {
        padding: 15px 12px;
    }

    .noticia-contenido h3 {
        font-size: 1.15rem;
    }

    .noticia-contenido p {
        font-size: 0.85rem;
    }

    .carousel-arrow-noticias {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .btn-leer-mas {
        padding: 9px 18px;
        font-size: 0.85rem;
    }

    .dots-container-noticias {
        padding: 25px 0 0;
    }

    .dot-noticias {
        height: 10px;
        width: 10px;
        margin: 0 5px;
    }

    .dot-noticias.active {
        width: 28px;
    }

    /* Equipos más prestados */
    .mas-prestados-section {
        padding: 50px 8px;
    }

    .mas-prestados-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .mas-prestados-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .prestado-card {
        padding: 12px;
        max-width: 100%;
    }

    .prestado-img {
        height: 140px;
    }

    .prestado-name {
        font-size: 0.95rem;
    }

    .prestado-description {
        font-size: 0.85rem;
    }

    .pagination-prestados {
        gap: 6px;
        margin-top: 20px;
    }

    .pagination-prestados button {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Modal login */
    .wrapper {
        width: 95%;
        max-width: 340px;
        padding: 0;
    }

    .wrapper .form-box {
        padding: 25px 20px;
    }

    .form-box h2 {
        font-size: 1.5em;
    }

    .input-box {
        height: 42px;
        margin: 20px 0;
    }

    .input-box label {
        font-size: 1em;
    }

    .input-box input {
        font-size: 1em;
    }

    .btn {
        width: 160px;
        height: 42px;
        font-size: 0.95em;
    }

    .error-text {
        font-size: 0.75rem;
    }

    /* Modal noticia */
    .modal-contenido {
        width: 98%;
        margin: 2% auto;
    }

    .modal-body {
        padding: 25px 15px;
    }

    .modal-body h2 {
        font-size: 1.4rem;
    }

    .modal-header {
        height: 200px;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
        top: 15px;
        right: 15px;
    }

    /* Modal logout */
    .logout-modal {
        width: 90%;
        max-width: 300px;
        padding: 20px 18px;
    }

    .logout-modal h3 {
        font-size: 1.1em;
    }

    .logout-modal p {
        font-size: 0.88em;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-confirm,
    .btn-cancel {
        width: 100%;
    }

    /* Footer */
    footer {
        padding: 20px 15px 10px;
    }

    .footer-section h4 {
        font-size: 14px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 11px;
    }
}

/* telefonos muy pequeños (menos de 360px) */
@media (max-width: 360px) {
    .header-title {
        font-size: 0.65em;
    }

    .img {
        width: 45px;
        height: 38px;
    }

    .navigation .btnLogin-popup {
        width: 70px;
        height: 32px;
        font-size: 0.75em;
    }

    .section-title .title-main {
        font-size: 1rem;
    }

    .section-title .title-accent {
        font-size: 0.85rem;
    }

    .mas-prestados-title {
        font-size: 1.2rem;
    }

    .noticia-contenido h3 {
        font-size: 1.05rem;
    }

    .noticia-contenido p {
        font-size: 0.8rem;
    }

    .prestado-img {
        height: 120px;
    }

    .wrapper {
        width: 98%;
        max-width: 320px;
    }

    .form-box h2 {
        font-size: 1.3em;
    }

    .btn {
        width: 140px;
        height: 40px;
        font-size: 0.9em;
    }
}

/* Landscape telfenos */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 8px 15px;
    }

    .img {
        width: 50px;
        height: 40px;
    }

    .header-title {
        font-size: 0.8em;
    }

    .wrapper {
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .wrapper .form-box {
        padding: 20px;
    }

    .input-box {
        height: 40px;
        margin: 15px 0;
    }

    .btn {
        margin-top: 15px;
        height: 40px;
    }

    .noticia-imagen {
        height: 180px;
    }

    .modal-header {
        height: 200px;
    }
}

@media (min-width: 769px) {
    body {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .accesibilidad-btn {
        left: 5px !important;
    }
}
.recuperar-link {
    text-align: center;
    margin-top: 15px;
}

.recuperar-link a {
    color: #1a237e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.recuperar-link a:hover {
    color: #303f9f;
    text-decoration: underline;
}

.pregunta-seguridad-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pregunta-seguridad-box i {
    color: #1565c0;
    font-size: 24px;
}

.pregunta-seguridad-box p {
    margin: 0;
    color: #1565c0;
    font-weight: 600;
}

.success-message-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message-box i {
    font-size: 20px;
}

.wrapper.active-popup {
    transform: scale(1);
}
/* Mejorar el overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

#overlay.active {
    display: block;
}

/* Mejorar el wrapper del formulario */
.wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 400px;
    max-width: 90%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.wrapper.active-popup {
    transform: translate(-50%, -50%) scale(1);
}

/* Botón de cerrar mejorado */
.icon-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.icon-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* Mejorar el formulario */
.form-box {
    padding: 40px 30px;
}

.form-box h2 {
    color: #1a237e;
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
}

/* Input boxes mejorados */
.input-box {
    position: relative;
    margin: 25px 0;
}

.input-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.input-box input:focus {
    background: white;
    border-color: #1a237e;
}

.input-box.error input {
    border-color: #c62828;
    background: #ffebee;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
    pointer-events: none;
    transition: 0.3s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: #1a237e;
    background: white;
    padding: 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #666;
}

/* Mensajes de error mejorados */
.error-text {
    display: block;
    color: #c62828;
    font-size: 13px;
    margin-top: 5px;
    margin-left: 5px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message-box {
    background: #ffebee;
    border-left: 4px solid #c62828;
    padding: 12px;
    border-radius: 5px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.error-message-box i {
    color: #c62828;
    font-size: 20px;
}

.error-message-box span {
    color: #c62828;
    font-size: 14px;
}

.success-message-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 12px;
    border-radius: 5px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.success-message-box i {
    color: #28a745;
    font-size: 20px;
}

.success-message-box span {
    color: #155724;
    font-size: 14px;
}

/* Botón mejorado */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a237e 0%, #303f9f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Links de recuperación */
.recuperar-link {
    text-align: center;
    margin-top: 20px;
}

.recuperar-link a {
    color: #1a237e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.recuperar-link a:hover {
    color: #303f9f;
    text-decoration: underline;
}

/* Pregunta de seguridad */
.pregunta-seguridad-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
}

.pregunta-seguridad-box i {
    color: #1565c0;
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pregunta-seguridad-box p {
    margin: 0;
    color: #0d47a1;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

/* Requisitos de contraseña */
.password-requirements {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 13px;
}

.password-requirements strong {
    display: block;
    margin-bottom: 8px;
    color: #e65100;
}

.password-requirements ul {
    margin: 5px 0 0 20px;
    padding: 0;
    color: #ef6c00;
}

.password-requirements li {
    margin: 3px 0;
}

/* Responsive */
@media (max-width: 480px) {
    .wrapper {
        width: 95%;
        border-radius: 15px;
    }
    
    .form-box {
        padding: 30px 20px;
    }
    
    .form-box h2 {
        font-size: 24px;
    }
}

/* Scrollbar personalizado para el wrapper */
.wrapper::-webkit-scrollbar {
    width: 8px;
}

.wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wrapper::-webkit-scrollbar-thumb {
    background: #1a237e;
    border-radius: 10px;
}

.wrapper::-webkit-scrollbar-thumb:hover {
    background: #303f9f;
}
