/* Plásticos Coral — sitio estático, HTML5 simple */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #099999; }
a:hover { color: #ff8201; }
h1, h2, h3 { color: #099999; line-height: 1.25; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
hr { border: 0; border-top: 2px solid #099999; margin: 1.5rem 0; }
.contenedor { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Cabecera */
header { background: #fff; border-bottom: 3px solid #ff8201; }
.cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo img { width: 160px; height: auto; }
.logo-texto { line-height: 1.2; }
.logo-texto .nombre { display: block; font-size: 1.5rem; font-weight: 700; color: #ff8201; }
.logo-texto .lema { display: block; font-size: 0.95rem; color: #666; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
nav a { display: block; padding: 0.5rem 0.9rem; text-decoration: none; color: #444; font-weight: 600; border-radius: 4px; }
nav a:hover, nav a.activo { background: #099999; color: #fff; }
.idioma { font-size: 0.9rem; }
.desplegable { position: relative; }
.desplegable .submenu {
  display: none; position: absolute; left: 0; top: 100%; z-index: 10;
  min-width: 230px; background: #fff; border: 1px solid #ddd; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); padding: 0.25rem 0;
}
.desplegable:hover .submenu, .desplegable:focus-within .submenu { display: block; }
.submenu li { list-style: none; }
.submenu a { padding: 0.4rem 0.9rem; font-weight: 400; }
.submenu a:hover { background: #f4fafa; color: #099999; }

/* Contenido */
main { padding: 1.5rem 1rem 3rem; }
.centrado { text-align: center; }
.intro { font-size: 1.15rem; text-align: justify; }
.intro strong { color: #099999; }
.carrusel { position: relative; margin-bottom: 1.5rem; }
.carrusel .diapositiva { display: none; width: 100%; height: 340px; object-fit: cover; border-radius: 6px; }
.carrusel .diapositiva.activa { display: block; }
.carrusel .puntos { position: absolute; bottom: 0.6rem; left: 0; right: 0; text-align: center; }
.carrusel .puntos span { display: inline-block; width: 10px; height: 10px; margin: 0 3px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; }
.carrusel .puntos span.activo { background: #ff8201; }

/* Rejilla de tarjetas */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.tarjeta { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff; }
.tarjeta img { width: 100%; height: 200px; object-fit: cover; }
.tarjeta h2 { font-size: 1.1rem; margin: 0.75rem 1rem 0.25rem; }
.tarjeta.categoria a { text-decoration: none; color: inherit; display: block; }
.tarjeta.categoria a:hover h2 { color: #ff8201; }
.tarjeta.categoria h2 { margin-bottom: 0.75rem; text-align: center; }
.tarjeta.producto .detalles { padding: 0 1rem 1rem; font-size: 0.95rem; }
.tarjeta.producto .detalles p { margin: 0.3rem 0; }

/* Páginas de categoría */
.categoria-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.categoria-layout aside { background: #f4fafa; border: 1px solid #cfe8e8; border-radius: 8px; padding: 1rem; }
.categoria-layout aside h2 { margin-top: 0; }
ul.categorias { list-style: none; margin: 0; padding: 0; }
ul.categorias li { border-bottom: 1px solid #dbeeee; }
ul.categorias li:last-child { border-bottom: 0; }
ul.categorias a { display: block; padding: 0.45rem 0.25rem; text-decoration: none; color: #444; }
ul.categorias a:hover, ul.categorias a.activo { color: #ff8201; }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.mapa iframe { width: 100%; height: 350px; border: 0; border-radius: 8px; }
form input[type="text"], form input[type="email"], form textarea {
  width: 100%; max-width: 560px; padding: 0.6rem; border: 1px solid #bbb;
  border-radius: 4px; font: inherit;
}
form button {
  background: #ff8201; color: #fff; border: 0; border-radius: 4px;
  padding: 0.7rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer;
}
form button:hover { background: #e57300; }

/* Pie */
footer { background: #222; color: #ddd; }
.pie { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; padding-top: 2rem; padding-bottom: 1rem; }
.pie h2 { color: #fff; font-size: 1.15rem; }
.pie a { color: #7fd4d4; }
.legal { text-align: center; margin: 0; padding: 0 1rem 1.25rem; font-size: 0.9rem; color: #aaa; }

/* Móvil */
@media (max-width: 700px) {
  .categoria-layout, .contacto { grid-template-columns: 1fr; }
  .logo-texto .nombre { font-size: 1.2rem; }
  h1 { font-size: 1.5rem; }
  .carrusel .diapositiva { height: 220px; }
  .desplegable .submenu { position: static; box-shadow: none; border: 0; }
  .desplegable:hover .submenu { display: none; }
  .desplegable:focus-within .submenu { display: block; }
}
