@charset "utf-8";
/*
 * Estilos de la web clásica de Florería Estherlicia.
 * Portados de css/estilos.css original (mismas medidas, colores e imágenes);
 * las tablas de maquetación pasaron a bloques, sin cambiar el aspecto.
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: content-box; }
html { background: #4d7f4c; }
body {
  margin: 0;
  color: #003366;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 16px;
  text-align: justify;
  background: #4d7f4c;
  min-width: 880px;
}
a { text-decoration: none; color: #06f; }
a:hover { text-decoration: underline; color: #c00; }
img { border: 0; vertical-align: middle; }
p { margin: 0; padding-bottom: 10px; text-align: justify; }
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
input, textarea {
  font: inherit;
  font-weight: normal;
  border: 1px solid #b8b9b9;
  background-color: #ecf6ff;
  padding: 4px;
}
select { margin-top: 4px; font-size: 14px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.centro { text-align: center; }
.borde { border: 1px solid #999; }
.color-rojo { color: #c00; }
.texto12 { font-size: 12px; }
.normal { font-weight: normal; }

/* ---------- Estructura (860 px, centrada, como la original) ---------- */
#todo_bg {
  width: 860px;
  margin: 16px auto 40px;
  border-top: 1px solid #b5b5b5;
  position: relative;
}
#header {
  position: relative;
  height: 200px;
  width: 858px;
  background: #0231c0 url("../img/base/header.jpg") no-repeat left top;
  border-left: 1px solid #999;
  border-right: 1px solid #999;
}
.nav-top {
  position: absolute;
  right: 28px;
  top: 52px;
  color: #fff;
  font-size: 15px;
  word-spacing: 6px;
}
.nav-top a { color: #fff; word-spacing: normal; }
.nav-top a:hover { color: #fc0; text-decoration: none; }

#contenido {
  width: 858px;
  background: #fff;
  border-left: 1px solid #999;
  border-right: 1px solid #999;
  overflow: hidden; /* contiene los floats */
  text-align: left;
}
.contenido-der { float: right; width: 650px; }
.contenido-izq { float: left; width: 200px; color: #c00; padding-bottom: 20px; }

#foot {
  width: 860px;
  height: 82px;
  position: relative;
  background: url("../img/base/footer.png") no-repeat;
  font-size: 11px;
}
#foot .credito { position: absolute; right: 14px; bottom: 6px; color: #999; font-size: 10px; }
.link_webstardata { font-size: 10px; color: #999; font-family: Verdana, Geneva, sans-serif; }
.link_webstardata:hover { color: #fc0; }

/* ---------- Rotador de banners (reemplaza jquery.cross-slide) ---------- */
.rotador {
  position: relative;
  width: 642px;
  height: 204px;
  margin-top: 6px;
  border: 1px solid #000;
  overflow: hidden;
}
.rotador img {
  position: absolute;
  inset: 0;
  width: 642px;
  height: 204px;
  object-fit: cover;
  object-position: 50% 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.rotador img.activo { opacity: 1; animation: paneo 6s linear forwards; }
.rotador img.activo.arriba { animation-name: paneo-arriba; }
@keyframes paneo { from { object-position: 50% 0; } to { object-position: 50% 100%; } }
@keyframes paneo-arriba { from { object-position: 50% 100%; } to { object-position: 50% 0; } }

/* ---------- Menú lateral ---------- */
.fondo-cate-top2 { height: 5px; }
.fnd-cates { background: url("../img/base/fnd-cates.jpg") repeat-y; }
.boton-pr {
  display: block;
  color: #036;
  font-size: 12px;
  padding: 4px 6px;
  background: #fc0;
  margin: 2px 3px;
}
.boton-pr:hover { color: #03f; text-decoration: none; background: #fc6; }
.select-tipo {
  display: block;
  padding: 0 6px 4px;
  background: #fc0;
  margin: 2px 3px;
  font-size: 12px;
}
.select-lado { width: 134px; }
.select-tipo-txt { width: 100%; background: #fc0; border: 0; color: #036; font-size: 12px; font-family: Arial, Helvetica, sans-serif; }
.td-categorias {
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  font-size: 26px;
  background: url("../img/base/fnd-1.jpg") no-repeat;
  margin-top: 2px;
}
.fondo-cate-top { background: url("../img/base/fondo-cate-top.png") no-repeat; height: 10px; margin-top: 4px; }
.fondo-cate-middle { background: url("../img/base/fondo-cate-middle.png") repeat-y; padding: 0 4px; }
.fondo-cate-bottom { background: url("../img/base/fondo-cate-bottom.png") no-repeat; height: 8px; }
.color-rojo2 {
  display: block;
  width: 186px;
  color: #c00;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid #c00;
  padding: 10px 0 3px;
  margin: 0 0 2px 2px;
}
.boton {
  display: block;
  color: #036;
  font-size: 15px;
  padding: 6px 0 6px 28px;
  background: url("../img/base/ico-categoria.png") no-repeat;
}
.boton:hover { color: #03f; text-decoration: none; }

.buscar { padding: 12px 2px 6px; text-align: center; }
.select-buscar { width: 68px; }
.input-buscar { width: 54px; vertical-align: middle; }
.btn-buscar { border: 0; background: #fc0; margin: 0; padding: 0; cursor: pointer; vertical-align: middle; }
.ejemplo { padding-top: 6px; font-size: 16px; color: #036; }

/* ---------- Contenido ---------- */
.titulo-base {
  color: #c00;
  font-size: 24px;
  font-weight: normal;
  line-height: 26px;
  margin: 0;
  padding: 14px 0 10px 10px;
}
.datos { margin: 6px 14px 0; }
.texto-pre { display: block; font-size: 15px; font-weight: bold; margin-top: 6px; }
.text-centro-abajo, .frase-centro { font-size: 16px; font-weight: bold; text-align: center; padding: 10px 0; }
.frase-centro { font-weight: normal; font-size: 14px; }
.lista-check { line-height: 20px; padding-left: 16px; list-style-type: disc; text-align: left; }
.lista-no-check { line-height: 20px; list-style-type: none; text-align: left; font-weight: bold; color: #333; padding: 0; margin: 10px 0 0; }
.sin-resultados { text-align: center; padding: 30px 0; font-size: 14px; }
.link_regresar { float: right; font-size: 12px; color: #000; font-family: Verdana, Geneva, sans-serif; margin-right: 20px; }

/* Portada: 8 categorías en 2 filas */
.portada-categorias { display: grid; grid-template-columns: repeat(4, 142px); gap: 16px; justify-content: center; margin: 20px 0; }
.box-prod { border: 1px solid #ccc; display: block; }
.box-prod:hover { border-color: #900; }

/* Listado: 4 columnas de 160 px, como la tabla original */
.grilla { display: grid; grid-template-columns: repeat(4, 155px); justify-content: center; row-gap: 16px; margin-top: 10px; }
.producto { width: 140px; margin: 0 auto; padding: 4px 0 10px; text-align: center; font-size: 12px; line-height: 14px; }
.producto:hover { background: #eee; }
.producto .desc { display: block; min-height: 28px; }
.producto .precio { display: block; font-weight: bold; margin-top: 12px; }
.producto .seleccionar { display: block; font-weight: bold; }

.paginador { text-align: center; padding: 10px 0 20px; font-size: 12px; }
.paginator-a { display: inline-block; width: 30px; height: 30px; line-height: 30px; background: url("../img/paginator-a.png") no-repeat; }
.paginator-hover { display: inline-block; width: 30px; height: 30px; line-height: 30px; background: url("../img/paginator-hover.png") no-repeat; color: #f00; font-weight: bold; font-size: 16px; }

/* Datos de contacto, tarjetas */
.datos-contacto { text-align: center; font-weight: bold; padding-top: 10px; }
.datos-contacto p { text-align: center; }
.tarjetas img { margin: 0 4px; }
.ico-tel { vertical-align: text-bottom; }

/* ---------- Formularios (pedido / contacto) ---------- */
.titulo-tabla { display: block; width: 100%; color: #fff; background: #0231c0; padding: 6px 4px; font-weight: bold; margin: 8px 0; }
.form-pedido label, .form-contacto label { display: grid; grid-template-columns: 140px 10px 1fr; align-items: center; margin: 6px 0; font-size: 15px; }
.form-pedido label > span, .form-contacto label > span { text-align: center; }
.form-pedido input, .form-pedido textarea, .form-contacto input, .form-contacto textarea { width: 180px; }
.form-pedido label.ancho input, .form-pedido label.ancho textarea,
.form-contacto label.ancho input, .form-contacto label.ancho textarea { width: 370px; }
.form-contacto label { grid-template-columns: 130px 10px 380px 20px; }
.form-pedido small { grid-column: 3; font-size: 14px; }
.pedido-cols { display: grid; grid-template-columns: 350px 196px; gap: 10px; }
.col-producto { text-align: center; font-size: 12px; }
.col-producto img { margin: 4px auto; display: block; }
.aviso { text-align: right; font-weight: bold; font-size: 15px; padding-right: 30px; }
.btn-img { border: 0; padding: 0; margin: 0 8px; background: none; cursor: pointer; }
.btn-img:disabled { opacity: .5; cursor: wait; }
.texto-estado { font-size: 15px; }
.texto-estado.error { color: #c00; font-weight: bold; }
input:user-invalid, textarea:user-invalid { border-color: #c00; background: #fff0f0; }
.btn-whatsapp { display: inline-block; background: #25d366; color: #fff; font-weight: bold; padding: 10px 18px; border-radius: 4px; }
.btn-whatsapp:hover { color: #fff; background: #1ebe5b; text-decoration: none; }

/* ---------- Visor de imágenes (reemplaza highslide) ---------- */
.visor { position: fixed; inset: 0; background: rgba(0, 0, 0, .75); display: flex; align-items: center; justify-content: center; z-index: 50; cursor: zoom-out; }
.visor figure { margin: 0; background: #fff; padding: 10px; text-align: center; }
.visor img { max-width: 80vw; max-height: 80vh; display: block; }
.visor figcaption { padding-top: 6px; font-size: 13px; }

.solo-movil { display: none; }

/* ---------- Celular y tablet (menos de 880 px) ----------
 * El diseño de escritorio no cambia: todo lo de abajo solo aplica en pantallas angostas.
 * El contenido va primero y el menú después (ya es su orden en el HTML), así el cliente
 * ve los productos sin bajar por 30 categorías; "Categorías" en la barra lleva al menú.
 */
@media (max-width: 879px) {
  *, *::before, *::after { box-sizing: border-box; }
  body { min-width: 0; text-align: left; }
  p { text-align: left; }
  .solo-movil { display: inline; }

  #todo_bg, #header, #contenido, #foot { width: auto; }
  #todo_bg { margin: 0; border-top: 0; }

  /* header.jpg mide 858x174: se escala completo y la barra azul queda debajo */
  #header { height: auto; border: 0; background-size: 100% auto; padding-top: calc(100% * 174 / 858); }
  .nav-top { position: static; text-align: center; padding: 8px 4px; word-spacing: 2px; font-size: 14px; line-height: 22px; }

  #contenido { border: 0; overflow: visible; }
  .contenido-der, .contenido-izq { float: none; width: auto; }
  .contenido-der { padding: 6px 6px 0; }
  .contenido-izq { padding: 10px 6px 20px; border-top: 4px solid #0231c0; }

  .rotador, .rotador img { width: 100%; height: auto; }
  .rotador { aspect-ratio: 642 / 204; margin-top: 0; }
  .rotador img { height: 100%; }

  .titulo-base { font-size: 20px; line-height: 24px; padding: 12px 0 8px 4px; }
  .datos { margin: 6px 4px 0; }
  .link_regresar { margin: 4px 0 0 8px; }

  .portada-categorias { grid-template-columns: repeat(2, 142px); gap: 12px; }
  .grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
  .producto { width: auto; max-width: 170px; }
  .producto img { width: 120px; height: auto; }
  .paginador { line-height: 36px; }

  /* Menú: mismos colores que las imágenes de fondo, en cajas que ocupan el ancho */
  .fnd-cates { background: none; }
  .boton-pr { font-size: 14px; padding: 10px 8px; }
  .select-tipo { padding: 4px 8px 8px; }
  .select-lado, .select-tipo-txt { width: 100%; font-size: 15px; padding: 6px 0; }
  .td-categorias { background: #9d0102; border-radius: 4px; }
  .fondo-cate-top, .fondo-cate-bottom { display: none; }
  .fondo-cate-middle { background: #fc0; border-radius: 8px; margin-top: 8px; padding: 0 8px 8px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
  .fondo-cate-middle > .color-rojo2, .fondo-cate-middle > form { grid-column: 1 / -1; }
  .color-rojo2 { width: auto; }
  .boton { font-size: 14px; padding: 8px 0 8px 26px; background-position: 0 50%; }
  .input-buscar { width: 90px; font-size: 16px; }
  .select-buscar { width: 80px; font-size: 16px; }

  /* Formularios en una columna; 16 px evita el zoom automático del iPhone al escribir */
  .form-pedido label, .form-contacto label { grid-template-columns: 1fr; margin: 8px 0; }
  .form-pedido label > span, .form-contacto label > span { display: none; }
  .form-pedido input, .form-pedido textarea, .form-contacto input, .form-contacto textarea,
  .form-pedido label.ancho input, .form-pedido label.ancho textarea,
  .form-contacto label.ancho input, .form-contacto label.ancho textarea { width: 100%; font-size: 16px; padding: 8px; }
  .form-pedido small { grid-column: auto; font-size: 13px; }
  .pedido-cols { grid-template-columns: 1fr; }
  .col-producto { order: -1; }
  .titulo-tabla { padding: 8px; }
  .aviso { text-align: center; padding-right: 0; }

  .tarjetas img { margin: 4px; max-width: 100%; height: auto; }
  .datos-contacto { font-size: 13px; }

  /* footer.png mide 860x82: se escala y el crédito pasa debajo */
  #foot { height: auto; padding-top: calc(100% * 82 / 860); background-size: 100% auto; }
  #foot .credito { position: static; display: block; text-align: center; padding: 6px; background: #4d7f4c; color: #ddd; }

  .margarita { width: 22px; height: 23px; }
}

/* ---------- Margaritas que caen ---------- */
/* fixed: caen sobre la ventana sin agrandar la página (sin barra horizontal) */
.margarita { position: fixed; top: 0; left: 0; width: 30px; height: 31px; pointer-events: none; z-index: 40; }
@media (prefers-reduced-motion: reduce) {
  .margarita { display: none; }
  .rotador img.activo { animation: none; }
}
