:root {
  --negro: #000000;
  --azul-petroleo: #233D4D;
  --naranja: #FE7F2D;
  --gris-claro: #EAECF0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--negro);
  color: var(--gris-claro);
  line-height: 1.6;
}

.segunda-fila {
  margin-top: 28px;
}

h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.accent { color: var(--naranja); }

a { text-decoration: none; color: inherit; }

/* NAVBAR */
.navbar {
  background-color: var(--negro);
  border-bottom: 2px solid var(--azul-petroleo);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gris-claro);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--naranja); }

.cart-btn {
  position: relative;
  background-color: var(--naranja);
  border: none;
  color: var(--negro);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s;
}

.cart-btn:hover { background-color: #e56a1c; }

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--gris-claro);
  color: var(--negro);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--azul-petroleo) 0%, var(--negro) 100%);
  padding: 90px 24px;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}

.hero p {
  color: #c7ccd6;
  margin-bottom: 26px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--naranja);
  color: var(--negro);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background-color: #e56a1c;
  transform: translateY(-2px);
}

/* SECCIONES GENERALES */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 24px;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: #9aa2af;
  margin-bottom: 40px;
}

/* CATALOGO */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.producto-card {
  background-color: var(--azul-petroleo);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2e4c5e;
  transition: transform 0.2s, box-shadow 0.2s;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(254, 127, 45, 0.15);
}

.producto-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.producto-info {
  padding: 20px;
}

.producto-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.producto-info p {
  color: #c7ccd6;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.producto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.precio {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--naranja);
}

.btn-add {
  background-color: var(--negro);
  color: var(--gris-claro);
  border: 1px solid var(--naranja);
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.btn-add:hover {
  background-color: var(--naranja);
  color: var(--negro);
}

.disclaimer {
  text-align: center;
  color: #7b8494;
  font-size: 0.8rem;
  margin-top: 30px;
}

/* NOSOTROS */
.nosotros { background-color: #0a0a0a; }

.fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.fotos-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--azul-petroleo);
}

/* UBICACION */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.ubicacion-info {
  background-color: var(--azul-petroleo);
  border-radius: 10px;
  padding: 24px;
}

.ubicacion-info p {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ubicacion-info i { color: var(--naranja); }

.mapa {
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--azul-petroleo);
}

/* CONTACTO */
.contacto { background-color: #0a0a0a; }

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.contacto-item i {
  font-size: 2rem;
  color: var(--naranja);
  margin-bottom: 10px;
}

.contacto-item p {
  font-weight: 600;
  margin-bottom: 4px;
}

.contacto-item span {
  color: #c7ccd6;
  font-size: 0.9rem;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 24px;
  color: #6b7280;
  font-size: 0.85rem;
  border-top: 1px solid var(--azul-petroleo);
}

/* CARRITO LATERAL */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 200;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 380px;
  height: 100%;
  background-color: var(--azul-petroleo);
  z-index: 201;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--naranja);
}

.cart-panel.open { right: 0; }
.cart-overlay.open { display: block; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #345066;
}

.cart-header button {
  background: none;
  border: none;
  color: var(--gris-claro);
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-tipo {
  padding: 16px 20px;
  border-bottom: 1px solid #345066;
}

.cart-tipo p { margin-bottom: 8px; font-size: 0.9rem; }

.tipo-buttons { display: flex; gap: 8px; }

.tipo-btn {
  flex: 1;
  padding: 9px;
  border-radius: 6px;
  border: 1px solid var(--naranja);
  background: transparent;
  color: var(--gris-claro);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.tipo-btn.active {
  background-color: var(--naranja);
  color: var(--negro);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-empty {
  color: #9aa2af;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #345066;
}

.cart-item-info { flex: 1; }

.cart-item-info p {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background-color: #345066;
  color: var(--gris-claro);
  font-weight: 700;
  cursor: pointer;
}

.remove-item {
  background: none;
  border: none;
  color: #9aa2af;
  cursor: pointer;
  font-size: 1rem;
}

.remove-item:hover { color: var(--naranja); }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid #345066;
}

.cart-note {
  font-size: 0.75rem;
  color: #9aa2af;
  margin-bottom: 12px;
}

.btn-whatsapp {
  width: 100%;
  background-color: #22c55e;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
}

.btn-whatsapp:disabled {
  background-color: #4b5563;
  cursor: not-allowed;
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: #22c55e;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  z-index: 150;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .ubicacion-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}

/* IMAGEN DEL BOTÓN DE CARRITO */
.cart-icon-img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid #345066;
  color: var(--naranja);
}

/* IMAGEN DEL BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-icon-img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}