/* Estilos generales */
@import url('https://fonts.googleapis.com/css2?family=Helvetica+Neue:wght@400;700&display=swap');

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    /* Degradado blanco-azul muy suave */
    background: linear-gradient(180deg, #f6f8fa 0%, #e8f0fc 100%);
}

/* Encabezado */
header {
  background: #fff;
  padding: 15px 30px;
  color: #1d1d1f;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 12px 0 rgba(31, 38, 135, 0.04);
}

header h1 {
  color: #1d1d1f;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 20%;
}

nav a {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
nav a:hover {
  color: #0071e3;
  background: #f0f4fa;
}

/* Buscador */
.buscador {
  flex: 1 1 80%;
  display: flex;
  align-items: center;
  position: relative;
  max-width: 80%;
}

.buscador input {
  width: 100%;
  min-width: 120px;
  padding: 10px 10px 10px 35px;
  border-radius: 20px;
  border: 1px solid #d2d2d7;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s, background 0.2s;
}
.buscador input:focus {
  border: 1.5px solid #0071e3;
  background: #fff;
}
.buscador input::placeholder {
  color: #7d7d7d;
}
.buscador .icono {
  color: #0071e3;
}

/* Panel de productos estilo iCloud */
.principal {
  display: flex;
  padding: 20px;
  gap: 2rem;
  justify-content: center;
  background: transparent;
}

.productos {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fuerza 3 columnas */
  gap: 2rem;
  background: transparent;
}

.producto,
.tarjeta-novedad {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.06);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #ececec;
  
}
.producto:hover,
.tarjeta-novedad:hover {
  
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.13);
}

.producto h3,
.tarjeta-novedad h3 {
  color: #1d1d1f;
  font-weight: 700;
}

.producto p,
.tarjeta-novedad p {
  color: #0071e3; /* Azul Apple para destacar precios o detalles */
  font-weight: 700;
}

/* Botones principales */
.producto button,
.boton-finalizar,
.boton-principal {
  background: #0071e3;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.2s;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.producto button:hover,
.boton-finalizar:hover,
.boton-principal:hover {
  background: #005bb5;
  transform: scale(1.07);
}

/* Seleccionados */
.seleccionados {
  flex: 1;
  background: rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  min-width: 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.producto-seleccionado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  gap: 8px;
}

.producto-seleccionado span {
  flex: 1;
  color: #232f3e;
}

.producto-seleccionado button {
  background: #b3aaff;
  color: #232f3e;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.producto-seleccionado button:hover {
  background: #6a4cff;
  color: #fff;
}

.boton-finalizar {
  background: linear-gradient(90deg, #6a4cff 60%, #a18cd1 100%);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.boton-finalizar:hover {
  /* Quita el background */
  transform: scale(1.07);
}

.carrito-img, #carrito-productos img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-right: 10px;
}

/* Estilos del formulario de contacto */
.formulario-contenedor {
  max-width: 400px;
  margin: 40px auto;
  background: rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.13);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

.formulario-contenedor form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-contenedor label {
  font-weight: 700;
  color: #232f3e;
}

.formulario-contenedor input,
.formulario-contenedor select,
.formulario-contenedor textarea {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #b3aaff;
  background: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  outline: none;
  transition: border 0.2s, background 0.2s;
}

.formulario-contenedor input:focus,
.formulario-contenedor select:focus,
.formulario-contenedor textarea:focus {
  border: 1.5px solid #6a4cff;
  background: rgba(255,255,255,0.95);
}

/* Footer personalizado */
.footer-tienda {
  background: #fff;
  color: #232f3e;
  box-shadow: 0 -4px 24px 0 rgba(31, 38, 135, 0.10);
  padding: 24px 0 12px 0;
  margin-top: 40px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.footer-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #232f3e; /* Texto oscuro para contraste */
}

.footer-ig-logo {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  vertical-align: middle;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  background: #fff;
  padding: 1.5px;
  transition: transform 0.15s;
}

.footer-ig-logo:hover {
  transform: scale(1.18) rotate(-10deg);
  box-shadow: 0 2px 8px rgba(31,38,135,0.18);
}

@media (max-width: 900px) {
  .principal {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 1rem;
  }
  .productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }
  .seleccionados {
    max-width: 100%;
    margin-top: 1.5rem;
  }
}
/* Solo 1 columna en teléfonos MUY pequeños */
@media (max-width: 480px) {
  .productos {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-contenido {
    font-size: 0.95rem;
    gap: 6px;
  }
  .footer-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .productos {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.producto img,
.tarjeta-novedad img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
