* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #1f2937;
  line-height: 1.6;
  background-color: #f8fafc;
}

/* PALETA DE COLORES PRINCIPAL:
   Azul Petróleo: #102a43 (Estructura y elegancia)
   Naranja Fuerte: #ff5722 (Acción, ofertas y destaques)
   Verde Manzana: #7cb342 (Precios y frescura)
*/

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #102a43; /* Azul Petróleo */
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo h1 {
  color: #ffffff;
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 700;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 7.25rem;
  height: 7.25rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.logo-copy {
  display: grid;
  gap: 0.35rem;
}

.logo-copy span {
  color: #b9d85a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ff5722; /* Naranja Fuerte */
}

/* HERO / PORTADA */
.hero {
  background: linear-gradient(rgba(16, 42, 67, 0.75), rgba(16, 42, 67, 0.75)), url('https://picsum.photos/1200/500') center/cover;
  min-height: 680px;
  height: 72vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  position: relative;
  transition: background-image 0.5s ease;
}

.hero-cambio {
  animation: aparecer-portada 0.7s ease;
}

@keyframes aparecer-portada {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.hero-controls {
  position: absolute;
  right: 5%;
  top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-controls > button {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(16, 42, 67, 0.65);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.hero-indicadores {
  display: flex;
  gap: 0.4rem;
}

.hero-indicador {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-indicador.activo {
  background: #ff5722;
}

.hero h2 {
  max-width: 760px;
  margin: 0.35rem auto 0.75rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-content {
  width: min(90%, 820px);
}

.hero-content > p:not(.hero-eyebrow) {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-products {
  margin-top: 1rem !important;
  color: #b9d85a;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-eyebrow {
  color: #b9d85a;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (min-width: 641px) {
  .hero-content {
    transform: translateY(-7rem);
  }
}

.hero-paneles {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 0 5%;
}

.horarios {
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(4, 23, 39, 0.8);
}

.horarios-contenido {
  width: auto;
  padding: 0.5rem 1.5rem;
  border-left: 5px solid #b9d85a;
  text-align: center;
}

.horarios-etiqueta {
  display: block;
  color: #e64a19;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.horarios p {
  margin-top: 0.25rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.horarios strong {
  display: block;
  margin-top: 0.1rem;
  color: #ffffff;
  font-size: 1.8rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.75rem;
  background-color: #ff5722; /* Naranja Fuerte */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.2s, background-color 0.2s;
}

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

/* SECCIONES */
.section {
  padding: 4rem 5%;
}

.bg-light {
  background-color: #f1f5f9;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #102a43; /* Azul Petróleo */
  border-bottom: 3px solid #7cb342; /* Verde Manzana */
  display: inline-block;
  padding-bottom: 0.3rem;
}

.page-heading {
  padding: 3.5rem 5% 1rem;
  text-align: center;
}

.page-heading .section-title {
  margin-bottom: 1rem;
}

.page-heading .eyebrow {
  display: block;
}

.products-page-section {
  padding-top: 1rem;
}

.contact-page-section {
  padding-top: 1rem;
}

.nav-links a.activo {
  color: #b9d85a;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: 3rem;
  max-width: 950px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.about-photo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo img {
  display: block;
  width: min(100%, 440px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 12px rgba(16, 42, 67, 0.16));
}

.about-content p {
  max-width: 470px;
}

@media (max-width: 700px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .about-photo {
    max-width: 420px;
    margin: 0 auto;
  }

  .about-content p {
    margin: 0 auto;
  }
}

.section-intro {
  max-width: 640px;
  margin: -1rem auto 1.5rem;
  color: #64748b;
  text-align: center;
}

/* TARJETAS DE PRODUCTO */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
}

.card .media-producto {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card video.media-producto {
  background: #102a43;
}

.badge-oferta {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #ff5722; /* Naranja Fuerte */
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  color: #102a43; /* Azul Petróleo */
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.2rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
  color: #7cb342; /* Verde Manzana */
}

/* REDES SOCIALES */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(16, 42, 67, 0.12);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.social-btn i {
  font-size: 1.65rem;
  line-height: 1;
}

.social-btn:hover,
.social-btn:focus-visible {
  filter: brightness(0.92);
  box-shadow: 0 9px 18px rgba(16, 42, 67, 0.18);
  transform: translateY(-2px);
}

.whatsapp { background-color: #25d366; }
.instagram { background-color: #e1306c; }
.facebook { background-color: #1877f2; }

.location-block {
  margin: 3rem auto 0;
  max-width: 900px;
  border-top: 1px solid #dbe4ec;
  padding-top: 2rem;
}

.location-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.location-heading h3 {
  color: #102a43;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.eyebrow {
  color: #7cb342;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-link {
  color: #102a43;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.map-frame {
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.16);
}

.location-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.map-frame,
.video-frame {
  height: 360px;
}

.map-frame iframe,
.video-frame video {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 8px;
  background: #102a43;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.16);
}

.video-frame video {
  object-fit: cover;
}

.media-label {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  background: rgba(16, 42, 67, 0.88);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coordinates {
  margin-top: 0.65rem;
  color: #64748b;
  font-size: 0.8rem;
  text-align: right;
}

footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #102a43; /* Azul Petróleo */
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 2rem;
}

.admin-access {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.65rem 1rem;
  border: 1px solid #b9d85a;
  border-radius: 6px;
  color: #b9d85a;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.admin-access:hover,
.admin-access:focus-visible {
  background: #b9d85a;
  color: #102a43;
  transform: translateY(-2px);
}

.admin-image-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.admin-image-button .media-producto {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-image-button:focus-visible {
  outline: 3px solid #ff5722;
  outline-offset: 2px;
}

.admin-section { background: #ffffff; }
.admin-container { max-width: 900px; }
.admin-heading, .admin-panel-header, .admin-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.admin-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f8fafc;
}
.admin-form { display: grid; gap: 1rem; margin-top: 1rem; }
.admin-form label { display: grid; gap: 0.35rem; color: #102a43; font-weight: 600; }
.admin-form input, .admin-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.7rem;
  font: inherit;
  color: #1f2937;
  background: #ffffff;
}
.admin-form textarea { resize: vertical; }
.admin-field { display: grid; gap: 0.35rem; }
.field-label { color: #102a43; font-weight: 600; }
.file-picker {
  display: inline-flex !important;
  width: fit-content;
  padding: 0.65rem 0.9rem;
  border: 1px solid #102a43;
  border-radius: 6px;
  background: #102a43;
  color: #ffffff !important;
  cursor: pointer;
  font-size: 0.9rem;
}
.file-picker:hover { background: #1d4569; }
.file-picker input[type="file"] { display: none; }
.field-help { color: #64748b; font-size: 0.8rem; font-weight: 400; }
.image-preview { display: flex; align-items: center; gap: 0.75rem; color: #64748b; font-size: 0.85rem; }
.image-preview img, .image-preview video { width: 84px; height: 64px; border-radius: 6px; object-fit: cover; }
.image-preview .btn-danger { margin-left: auto; }
.product-gallery-preview { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.product-gallery-item { position: relative; }
.product-gallery-item img, .product-gallery-item video { display: block; width: 100px; height: 76px; border: 1px solid #dbe4ec; border-radius: 6px; object-fit: cover; }
.product-gallery-delete { position: absolute; top: 0.25rem; right: 0.25rem; width: 1.5rem; height: 1.5rem; border: 0; border-radius: 50%; background: #c62828; color: #ffffff; font-size: 1rem; line-height: 1; cursor: pointer; }
.site-media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.site-media-preview:empty { display: none; }
.site-media-preview img, .site-media-preview video {
  width: 120px;
  height: 76px;
  border: 1px solid #dbe4ec;
  border-radius: 6px;
  background: #102a43;
  object-fit: cover;
}
.site-media-item { position: relative; }
.site-media-delete {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 50%;
  background: #c62828;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.checkbox-label { display: flex !important; align-items: center; }
.checkbox-label input { width: auto; }
.admin-product-list { display: grid; gap: 0.7rem; margin-top: 1rem; }
.admin-product-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}
.admin-product-item > div:not(.item-actions) { display: grid; gap: 0.2rem; }
.admin-product-item span { color: #64748b; font-size: 0.85rem; }
.item-actions { display: flex; gap: 0.5rem; }

@media (max-width: 640px) {
  .navbar { padding: 0.7rem 4%; }
  .logo img { width: 5.25rem; height: 5.25rem; }
  .logo h1 { font-size: 1.35rem; }
  .logo-copy span { display: none; }
  .hero {
    min-height: 820px;
    height: auto;
    flex-direction: column;
    padding: 7rem 4% 2rem;
  }
  .hero h2 { font-size: 2rem; }
  .hero-content > p:not(.hero-eyebrow) { font-size: 0.95rem; }
  .hero-controls { top: 1rem; right: 4%; }
  .hero-paneles {
    position: static;
    width: 100%;
    margin-top: auto;
  }
  .horarios { padding: 1.2rem; }
  .location-heading { align-items: flex-start; flex-direction: column; }
  .location-media { grid-template-columns: 1fr; }
  .map-frame, .map-frame iframe, .video-frame, .video-frame video { height: 280px; }
  .coordinates { text-align: left; }
  .admin-heading, .admin-panel-header, .admin-list-heading { align-items: flex-start; flex-direction: column; }
  .admin-product-item { grid-template-columns: auto 1fr; }
  .item-actions { grid-column: 1 / -1; }
}