/* Estilos personalizados para EcoVecinos */

/* Colores principales */
:root {
  --primary: #76cff1; /* Azul principal similar al documento de referencia */
  --primary-dark: #1aafe7; /* Verde oscuro */
  --secondary: #fe9479; /* Amarillo */
  --accent: #F9CC56; /* Naranja/amarillo para destacados */
  --light-bg: #f5f7f9;
  --dark-bg: #292f44;
  --text-dark: #696d7c;
  --text-light: #fff;
}
/* Sobreescribir estilos del login */
.wrapper-page {
  margin: 5% auto !important;
  max-width: none !important;
  position: relative;
  width: 100%;
  /* Estilos adicionales para el login */
  body.fixed-left .wrapper-page .card {
    background-color: var(--dark-bg);
  }

  body.fixed-left .wrapper-page .card label,
  body.fixed-left .wrapper-page .card .form-control::placeholder,
  body.fixed-left .wrapper-page .card .text-muted {
    color: var(--text-light);
  }

  body.fixed-left .wrapper-page .card .btn-success {
    background-color: var(--accent);
    border-color: var(--accent);
  }
}

/* Estilos generales */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
}

/* Navbar personalizado */
.ecovecinos-navbar {
  background-color: var(--primary-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-content {
  flex: 1 0 auto;
}

.ecovecinos-navbar .navbar-brand {
  color: var(--text-light);
  font-weight: 600;
}

/* Ajustes del menú desplegable */
.ecovecinos-navbar .dropdown-menu {
  position: absolute;
  z-index: 1031;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ecovecinos-navbar .navbar-collapse {
  z-index: 1030;
}

@media (max-width: 991.98px) {
  .ecovecinos-navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1032;
  }
}
.ecovecinos-navbar .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.ecovecinos-navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Hero section / Slider principal */
.hero-slider {
  background: linear-gradient(to right, #A1D6F0, #CD7047);
  padding: 4rem 0;
}

.hero-slider h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-slider p {
  font-size: 1.2rem;
  color: white;
}

.hero-slider .hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.hero-slider .hero-benefits li {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.hero-slider .hero-benefits li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: white;
  font-weight: bold;
}

.hero-slider .btn {
  color: white;
}

.hero-slider img {
  max-width: 100%;
  height: auto;
}

/* Tarjetas para cupones */
.cupon-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
  background-color: white;
  height: 100%;
}

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

.cupon-card .card-img-top {
  height: 160px;
  object-fit: cover;
}

.cupon-card .card-body {
  padding: 1.25rem;
}

.cupon-card .card-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.cupon-card .card-text {
  color: #666;
  margin-bottom: 1rem;
}

.cupon-card .card-footer {
  background-color: rgba(0, 0, 0, 0.03);
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tarjetas para comercios */
.comercio-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.comercio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.comercio-card .comercio-logo {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  margin-top: -40px;
  background-color: white;
}

.comercio-card .card-body {
  padding-top: 50px;
  text-align: center;
}

/* Tarjetas para recompensas */
.recompensa-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.recompensa-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.recompensa-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

.recompensa-card .card-body {
  padding: 1.5rem;
}

.recompensa-card .puntos-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent);
  color: var(--text-light);
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Sliders horizontales */
.horizontal-slider {
  padding: 2rem 0;
}

.horizontal-slider .section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-bg);
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

/* Botones */
.btn-ecovecinos-primary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-ecovecinos-primary:hover {
  background-color: var(--accent);

  border-color: #008d4c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 166, 90, 0.3);
}

.btn-ecovecinos-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-ecovecinos-secondary:hover {
  background-color: #006da3;
  border-color: #006da3;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 136, 204, 0.3);
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 3rem 0;
  width: 100%;
  flex-shrink: 0;
  flex-shrink: 0;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent) !important;
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer ul li a:hover {
  color: var(--text-light);
}

/* Sección de categorías */
.categorias-section {
  padding: 3rem 0;
}

.categoria-item {
  text-align: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.categoria-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.categoria-item i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.categoria-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.categoria-item p {
  color: #666;
  font-size: 0.9rem;
}

/* Slider de cupones */
.cupones-slider .slick-track {
  padding: 20px 0;
}

.cupones-slider .slick-slide {
  margin: 0 10px;
}

.cupones-slider .slick-arrow {
  background-color: var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.cupones-slider .slick-prev {
  left: -20px;
}

.cupones-slider .slick-next {
  right: -20px;
}

/* Spinner indicador de puntos */
.puntos-spinner {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0%, #f3f3f3 0);
  margin-right: 15px;
}

.puntos-spinner::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  background-color: white;
  border-radius: 50%;
}

.puntos-spinner span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary);
}

/* Estilos para las páginas legales */
.legal-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.legal-card h2 {
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding-left: 15px;
  margin-top: 2rem;
}

.legal-card h3 {
  color: var(--secondary);
  margin-top: 1.5rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.legal-links a:hover {
  color: var(--text-light);
}

.cookie-settings-link {
  cursor: pointer;
}

/* Estilos para el banner de cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 1rem;
  z-index: 1050;
  display: none;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
  display: block;
}

.cookie-settings-modal {
  max-width: 600px;
}

.cookie-settings-modal .modal-header {
  background-color: var(--primary);
  color: white;
}

.cookie-settings-modal .modal-header .btn-close {
  color: white;
  opacity: 0.8;
}

.cookie-type {
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.cookie-type:last-child {
  border-bottom: none;
}

.cookie-type-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-type-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-switch .form-check-input:focus {
  border-color: rgba(0, 166, 90, 0.25);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(0, 166, 90, 0.25);
}

/* Estilos para la página de contacto */
.contact-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary);
  opacity: 0.8;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 166, 90, 0.25);
}

.active-link {
  font-weight: bold;
  color: var(--text-light) !important;
}

/* Media queries */
@media (max-width: 992px) {
  .hero-slider h1 {
    font-size: 2rem;
  }

  .hero-slider p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .horizontal-slider .section-title {
    font-size: 1.5rem;
  }

  .cupon-card .card-img-top {
    height: 140px;
  }

  .recompensa-card .card-img-top {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .hero-slider {
    padding: 2rem 0;
  }

  .hero-slider h1 {
    font-size: 1.5rem;
  }
}

/* Sobreescribir estilos del login */
.wrapper-page {
  margin: 5% auto;
  max-width: 100%;
  position: relative;
}
