| Descripción: |
====== */ .concesionarias-productos-grid { max-width: 1400px; margin: 30px auto; padding: 0 20px; font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; } /* Título */ .grid-titulo { font-size: 32px; font-weight: 800; color: #0b2d5c; margin-bottom: 40px; padding-bottom: 18px; border-bottom: 4px solid #1a73e8; text-align: center; letter-spacing: -0.5px; text-shadow: 0 1px 2px rgba(0,0,0,0.05); } /* Grid */ .productos-grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; } /* Tarjeta */ .producto-grid-item { display: flex; flex-direction: column; } .producto-card { background: #ffffff; border-radius: 16px; box-shadow: 0 4px 20px rgba(11, 45, 92, 0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e8f0fe; display: flex; flex-direction: column; height: 100%; position: relative; padding-top: 40px; /* Espacio para el avatar */ } .producto-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(26, 115, 232, 0.18); border-color: #a8c8f0; } /* Círculo con foto de perfil del usuario */ .producto-autor-avatar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 4px solid #1a73e8; box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; z-index: 10; background: #fff; } .producto-autor-avatar:hover { transform: translateX(-50%) scale(1.1); box-shadow: 0 6px 20px rgba(26, 115, 232, 0.5); } .producto-autor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; } /* Imagen cuadrada y enmarcada */ .producto-imagen-link { display: block; text-decoration: none; } .producto-imagen { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f0f6ff; display: flex; align-items: center; justify-content: center; border-bottom: 3px solid #1a73e8; } .producto-imagen img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; } .producto-card:hover .producto-imagen img { transform: scale(1.04); } /* Info */ .producto-info { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; text-align: center; } /* Título producto */ .producto-titulo { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 10px 0; color: #0b2d5c; min-height: 2.7em; display: flex; align-items: center; justify-content: center; } .producto-titulo a { color: #0b2d5c; text-decoration: none; transition: color 0.2s; } .producto-titulo a:hover { color: #1a73e8; } /* Precio */ .producto-precio { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; } .precio-simbolo { font-size: 18px; font-weight: 700; color: #1a73e8; } .precio-simbolo.usd { color: #0d47a1; } .precio-numero { font-size: 26px; font-weight: 800; color: #0b2d5c; letter-spacing: -0.5px; } /* Concesionaria */ .producto-concesionaria-nombre { font-size: 14px; font-weight: 700; color: #1a73e8; margin-bottom: 6px; text-align: center; background: #e8f0fe; padding: 4px 10px; border-radius: 20px; display: inline-block; align-self: center; } .producto-concesionaria-numero { font-size: 13px; color: #4a6a8a; margin-bottom: 4px; text-align: center; font-weight: 500; } /* Detalles */ .producto-detalles-lista { list-style: none; padding: 0; margin: 8px 0 14px; text-align: center; font-size: 13.5px; color: #3a5a7a; line-height: 1.9; } .producto-detalles-lista li { margin: 0; } /* Botón */ .btn-ver-detalle { display: inline-block; margin-top: auto; padding: 10px 20px; background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #ffffff !important; font-weight: 700; font-size: 14px; border-radius: 40px; text-decoration: none; text-align: center; transition: all 0.3s ease; align-self: center; border: none; box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25); letter-spacing: 0.3px; } .btn-ver-detalle:hover { background: linear-gradient(135deg, #0d47a1, #0b2d5c); transform: scale(1.04); box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4); color: #ffffff !important; } /* Mensaje sin productos */ .no-productos-msg { text-align: center; padding: 60px 20px; font-size: 18px; color: #4a6a8a; background: #f0f6ff; border-radius: 12px; border: 2px dashed #a8c8f0; margin: 30px auto; max-width: 600px; } /* Paginación */ .paginacion-productos-grid { margin-top: 40px; display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; } .btn-pagina-grid { background: #1a73e8; color: #ffffff !important; padding: 12px 24px; border-radius: 40px; text-decoration: none; font-weight: 700; font-size: 14px; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2); } .btn-pagina-grid:hover { background: #0d47a1; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3); color: #ffffff !important; } .info-pagina-grid { font-size: 14px; color: #3a5a7a; font-weight: 600; } /* Modal de avatar */ .modal-avatar { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 45, 92, 0.85); display: flex; justify-content: center; align-items: center; z-index: 9999; backdrop-filter: blur(4px); animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal-avatar-content { background: #ffffff; padding: 30px; border-radius: 20px; max-width: 400px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; animation: scaleIn 0.3s ease; } @keyframes scaleIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } } .modal-avatar-content img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid #1a73e8; box-shadow: 0 8px 24px rgba(26, 115, 232, 0.3); margin-bottom: 15px; } .modal-avatar-content p { font-size: 20px; font-weight: 700; color: #0b2d5c; margin: 0; } .modal-avatar-cerrar { position: absolute; top: 10px; right: 15px; font-size: 32px; font-weight: bold; color: #1a73e8; cursor: pointer; transition: color 0.2s; line-height: 1; } .modal-avatar-cerrar:hover { color: #0d47a1; } /* Responsive */ @media (max-width: 1100px) { .productos-grid-container { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 800px) { .productos-grid-container { grid-template-columns: repeat(2, 1fr); gap: 20px; } .grid-titulo { font-size: 26px; } .precio-numero { font-size: 22px; } .producto-autor-avatar { width: 60px; height: 60px; border-width: 3px; } .producto-card { padding-top: 35px; } } @media (max-width: 500px) { .productos-grid-container { grid-template-columns: 1fr; } .producto-card { border-radius: 12px; padding-top: 38px; } .producto-info { padding: 14px; } .grid-titulo { font-size: 22px; } .producto-autor-avatar { width: 55px; height: 55px; } .modal-avatar-content img { width: 150px; height: 150px; } .modal-avatar-content p { font-size: 17px; } } |