/* ===============================
   VARIABLES TEMA
================================ */
:root {
  --fondo: #ffffff;
  --texto: #111;
  --secundario: #666;
  --negro: #000000;
  --card: #f5f5f7;
}

[data-theme="dark"] {
  --fondo: #0f0f14;
  --texto: #f5f5f5;
  --secundario: #aaa;
  --card: #1a1a24;
}

/* ===============================
   RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

body {
  background: var(--fondo);
  color: var(--texto);
  transition: 0.4s;
}

/* ===============================
   HEADER
================================ */
.header {
  text-align: center;
  padding: 40px 20px;
}

.top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header h1 {
  font-size: clamp(32px, 8vw, 52px);
  color: var(--morado);
}

.header p {
  color: var(--secundario);
  font-size: clamp(14px, 3vw, 16px);
}

/* ===============================
   HERO
================================ */
.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h2 {
  font-size: clamp(28px, 6vw, 42px);
  color: var(--morado);
  line-height: 1.2;
}

.hero p {
  margin-top: 15px;
  color: var(--secundario);
  font-size: clamp(14px, 3vw, 18px);
}

.opacity-75 {
  opacity: 0.75;
}

.w-10 {
  width: 40px;
}

/* ===============================
   BOTÓN MODO
================================ */
.modo {
  background: var(--card);
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.modo:hover {
  transform: scale(1.1);
}

.modo:active {
  transform: scale(0.95);
}

/* ===============================
   SECCIONES
================================ */
.inicio {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.inicio h2 {
  margin-bottom: 30px;
  color: var(--morado);
  font-size: clamp(24px, 5vw, 32px);
  padding: 0 10px;
}

/* ===============================
   PRODUCTOS
================================ */
.catalogo,
.destacados {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.producto {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  flex: 1 1 280px;
  max-width: 350px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.producto img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
}

.producto h3 {
  margin-top: 15px;
  font-size: clamp(16px, 4vw, 20px);
}

.producto p {
  color: var(--secundario);
  margin-top: 8px;
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 600;
}

/* ===============================
   DETALLE PRODUCTO
================================ */
.detalle {
  display: flex;
  gap: 40px;
  padding: 40px 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria {
  flex: 1 1 300px;
  max-width: 500px;
}

.galeria img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

.miniaturas {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.miniaturas img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s;
}

.miniaturas img:hover {
  opacity: 1;
}

.info {
  flex: 1 1 300px;
  max-width: 500px;
}

.info h1 {
  font-size: clamp(28px, 6vw, 40px);
  color: var(--morado);
  line-height: 1.2;
}

.precio {
  font-size: clamp(20px, 4vw, 24px);
  margin: 20px 0;
  font-weight: 700;
}

.descripcion {
  color: var(--secundario);
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: clamp(14px, 3vw, 16px);
}

.btn {
  display: inline-block;
  padding: 15px 35px;

  /* 👇 VISIBLE SIEMPRE */
  background: var(--morado);
  color: #fff;

  border: 2px solid #2d1443;
  border-radius: 40px;

  text-decoration: none;
  font-weight: 600;
  cursor: pointer;

  transition: background 0.3s ease, transform 0.2s;
}

.btn:hover {
  background: #2d1443;
  transform: scale(1.05);
}
[data-theme="light"] .btn {
  color: var(--negro);
}

[data-theme="dark"] .btn {
  background: #2d1443;
}


/* ===============================
   ANIMACIONES APPLE
================================ */
.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   ADMIN PANEL
================================ */
.admin-login,
.admin-panel {
  max-width: 400px;
  margin: 100px auto;
  background: var(--card);
  padding: 40px;
  border-radius: 30px;
  text-align: center;
}

.admin-login input,
.admin-panel input,
.admin-panel textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 20px;
  border: none;
}

.admin-panel button {
  padding: 12px 25px;
  background: var(--morado);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

.producto-admin {
  display: flex;
  justify-content: space-between;
  background: #00000010;
  padding: 10px;
  border-radius: 15px;
  margin-top: 10px;
}

/* ===============================
   FOOTER
================================ */
.footer {
  text-align: center;
  padding: 40px;
  color: var(--secundario);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .inicio {
    padding: 30px 15px;
  }

  .detalle {
    padding: 30px 15px;
    gap: 30px;
  }

  .hero {
    padding: 40px 20px;
  }

  .header {
    padding: 30px 15px;
  }

  .producto {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .catalogo,
  .destacados {
    gap: 15px;
  }

  .galeria img {
    border-radius: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .producto {
    padding: 15px;
    border-radius: 15px;
  }

  .producto img {
    height: 180px;
  }

  .header h1 {
    font-size: 32px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .inicio h2 {
    font-size: 20px;
  }
}
.intro-card {
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

.intro-content {
  max-width: 1100px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-img {
  width: 45%;
  object-fit: cover;
}

.intro-text {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.intro-text p {
  font-size: 1rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .intro-content {
    flex-direction: column;
  }

  .intro-img {
    width: 100%;
    height: 220px;
  }
}
/* ===== TARJETA INTRO - MODO CLARO ===== */
.intro-card {
  background: transparent;
}

.intro-content {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* TEXTO */
.intro-text h2,
.intro-text p,
.intro-text strong {
  color: #111111;
}

/* ===== TARJETA INTRO - MODO OSCURO ===== */
html[data-theme="dark"] .intro-content {
  background: #141418; /* negro elegante */
  color: #f5f5f5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .intro-text h2,
html[data-theme="dark"] .intro-text p,
html[data-theme="dark"] .intro-text strong {
  color: #f5f5f5;
}
 /* ===== FORZAR CAMBIO DE FONDO EN INTRO CARD ===== */

/* MODO CLARO */
.intro-card,
.intro-content {
  background: #ffffff;
}

/* MODO OSCURO */
html[data-theme="dark"] .intro-card,
html[data-theme="dark"] .intro-content {
  background: #0f0f14 !important;
}
