.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  color: #000;
}

.card:hover {
  transform: scale(1.02);
  cursor: pointer;
  border-color: #007bff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-img-top {
  max-width: 12.5rem;
  max-height: 9.375rem;
  width: auto;
  height: auto;
  object-fit: cover;
  margin-bottom: 0.625rem;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


:root {
  --primary-color: #1c3d46;
  --secondary-color: #f97316;
  --accent-color: #06b6d4;
  --dark-bg: #1e293b;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.navbar {
  background: linear-gradient(135deg, var(--primary-color), cyan);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

.btn-logout {
  background-color: var(--secondary-color);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
}

.hero-section {
  background: linear-gradient(rgba(150, 211, 226, 0.8), rgba(10, 64, 73, 0.8)),
    url("/static/public/modern-technology-workspace-with-smartphones-lapto.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.products-bg {
  background: linear-gradient(rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.1)),
    url("../public/premium-smartphones-and-laptops-display-showcase-w.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.services-bg {
  background: linear-gradient(rgba(8, 145, 178, 0.1), rgba(6, 182, 212, 0.1)),
    url("/static/public/professional-tech-repair-workshop-with-tools-and-e.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.brands-bg {
  background: linear-gradient(rgba(249, 115, 22, 0.05), rgba(249, 115, 22, 0.05)),
    url("/static/public/modern-electronics-store-with-organized-product-ca.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color), cyan);
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.3);
  color: white;
}

.btn-secondary-custom {
  background: linear-gradient(135deg, orange, #ea580c);
  border: none;
  color: white;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.product-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 2rem;
}

.stats-section {
  background: var(--dark-bg);
  color: var(--white);
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.brand-logo {
  width: 7.5rem;
  height: 5rem;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.brand-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.carousel-item img {
  height: 25rem;
  object-fit: cover;
  border-radius: 15px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-indicators button {
  background-color: var(--primary-color);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.contact-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid lightgray;
  border-radius: 10px;
  padding: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
}

.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-color);
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .brand-logo {
    width: 100px;
    height: 60px;
  }
  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .brand-logo {
    width: 110px;
    height: 70px;
  }
  .contact-form {
    padding: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    background-attachment: scroll;
  }
  .products-bg,
  .services-bg,
  .brands-bg {
    background-attachment: scroll;
  }
  .navbar-brand {
    font-size: 1.5rem;
  }
  .btn-primary-custom {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rounded-custom {
  border-radius: 20px;
}

.login-background {
  background-image: url("/static/public/modern-electronics-store-with-organized-product-ca.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
}

/* Estilos para efecto parallax */
.parallax {
  min-height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.content {
  background-color: white;
  padding: 40px 20px;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
}

/* Sección de servicios con imagen de fondo */
.services-section {
  background-image: url('/static/public/professional-tech-repair-workshop-with-tools-and-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-overlay {
  background: rgba(28, 61, 70, 0.8); /* Color primario con transparencia */
  color: white;
  padding: 40px;
  text-align: center;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

/* Sección de marcas con la misma imagen de fondo */
.brands-section {
  background-image: url('/static/public/professional-tech-repair-workshop-with-tools-and-e.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brands-overlay {
  background: rgba(249, 115, 22, 0.8); /* Color secundario con transparencia */
  color: white;
  padding: 40px;
  text-align: center;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

/* Estilos compartidos para overlays */
.services-overlay h2,
.brands-overlay h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.services-overlay p,
.brands-overlay p {
  font-size: 1.3rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Parallax específico para servicios */
.services-parallax {
  background-image: url('/static/public/professional-tech-repair-workshop-with-tools-and-e.jpg');
}

/* Media queries para dispositivos móviles */
@media (max-width: 576px) {
  .services-section,
  .brands-section {
    background-attachment: scroll;
  }
  
  .services-parallax {
    background-attachment: scroll;
  }
  
  .services-overlay h2,
  .brands-overlay h2 {
    font-size: 2rem;
  }
  
  .services-overlay p,
  .brands-overlay p {
    font-size: 1.1rem;
  }
  
  .services-overlay,
  .brands-overlay {
    padding: 30px 20px;
  }
}
/* --- General --- */
body {
    padding-top: 70px; /* espacio por el navbar fijo */
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Navbar --- */
.navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
}
.text-primary-custom {
    color: #0d6efd !important;
}

/* --- Botones --- */
.btn-primary, .btn-success, .btn-danger {
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s;
}
.btn-primary:hover {
    background-color: #0b5ed7;
}
.btn-success:hover {
    background-color: #157347;
}
.btn-danger:hover {
    background-color: #bb2d3b;
}

/* --- Cards --- */
.card {
    border-radius: 12px;
    transition: transform 0.2s ease-in-out;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.card-header {
    font-weight: 600;
}

/* --- Tablas --- */
.table th {
    font-size: 0.9rem;
    text-transform: uppercase;
}
.table td {
    vertical-align: middle;
}
.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

/* --- Offcanvas admin --- */
.offcanvas-title {
    font-weight: bold;
}
.list-group-item a {
    text-decoration: none;
    color: #212529;
    display: block;
}
.list-group-item a:hover {
    color: #0d6efd;
    font-weight: 500;
}

/* --- Carrito --- */
.carrito-item {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 6px;
}
#carrito-items strong {
    color: #0d6efd;
}
#total-amount {
    font-size: 1.1rem;
    color: #198754;
}

/* --- Footer --- */
footer {
    background-color: #212529;
    color: #adb5bd;
    font-size: 0.9rem;
}
footer a {
    color: #0d6efd;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* --- Sistema de Mensajes de Soporte --- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), cyan);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
    color: white;
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), cyan) !important;
}

/* Estilos para mensajes no leídos */
.mensaje-no-leido {
    background-color: rgba(249, 115, 22, 0.1);
    border-left: 4px solid orange;
}

.mensaje-leido {
    background-color: #f8f9fa;
}

/* Responsive para mensajes */
@media (max-width: 768px) {
    .mensaje-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .mensaje-actions {
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Estilos para el formulario de registro */
.register-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.register-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), cyan);
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none;
}

.register-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), cyan);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.3);
    background: linear-gradient(135deg, cyan, var(--primary-color));
}

.register-card .form-label {
    color: black;
    font-weight: 500;
}

.register-card .form-control {
    border: 2px solid lightgray;
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.register-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(8, 145, 178, 0.25);
    background-color: white;
}

.register-card .input-group-text {
    background: linear-gradient(135deg, var(--primary-color), cyan);
    color: white;
    border: none;
    border-radius: 10px 0 0 10px;
}

.register-card .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.register-card .input-group .form-control:focus {
    border-left: 2px solid var(--primary-color);
    z-index: 3;
}
