/* Repara Persianas — mismo aspecto que la web WordPress anterior:
   barra superior roja, cabecera negra, gris #454545, Roboto/Arial. */
:root {
  --rojo: #e00b0b;       /* #FF0E0E de la web anterior, algo más oscuro para contraste AA */
  --rojo-osc: #b80000;
  --negro: #000;
  --gris: #454545;
  --gris-claro: #f4f4f4;
  --texto: #333;
  --texto-suave: #5f5f5f;
  --borde: #ddd;
  --ancho: 1180px;
  --fuente: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fuente); font-size: 17px; line-height: 1.65; color: var(--texto); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rojo); }
a:hover { color: var(--rojo-osc); }
h1, h2, h3 { font-family: var(--fuente); line-height: 1.25; color: #222; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.estrecho { max-width: 860px; }
.centrado { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.ico { width: 1em; height: 1em; flex: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.4em; border-radius: 4px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; line-height: 1.2; transition: background .2s, color .2s; }
.btn-rojo { background: var(--rojo); color: #fff; }
.btn-rojo:hover { background: var(--rojo-osc); color: #fff; }
.btn-negro { background: #000; color: #fff; }
.btn-negro:hover { background: var(--gris); color: #fff; }
.btn-gris { background: var(--gris); color: #fff; }
.btn-gris:hover { background: #222; color: #fff; }
.btn-borde { border-color: #fff; color: #fff; }
.btn-borde:hover { background: #fff; color: #000; }
.btn-borde-oscuro { border-color: var(--gris); color: var(--gris); }
.btn-borde-oscuro:hover { background: var(--gris); color: #fff; }
.btn-grande { font-size: 1.2rem; padding: .8em 1.6em; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }

/* Barra superior y cabecera */
.top-bar { background: var(--rojo); color: #fff; font-size: .9rem; }
.top-bar-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 10px; }
.top-bar p { margin: 0; display: flex; align-items: center; gap: .4em; }
.top-tel { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: .4em; background: var(--gris); color: #fff; text-decoration: none; font-weight: 700; padding: 4px 12px; border-radius: 4px; }
.top-tel:hover { background: #000; color: #fff; }
.site-header { background: #000; position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.site-logo img { width: 160px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav > ul > li + li::before { content: ""; width: 1px; height: 14px; background: #fff; opacity: .8; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 16px; display: block; }
.main-nav a:hover, .main-nav .actual > a { color: #fff; box-shadow: inset 0 -3px 0 var(--rojo); }
.sub-toggle { display: none; }
.sub-menu { position: absolute; top: 100%; left: 0; background: #111; min-width: 260px; padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { padding: 8px 18px; font-weight: 500; }
.sub-menu a:hover { background: var(--rojo); box-shadow: none; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; padding: 8px; cursor: pointer; }

/* Héroe */
.hero { background: #111 linear-gradient(135deg, #000 0%, #2b2b2b 100%); color: #fff; padding: 48px 0; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero-pre { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: #ff8a8a; font-weight: 700; margin-bottom: .5em; }
.hero-lead { font-size: 1.15rem; color: #e6e6e6; }
.hero-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.lista-check { list-style: none; padding: 0; margin: 1em 0; }
.lista-check li { display: flex; gap: .6em; align-items: flex-start; margin-bottom: .35em; }
.lista-check .ico { color: var(--rojo); margin-top: .3em; }
.hero .lista-check .ico { color: #ff4d4d; }

/* Secciones de texto */
.seccion { padding: 56px 0; }
.seccion-gris { background: var(--gris-claro); }
.seccion-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.seccion-gris .seccion-in { grid-template-columns: 1fr 1.4fr; }
.seccion-gris .seccion-foto { order: -1; }
.seccion-foto img { width: 100%; border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; position: sticky; top: 100px; }
.seccion h2 { position: relative; padding-bottom: .4em; }
.seccion h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; background: var(--rojo); }
.items { display: grid; gap: 22px; margin-top: 1.4em; }
.items-3 { grid-template-columns: repeat(3, 1fr); }
.item { background: #fff; border-left: 4px solid var(--rojo); padding: 16px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.seccion-gris .item { background: #fff; }
.item p:last-child { margin-bottom: 0; }

/* Banda de llamada */
.cta { background: var(--rojo); color: #fff; padding: 28px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-tit { font-size: 1.45rem; font-weight: 700; margin: 0; }

/* Tarjetas de servicios */
.servicios { padding: 56px 0; }
.rejilla-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rejilla-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rejilla-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tarjeta { display: flex; flex-direction: column; background: var(--gris); color: #fff; text-decoration: none; border-radius: 4px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tarjeta:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.tarjeta img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tarjeta-tit { font-size: 1.4rem; font-weight: 600; text-align: center; padding: 18px 16px 6px; }
.tarjeta-txt { font-size: .95rem; color: #e3e3e3; text-align: center; padding: 0 18px 20px; }

/* Ventajas */
.ventajas { background: var(--gris); color: #fff; padding: 44px 0; }
.ventaja { text-align: center; }
.ventaja .ico { width: 42px; height: 42px; color: #ff4d4d; margin: 0 auto 10px; display: block; }
.ventaja-tit { font-size: 1.25rem; font-weight: 700; margin-bottom: .3em; }
.ventaja p:last-child { color: #e3e3e3; font-size: .95rem; }

/* Tipos de persiana */
.tipos { padding: 56px 0; background: var(--gris-claro); }
.tipo { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tipo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tipo h3 { font-size: 1.05rem; padding: 14px 14px 0; }
.tipo p { font-size: .92rem; padding: 0 14px 14px; margin: 0; color: var(--texto-suave); }

/* Marcas */
.marcas { padding: 44px 0; }
.marcas h2 { font-size: 1.3rem; }
.marcas-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; }
.marcas-logos img { width: 130px; filter: grayscale(1); opacity: .8; transition: .2s; }
.marcas-logos img:hover { filter: none; opacity: 1; }

/* Reseñas */
.resenas { padding: 56px 0; background: var(--gris-claro); }
.resena { background: #fff; margin: 0; padding: 20px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.resena blockquote { margin: 0 0 1em; font-style: italic; flex: 1; }
.resena figcaption { display: flex; align-items: center; gap: .6em; font-size: .9rem; color: var(--texto-suave); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--rojo); color: #fff; display: grid; place-items: center; font-weight: 700; }
.estrellas { color: #f5b301; display: flex; gap: 2px; margin-bottom: .6em; }
.resenas .rejilla-3 { margin-bottom: 1.4em; }

/* FAQ */
.faq { padding: 56px 0; }
.faq details { border: 1px solid var(--borde); border-radius: 4px; margin-bottom: 10px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq summary .ico { color: var(--rojo); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details[open] summary { background: var(--gris); }
.faq details[open] summary h3, .faq details[open] summary .ico { color: #fff; }
.respuesta { padding: 14px 18px 4px; }

/* Formulario */
.formulario { background: #111; color: #fff; padding: 56px 0; }
.formulario h2 { color: #fff; }
.form-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; color: var(--texto); padding: 24px; border-radius: 6px; }
.form label { display: flex; flex-direction: column; font-size: .9rem; font-weight: 600; gap: 4px; }
.form label span { color: var(--rojo); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea { font: inherit; padding: 10px 12px; border: 1px solid #bbb; border-radius: 4px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--rojo); border-color: transparent; }
.form .ancho { grid-column: 1 / -1; }
.form .privacidad { flex-direction: row; align-items: flex-start; font-weight: 400; }
.form .privacidad input { margin-top: .35em; }
.aviso { padding: 12px 16px; border-radius: 4px; grid-column: 1 / -1; margin: 0; }
.aviso.ok { background: #e6f6e6; color: #145214; }
.aviso.error { background: #fde8e8; color: #8a1010; }

/* Poblaciones */
.poblaciones { padding: 56px 0; }
.provincias { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px 28px; align-items: start; }
.desplegable { border: 1px solid var(--borde); border-radius: 4px; background: #fff; }
.desplegable summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; border-left: 4px solid var(--rojo); font-weight: 700; }
.desplegable summary::-webkit-details-marker { display: none; }
.desplegable summary::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--rojo); border-bottom: 2px solid var(--rojo); transform: rotate(45deg); transition: transform .2s; }
.desplegable[open] summary::after { transform: rotate(-135deg); }
.desplegable summary h3 { margin: 0; font-size: 1.1rem; }
.desplegable .cuenta { white-space: nowrap; font-size: .85rem; font-weight: 400; color: var(--gris); }
.desplegable .lista-pueblos { padding: 4px 16px 16px; }
.desplegable-ancho { max-width: 760px; margin: 0 auto 1.4em; }
.lista-pueblos .ver-provincia { flex-basis: 100%; }
.lista-pueblos .ver-provincia a { border: 0; padding-left: 0; color: var(--rojo); font-weight: 700; }
.lista-pueblos .ver-provincia a:hover { background: none; color: #222; }
.lista-pueblos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.lista-pueblos a { display: inline-block; font-size: .9rem; color: var(--gris); text-decoration: none; padding: 3px 10px; border: 1px solid var(--borde); border-radius: 20px; }
.lista-pueblos a:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.lista-ancha { justify-content: center; margin-bottom: 1.4em; }

/* Páginas interiores */
.cabecera-pagina { background: #111 linear-gradient(135deg, #000, #2b2b2b); color: #fff; padding: 44px 0; }
.cabecera-pagina h1 { color: #fff; margin: 0 0 .3em; }
.cabecera-pagina p { margin: 0; color: #ddd; font-size: 1.1rem; }
.texto h2 { margin-top: 1.4em; font-size: 1.4rem; }
.contacto-datos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.contacto-datos > div { display: flex; gap: 12px; padding: 18px; background: var(--gris-claro); border-radius: 4px; }
.contacto-datos .ico { width: 26px; height: 26px; color: var(--rojo); }
.contacto-datos p { margin: 0; }

/* Pie */
.site-footer { background: #000; color: #ccc; font-size: .95rem; padding-top: 44px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 30px; padding-bottom: 30px; }
.footer-cols img { margin-bottom: 12px; width: 150px; }
.footer-tit { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer a { color: #ccc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contacto li { display: flex; align-items: center; gap: .5em; }
.footer-contacto .ico { color: var(--rojo); }
.footer-legal { border-top: 1px solid #222; padding: 16px 0 90px; font-size: .85rem; text-align: center; }
.llamar-fijo { display: none; }

/* Aviso de cookies */
.cookies { position: fixed; left: 16px; bottom: 16px; max-width: 420px; background: #fff; color: var(--texto); padding: 18px; border-radius: 6px; box-shadow: 0 6px 30px rgba(0,0,0,.3); z-index: 90; font-size: .92rem; }
.cookies div { display: flex; gap: 10px; justify-content: flex-end; }
.cookies .btn { padding: .55em 1.1em; font-size: .92rem; }

/* Responsive */
@media (max-width: 1024px) {
  .rejilla-5 { grid-template-columns: repeat(3, 1fr); }
  .rejilla-4, .contacto-datos { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .items-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #000; max-height: calc(100vh - 116px); overflow-y: auto; }
  .main-nav.abierto { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .main-nav > ul > li { flex-wrap: wrap; }
  .main-nav > ul > li + li::before { display: none; }
  .main-nav > ul > li > a { flex: 1; padding: 12px 20px; }
  .sub-toggle { display: block; width: 52px; height: 46px; background: none; border: 0; color: #fff; cursor: pointer; position: relative; }
  .sub-toggle::after { content: ""; position: absolute; left: 50%; top: 45%; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
  .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; }
  .has-sub.abierto .sub-menu { display: block; }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.abierto:hover .sub-menu { display: block; }
  .hero-in, .seccion-in, .seccion-gris .seccion-in, .form-in { grid-template-columns: 1fr; }
  .seccion-gris .seccion-foto { order: 0; }
  .seccion-foto img { position: static; }
  .rejilla-3 { grid-template-columns: 1fr; }
  .rejilla-5 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 32px 0; }
  .seccion, .servicios, .tipos, .resenas, .faq, .formulario, .poblaciones { padding: 40px 0; }
  .llamar-fijo { display: flex; align-items: center; justify-content: center; gap: .5em; position: fixed; left: 0; right: 0; bottom: 0; background: var(--rojo); color: #fff; font-weight: 700; text-decoration: none; padding: 14px; z-index: 80; text-transform: uppercase; }
  .cookies { left: 8px; right: 8px; bottom: 60px; max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-bar p { font-size: .8rem; }
  .rejilla-4, .contacto-datos, .footer-cols, .form { grid-template-columns: 1fr; }
  .rejilla-5 { grid-template-columns: 1fr; }
  .cta-in { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
