Files
2026-06-30 14:57:45 -03:00

735 lines
17 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background-color: #fffef8;
color: #333;
}
/* ══════════════════════════════════════
NAVBAR
══════════════════════════════════════ */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 5%;
background-color: #e02828;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.info-contacto {
display: flex;
gap: 20px;
font-size: 13px;
color: #fffef8;
font-weight: 600;
}
.nav-links {
display: flex;
gap: 8px;
list-style: none;
align-items: center;
}
.nav-links > li > a {
text-decoration: none;
background-color: rgba(255,255,255,0.15);
color: #fff;
padding: 8px 18px;
border-radius: 50px;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
border: 1px solid rgba(255,255,255,0.25);
transition: all 0.25s ease;
}
.nav-links > li > a:hover {
background-color: #fff;
color: #e02828;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
display: none;
position: absolute;
right: 0;
top: calc(100% + 10px);
background: #fff;
min-width: 220px;
box-shadow: 0 15px 40px rgba(0,0,0,0.12);
border-radius: 12px;
z-index: 1000;
border: 1px solid rgba(224,40,40,0.08);
overflow: hidden;
}
.dropdown-content.show {
display: block;
animation: fadeInDropdown 0.18s ease-out;
}
@keyframes fadeInDropdown {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.dropdown-content a {
display: block !important;
padding: 11px 20px !important;
color: #444 !important;
text-decoration: none !important;
font-size: 13.5px !important;
border-bottom: 1px solid #f5f5f5;
transition: 0.15s;
font-weight: 500;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover {
background-color: #fff5f5 !important;
color: #e02828 !important;
padding-left: 26px !important;
}
/* ══════════════════════════════════════
HERO
══════════════════════════════════════ */
.hero {
width: 100%;
min-height: 82vh;
background-color: #fffef8;
background-image: url('imagenes/la-pecosa-inicio-opcion7.png');
background-size: 700px;
background-position: center 55%;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
padding-bottom: 56px;
position: relative;
}
.hero::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 6px;
background: linear-gradient(90deg, #e02828 0%, #ff6b6b 50%, #e02828 100%);
}
/* ══════════════════════════════════════
SLIDER
══════════════════════════════════════ */
.product-banner-slider {
width: 100%;
height: 300px;
overflow: hidden;
background: #fff;
border-top: 1px solid #f5f5f5;
border-bottom: 1px solid #f5f5f5;
position: relative;
}
.product-slider-wrapper {
display: flex;
width: max-content;
height: 100%;
animation: scroll-infinito 55s linear infinite;
}
.product-slide {
width: 380px;
height: 100%;
flex-shrink: 0;
}
.product-slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
@keyframes scroll-infinito {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
.product-banner-slider:hover .product-slider-wrapper {
animation-play-state: paused;
}
/* ══════════════════════════════════════
SECCIÓN INFO (NOSOTROS / HORARIOS)
══════════════════════════════════════ */
.seccion-info {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 32px;
padding: 70px 5%;
background-color: #fffef8;
}
.clean-card {
background: #fff;
border: 1px solid rgba(224, 40, 40, 0.1);
border-radius: 20px;
width: 100%;
max-width: 400px;
padding: 48px 40px;
text-align: center;
box-shadow: 0 4px 24px rgba(0,0,0,0.04);
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
position: relative;
overflow: hidden;
}
.clean-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #e02828, #ff8585);
opacity: 0;
transition: opacity 0.3s;
}
.clean-card:hover {
transform: translateY(-6px);
box-shadow: 0 16px 40px rgba(224, 40, 40, 0.1);
border-color: rgba(224, 40, 40, 0.25);
}
.clean-card:hover::before { opacity: 1; }
.clean-card-icon {
width: 72px;
height: 72px;
background: #fff5f5;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 24px;
transition: background 0.3s;
}
.clean-card:hover .clean-card-icon { background: #fee2e2; }
.clean-card-icon i {
font-size: 2rem;
color: #e02828;
}
.clean-card h2 {
color: #1a1a1a;
font-size: 1.4rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 18px;
position: relative;
}
.clean-card h2::after {
content: '';
display: block;
width: 40px;
height: 3px;
background: #e02828;
margin: 10px auto 0;
border-radius: 2px;
transition: width 0.3s;
}
.clean-card:hover h2::after { width: 64px; }
.clean-card-body {
color: #555;
font-size: 1rem;
line-height: 1.8;
}
.clean-card-body p { margin: 10px 0; }
.highlight-red {
color: #e02828;
font-weight: 700;
}
/* ══════════════════════════════════════
MODALES
══════════════════════════════════════ */
.modal {
display: none;
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.55);
backdrop-filter: blur(5px);
justify-content: center;
align-items: center;
z-index: 9999;
}
.modal-content {
background: #fff;
padding: 40px;
border-radius: 20px;
width: 90%;
max-width: 550px;
text-align: center;
box-shadow: 0 24px 60px rgba(0,0,0,0.2);
position: relative;
animation: modalIn 0.25s ease;
}
@keyframes modalIn {
from { opacity: 0; transform: scale(0.96) translateY(10px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-content button {
background: #e02828;
color: #fff;
padding: 12px 28px;
border-radius: 50px;
border: none;
font-weight: 700;
text-transform: uppercase;
cursor: pointer;
transition: 0.25s;
margin-top: 16px;
}
.modal-content button:hover {
background: #c71f1f;
transform: translateY(-1px);
}
/* ══════════════════════════════════════
BARRA INFERIOR FIJA
══════════════════════════════════════ */
.bottom-bar {
position: fixed;
bottom: 0;
width: 100%;
background: #e02828;
color: #fffef8;
padding: 12px 5%;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
}
.footer-text {
font-size: 0.85rem;
font-weight: 600;
opacity: 0.9;
}
.btn-red {
background: rgba(255,255,255,0.15);
color: #fff;
border: 1px solid rgba(255,255,255,0.3);
padding: 9px 20px;
border-radius: 50px;
font-size: 0.875rem;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
gap: 9px;
text-decoration: none;
transition: all 0.25s;
}
.btn-red:hover {
background: #fff;
color: #e02828;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#cart-count {
background: #fff;
color: #e02828;
font-size: 0.72rem;
width: 22px;
height: 22px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
font-weight: 800;
transition: all 0.25s;
}
.btn-red:hover #cart-count {
background: #e02828;
color: #fff;
outline: 2px solid #fff;
}
/* ══════════════════════════════════════
CHATBOT — Botón circular
══════════════════════════════════════ */
#chat-circle {
position: fixed;
bottom: 76px;
right: 24px;
background: #e02828;
width: 56px;
height: 56px;
border-radius: 50%;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
cursor: pointer;
box-shadow: 0 6px 20px rgba(224,40,40,0.4);
z-index: 999;
transition: transform 0.2s, box-shadow 0.2s;
}
#chat-circle:hover {
transform: scale(1.08);
box-shadow: 0 8px 24px rgba(224,40,40,0.5);
}
/* ══════════════════════════════════════
CHATBOT — Ventana
══════════════════════════════════════ */
.chat-box {
display: none;
position: fixed;
bottom: 148px;
right: 24px;
width: 310px;
background: #fff;
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0,0,0,0.18);
z-index: 999;
overflow: hidden;
flex-direction: column;
animation: chatIn 0.2s ease;
}
@keyframes chatIn {
from { opacity: 0; transform: translateY(10px) scale(0.97); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-box-header {
background: #e02828;
color: #fff;
padding: 14px 16px;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 700;
font-size: 0.9rem;
}
.chat-box-body {
height: 230px;
padding: 12px;
overflow-y: auto;
background: #fafafa;
display: flex;
flex-direction: column;
gap: 6px;
}
/* Scrollbar del chat */
.chat-box-body::-webkit-scrollbar { width: 4px; }
.chat-box-body::-webkit-scrollbar-track { background: transparent; }
.chat-box-body::-webkit-scrollbar-thumb { background: #f0c0c0; border-radius: 4px; }
/* Mensaje del bot */
.chat-msg { width: 100%; }
.cm-msg-text {
background: #fff;
padding: 10px 12px;
border-radius: 0 10px 10px 10px;
box-shadow: 0 1px 4px rgba(0,0,0,0.06);
font-size: 13.5px;
border-left: 3px solid #e02828;
line-height: 1.5;
display: inline-block;
max-width: 90%;
}
/* Mensaje del promo */
.chat-promo .cm-msg-text {
border-left-color: #e02828;
background: #fff5f5;
}
/* Mensaje del usuario (derecha) */
.chat-msg-user {
align-self: flex-end;
background: #e02828;
color: #fff;
padding: 9px 13px;
border-radius: 10px 10px 0 10px;
font-size: 13.5px;
max-width: 80%;
word-break: break-word;
margin-left: auto;
}
/* Opciones dentro del chat (botones de pago, etc.) */
.chat-opciones {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 4px;
}
/* Links dentro del chat (teléfonos, redes, etc.) */
.chat-links {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 4px;
}
.chat-link-btn {
display: block;
padding: 9px 14px;
background: #e02828;
color: #fff;
border-radius: 8px;
text-decoration: none;
font-size: 13px;
font-weight: 600;
text-align: center;
transition: background 0.2s, transform 0.15s;
}
.chat-link-btn:hover {
background: #c71f1f;
transform: translateY(-1px);
}
.chat-link-ig { background: #e1306c; }
.chat-link-ig:hover { background: #c0255a; }
.chat-link-mail { background: #4285f4; }
.chat-link-mail:hover { background: #2b6fd4; }
/* ══════════════════════════════════════
CHATBOT — Input
══════════════════════════════════════ */
.chat-input-wrapper {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 10px 6px;
background: #fff;
border-top: 1px solid #f0f0f0;
}
#chat-input-text {
flex: 1;
padding: 8px 12px;
border: 1px solid #e5e7eb;
border-radius: 20px;
font-size: 13px;
outline: none;
background: #fafafa;
color: #333;
transition: border-color 0.2s;
}
#chat-input-text:focus {
border-color: #e02828;
background: #fff;
}
.chat-send-btn {
width: 34px;
height: 34px;
background: #e02828;
color: #fff;
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
flex-shrink: 0;
transition: background 0.2s, transform 0.15s;
}
.chat-send-btn:hover {
background: #c71f1f;
transform: scale(1.05);
}
/* Sugerencias debajo del input */
.chat-hints {
padding: 0 12px 8px;
font-size: 11px;
color: #aaa;
background: #fff;
text-align: center;
line-height: 1.4;
}
/* Botones de opción dentro del chat (retiro/envío) */
.opt-btn {
padding: 8px 10px;
font-size: 12px;
border: 1px solid #e5e7eb;
border-radius: 7px;
background: #fafafa;
cursor: pointer;
font-weight: 600;
color: #374151;
transition: all 0.15s;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
width: 100%;
}
.opt-btn:hover {
background: #fee2e2;
border-color: #fca5a5;
color: #e02828;
}
/* ══════════════════════════════════════
ALERTA PROMO FLOTANTE
══════════════════════════════════════ */
#alerta-flotante-promo {
position: fixed;
bottom: 80px;
left: 24px;
background: #fff;
box-shadow: 0 8px 30px rgba(0,0,0,0.15);
border-radius: 14px;
padding: 16px 20px;
max-width: 300px;
z-index: 9999;
display: none;
border-left: 4px solid #e02828;
opacity: 0;
transform: translateX(-16px);
transition: all 0.4s ease;
}
/* ══════════════════════════════════════
USUARIO EN NAV
══════════════════════════════════════ */
.user-name-nav {
display: inline-block;
background: rgba(255,255,255,0.2);
color: #fff;
padding: 8px 18px;
border-radius: 50px;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
border: 1px solid rgba(255,255,255,0.3);
}
.user-badge-nav {
display: inline-block;
background: #1a1a1a;
color: #fffef8;
padding: 8px 18px;
border-radius: 50px;
font-size: 12px;
font-weight: 700;
}
/* ══════════════════════════════════════
RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
.hero {
background-size: 90%;
min-height: 52vh;
padding-bottom: 30px;
}
.navbar {
flex-direction: column;
gap: 10px;
padding: 12px 4%;
}
.nav-links {
gap: 6px;
flex-wrap: wrap;
justify-content: center;
}
.nav-links > li > a {
padding: 6px 12px;
font-size: 11px;
}
.bottom-bar {
flex-direction: column;
gap: 8px;
text-align: center;
padding: 10px;
}
.seccion-info {
padding: 44px 5%;
gap: 22px;
}
.clean-card {
padding: 36px 26px;
}
.product-banner-slider { height: 220px; }
.product-slide { width: 280px; }
.chat-box {
width: calc(100vw - 32px);
right: 16px;
bottom: 130px;
}
#alerta-flotante-promo {
max-width: calc(100vw - 48px);
left: 16px;
}
}