*{box-sizing:border-box}:root{--bg:#0a0d17;--card:#121829;--line:#232a47;--ink:#eaf0ff;--mut:#9aa6c9;--a:#1fb6ff;--b:#7a4bff;color-scheme:dark}
html{scroll-padding-top:env(safe-area-inset-top,0)}
body{margin:0;font:400 17px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);padding-top:env(safe-area-inset-top,0);padding-bottom:env(safe-area-inset-bottom,0)}
a{color:inherit}h1,h2,h3{line-height:1.12;margin:0;letter-spacing:-.02em}
header{position:sticky;top:0;background:rgba(10,13,23,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);z-index:5}
.bar{max-width:1080px;margin:auto;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:700;font-size:22px}.logo img{height:36px;width:auto}.logo span{color:var(--a)}
nav{display:flex;gap:2px;flex-wrap:wrap}nav a{text-decoration:none;padding:8px 11px;border-radius:8px;font-size:15px;color:var(--mut)}nav a:hover{color:var(--ink)}nav a.on{color:var(--ink);background:#1a2140}
main{max-width:1080px;margin:auto;padding:64px 20px 80px}
.hero h1{font-size:clamp(38px,6.5vw,72px);max-width:15ch}.hero h1 em{font-style:normal;background:linear-gradient(90deg,var(--a),var(--b));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{font-size:20px;color:var(--mut);max-width:54ch;margin:22px 0 30px}
.btn{display:inline-block;padding:13px 22px;border-radius:10px;text-decoration:none;font:600 16px system-ui,sans-serif;color:#fff;background:linear-gradient(90deg,#1b8cff,var(--b));border:0;cursor:pointer}
.btn.g{background:transparent;border:1px solid var(--line);margin-left:8px}.btn.wa{background:#1fa855}
:focus-visible{outline:3px solid var(--a);outline-offset:2px}
h2{font-size:clamp(30px,4.5vw,44px);margin-bottom:10px}.lead{color:var(--mut);max-width:56ch;margin:0 0 34px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.card{background:rgba(18,24,41,.88);border:1px solid var(--line);border-radius:14px;padding:24px}.card h3{font-size:21px;margin-bottom:8px}.card p{margin:0;color:var(--mut);font-size:16px}
.card.lock{border-color:#6b5524;background:rgba(40,32,14,.7)}.card.lock svg{float:right;color:#e0b45a}
.price{font-size:54px;font-weight:700;line-height:1}.price small{font-size:17px;color:var(--mut);font-weight:400}
ul.ok{padding:0;list-style:none;margin:16px 0 0}ul.ok li{padding:7px 0 7px 26px;position:relative;border-top:1px solid var(--line)}ul.ok li:before{content:"✓";position:absolute;left:0;color:var(--a)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media(max-width:760px){.two{grid-template-columns:1fr}.btn.g{margin:10px 0 0}}
label{display:block;margin:14px 0 6px;font-size:15px}input,textarea{width:100%;padding:12px;border-radius:10px;border:1px solid var(--line);background:#0d1222;color:var(--ink);font:inherit}
.cta{margin-top:50px;padding:28px;border-radius:14px;border:1px solid var(--line);background:rgba(18,24,41,.88);display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
footer{border-top:1px solid var(--line);padding:26px 20px;text-align:center;color:var(--mut);font-size:14px;background:rgba(10,13,23,.8)}
body::before{content:"";position:fixed;inset:0;z-index:-1;background:url(/img/fondo.jpg) center/cover no-repeat}
@media (max-aspect-ratio:1/1){
body::before{position:absolute;inset:0 0 auto 0;height:56.25vw;min-height:260px;background-size:100% 100%;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
}

details{border-bottom:1px solid var(--line);padding:16px 0;max-width:820px}summary{cursor:pointer;font-weight:600}details p{color:var(--mut);margin:10px 0 0}

details{border-bottom:1px solid var(--line);padding:16px 0;max-width:820px}summary{cursor:pointer;font-weight:600}details p{color:var(--mut);margin:10px 0 0}

/* =====================================================
   NOEMIA · REDISEÑO VISUAL INTEGRAxIA
   Capa visual adicional · Sin modificar contenidos
   ===================================================== */

:root {
  --bg: #080d19;
  --card: #111b2e;
  --line: rgba(145, 171, 220, .17);
  --ink: #f2f6ff;
  --mut: #a9b7d1;
  --a: #35baff;
  --b: #8870ff;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background:
    radial-gradient(ellipse at 15% 5%, rgba(34, 113, 190, .17), transparent 36%),
    radial-gradient(ellipse at 90% 35%, rgba(103, 69, 190, .12), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  opacity: .16;
  filter: brightness(.48) saturate(.65);
  pointer-events: none;
}

header {
  background: rgba(7, 12, 24, .88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bar {
  max-width: 1160px;
  min-height: 70px;
  padding: 12px 24px;
}

.logo {
  font-size: 23px;
  letter-spacing: -.7px;
}

.logo img {
  height: 38px;
}

nav {
  gap: 5px;
}

nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}

nav a:hover,
nav a.on {
  background: rgba(53, 186, 255, .11);
  color: #fff;
}

main {
  max-width: 1160px;
  padding: 76px 24px 96px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(34px, 7vw, 76px);
  margin-bottom: 48px;
  border: 1px solid rgba(92, 158, 235, .22);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(105, 83, 230, .19), transparent 42%),
    linear-gradient(135deg, rgba(20, 42, 72, .94), rgba(12, 20, 39, .94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  right: -110px;
  bottom: -170px;
  border-radius: 50%;
  background: rgba(53, 186, 255, .12);
  filter: blur(45px);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(38px, 6.5vw, 70px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hero h1 em {
  background: linear-gradient(100deg, #53c9ff, #a18aff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  color: #bdcbe2;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.035em;
}

h3 {
  letter-spacing: -.02em;
}

.lead {
  color: var(--mut);
  font-size: 17px;
  line-height: 1.75;
}

.grid {
  gap: 20px;
}

.card,
.cta {
  background: linear-gradient(145deg, rgba(20, 32, 54, .96), rgba(14, 23, 41, .96));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .13);
}

.card {
  padding: 27px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 186, 255, .36);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: var(--mut);
  line-height: 1.7;
}

.card.lock {
  background: linear-gradient(145deg, rgba(47, 39, 25, .65), rgba(25, 25, 34, .95));
  border-color: rgba(224, 180, 90, .28);
}

.btn {
  padding: 13px 22px;
  border-radius: 11px;
  background: linear-gradient(110deg, #168fe4, #6558e9);
  box-shadow: 0 7px 22px rgba(43, 126, 220, .2);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 10px 28px rgba(43, 126, 220, .3);
}

.btn.g {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(160, 185, 225, .25);
  box-shadow: none;
}

.btn.g:hover {
  background: rgba(53, 186, 255, .09);
  border-color: rgba(53, 186, 255, .45);
}

.btn.wa {
  background: #168e59;
  box-shadow: 0 7px 22px rgba(22, 142, 89, .18);
}

.price {
  color: #fff;
  letter-spacing: -2px;
}

.price small {
  letter-spacing: 0;
}

ul.ok li {
  border-color: rgba(145, 171, 220, .13);
}

ul.ok li:before {
  color: #55c5ff;
}

.two {
  gap: 24px;
}

input,
textarea {
  background: rgba(5, 12, 25, .72);
  border: 1px solid rgba(145, 171, 220, .24);
  border-radius: 11px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--a);
  box-shadow: 0 0 0 3px rgba(53, 186, 255, .12);
}

label {
  color: #dce6f7;
  font-weight: 550;
}

.cta {
  padding: 32px;
  margin-top: 58px;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(103, 83, 230, .16), transparent 45%),
    linear-gradient(135deg, #142744, #101a30);
}

footer {
  background: rgba(5, 10, 20, .82);
  border-top: 1px solid var(--line);
  color: #98a9c5;
  padding: 30px 20px;
}

details {
  border-color: var(--line);
  padding: 19px 0;
}

summary {
  color: #e8f1ff;
}

details p {
  color: var(--mut);
}

:focus-visible {
  outline: 3px solid var(--a);
  outline-offset: 4px;
  border-radius: 5px;
}

@media (max-width: 760px) {
  .bar {
    padding: 12px 16px;
    justify-content: center;
  }

  nav {
    justify-content: center;
    width: 100%;
  }

  nav a {
    padding: 7px 9px;
    font-size: 13px;
  }

  main {
    padding: 42px 17px 65px;
  }

  .hero {
    padding: 32px 23px;
    border-radius: 19px;
  }

  .hero p {
    font-size: 17px;
  }

  .card {
    padding: 22px;
  }

  .cta {
    padding: 24px;
  }

  .btn.g {
    margin: 10px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* =====================================================
   NOEMIA · AJUSTE DE FONDO Y TARJETAS
   Recuperar fotografía original de Badajoz
   ===================================================== */

/* Fotografía original: completa, luminosa y sin filtros */
body {
  background: transparent !important;
  isolation: isolate;
}

body::before {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  opacity: 1 !important;
  filter: none !important;
  background-image: url("/img/fondo.jpg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  pointer-events: none;
}

/* Cabecera: ligera y translúcida */
header {
  background: rgba(8, 13, 25, .58) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Panel principal: menos bloque, más transparencia */
.hero {
  background: linear-gradient(
    135deg,
    rgba(13, 29, 49, .66),
    rgba(17, 22, 43, .57)
  ) !important;
  border: 1px solid rgba(160, 205, 255, .25);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Tarjetas: transparentes, uniformes y elegantes */
.card,
.cta {
  background: rgba(12, 23, 40, .57) !important;
  border: 1px solid rgba(180, 210, 245, .25);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.card {
  padding: 25px;
  transition: transform .2s ease, border-color .2s ease,
              background .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: rgba(15, 32, 54, .70) !important;
  border-color: rgba(83, 190, 255, .55);
  box-shadow: 0 13px 30px rgba(0, 0, 0, .17);
}

.card.lock {
  background: rgba(48, 39, 24, .62) !important;
}

/* CTA integrado con el fondo */
.cta {
  background: rgba(13, 25, 44, .61) !important;
}

/* Formularios menos opacos */
input,
textarea {
  background: rgba(9, 18, 32, .62) !important;
}

/* Pie de página */
footer {
  background: rgba(8, 13, 25, .58) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Distribución y consistencia en pantallas pequeñas */
@media (max-width: 760px) {
  .card {
    padding: 21px;
  }

  .card,
  .cta,
  .hero {
    border-radius: 15px;
  }
}


/* =====================================================
   NOEMIA · MEJORAS BOTONES Y FORMULARIOS
   Capa final: se añade al final de estilo.css
   Para quitarla: restaurar la copia estilo.css.antes_botones_*.bak
   ===================================================== */

/* ---------- Botones (todos: .btn y <button> dentro de main) ---------- */
.btn,
main button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-block: 4px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(110deg, #1593ee 0%, #5d63ee 55%, #7a5cf2 100%);
  color: #fff;
  font: 600 15.5px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 22px rgba(52, 118, 232, .30);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover,
main button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 12px 30px rgba(52, 118, 232, .42);
}

.btn:active,
main button:active {
  transform: translateY(0) scale(.985);
  filter: brightness(.96);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25), 0 4px 12px rgba(52, 118, 232, .25);
}

.btn:disabled,
main button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(.4);
}

.btn + .btn { margin-left: 12px; }

/* Botón secundario (cristal) */
.btn.g {
  margin-left: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(170, 200, 240, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn.g:hover {
  background: rgba(53, 186, 255, .14);
  border-color: rgba(83, 200, 255, .65);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

/* WhatsApp */
.btn.wa {
  background: linear-gradient(110deg, #19a35f, #12804b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 22px rgba(22, 150, 90, .30);
}

/* Botones grandes de la portada */
.hero .btn {
  padding: 16px 30px;
  font-size: 16.5px;
  border-radius: 13px;
}

/* Botones de acciones secundarias dentro de la cuenta */
main form[action="/cuenta/salir"] button {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(170, 200, 240, .34);
  box-shadow: none;
}

main li form { display: inline-block; margin-left: 12px; }

main form[action*="eliminar"] button {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
  background: rgba(220, 70, 90, .13);
  border: 1px solid rgba(240, 100, 120, .45);
  color: #ffb3bf;
  box-shadow: none;
}

main form[action*="eliminar"] button:hover {
  background: rgba(220, 70, 90, .26);
  box-shadow: none;
}

/* ---------- Formularios ---------- */
.contenedor h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -.035em;
  margin-bottom: 18px;
}

.contenedor > form {
  max-width: 660px;
  margin-top: 8px;
  padding: 28px;
  border: 1px solid rgba(180, 210, 245, .25);
  border-radius: 18px;
  background: rgba(12, 23, 40, .57);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.contenedor > form > button { margin-top: 18px; }

.contenedor label { color: #dce6f7; font-weight: 600; font-size: 15px; }

input:not([type=checkbox]):not([type=radio]),
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(145, 171, 220, .28);
  background-color: rgba(9, 18, 32, .62);
  color: var(--ink);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

input::placeholder,
textarea::placeholder { color: #7f90ae; }

input:not([type=checkbox]):not([type=radio]):hover,
select:hover,
textarea:hover { border-color: rgba(83, 200, 255, .5); }

input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--a);
  background-color: rgba(9, 18, 32, .8);
  box-shadow: 0 0 0 4px rgba(53, 186, 255, .16);
}

/* Desplegables con flecha propia */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2335baff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

select option { background: #0d1626; color: #eaf0ff; }

/* Grupo de servicios: casillas como "fichas" seleccionables */
fieldset { border: 0; padding: 0; margin: 20px 0 6px; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 15px; color: #dce6f7; }

label:has(input[type=checkbox]) {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 8px 0 !important;
  padding: 13px 16px;
  border: 1px solid rgba(145, 171, 220, .26);
  border-radius: 12px;
  background: rgba(9, 18, 32, .5);
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

label:has(input[type=checkbox]):hover { border-color: rgba(83, 200, 255, .5); }

label:has(input[type=checkbox]:checked) {
  border-color: var(--a);
  background: rgba(53, 186, 255, .12);
  box-shadow: 0 0 0 3px rgba(53, 186, 255, .12);
}

input[type=checkbox] {
  width: 20px !important;
  height: 20px;
  margin: 0 !important;
  flex: none;
  accent-color: var(--a);
  cursor: pointer;
}

/* ---------- Tarjetas y enlaces ---------- */
.grid .card .price {
  font-size: 30px !important;
  letter-spacing: -.5px;
  margin: 14px 0 6px;
  background: linear-gradient(100deg, #ffffff, #9fdcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid .card .price small { color: var(--mut); -webkit-text-fill-color: var(--mut); font-size: 14px; }

.card a:not(.btn) {
  display: inline-block;
  margin-top: 8px;
  color: #6fcbff;
  font-weight: 600;
  text-decoration: none;
}

.card a:not(.btn)::after { content: " →"; transition: margin-left .18s ease; }
.card a:not(.btn):hover::after { margin-left: 4px; }

.contenedor a:not(.btn) { color: #7fd3ff; text-underline-offset: 3px; }
.contenedor a:not(.btn):hover { color: #fff; }

.contenedor li { margin: 10px 0; }

/* ---------- Etiquetas de estado de los presupuestos ---------- */
.badge {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.badge.b-pendiente { color: #ffd37a; border-color: rgba(255, 200, 90, .5); background: rgba(255, 200, 90, .12); }
.badge.b-enviado   { color: #8fd6ff; border-color: rgba(83, 190, 255, .55); background: rgba(53, 186, 255, .13); }
.badge.b-aceptado  { color: #8ef0b8; border-color: rgba(70, 210, 140, .55); background: rgba(40, 190, 120, .13); }
.badge.b-rechazado { color: #ffb3bf; border-color: rgba(240, 100, 120, .5); background: rgba(220, 70, 90, .12); }

/* ---------- Menú ---------- */
nav a { font-weight: 500; }
nav a.on { box-shadow: inset 0 -2px 0 var(--a); }

/* ---------- Preguntas frecuentes ---------- */
summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--a); transition: transform .2s ease; }
details[open] summary::after { content: "–"; }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .contenedor > form { padding: 20px; }
  .contenedor > form > button,
  .cta .btn { width: 100%; margin-left: 0; }
  .cta > div:last-child { width: 100%; }
  .btn + .btn, .btn.g { margin-left: 0; }
  .hero .btn { width: 100%; }
}

/* ===== MI CUENTA: ACCESO Y REGISTRO ===== */

.contenedor > p a:not(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    margin: 8px 5px 8px 0;
    border: 1px solid rgba(80, 185, 255, .35);
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(31, 182, 255, .16),
        rgba(122, 75, 255, .16)
    );
    color: #8edcff;
    font-weight: 650;
    text-decoration: none;
    transition: all .2s ease;
}

.contenedor > p a:not(.btn):hover {
    color: white;
    border-color: #35baff;
    background: linear-gradient(110deg, #1593ee, #7055e8);
    box-shadow: 0 7px 22px rgba(53, 186, 255, .2);
    transform: translateY(-2px);
}

.contenedor > p a:not(.btn):active {
    transform: scale(.97);
}

@media (max-width: 600px) {
    .contenedor > p a:not(.btn) {
        margin: 6px 3px 6px 0;
        padding: 11px 15px;
    }
}


/* ==========================================
   INTEGRAXIA - PANEL DE ADMINISTRACION
   ========================================== */

/* Navegación administrativa */
body:has(main table) nav a,
body:has(main table) main > p a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    margin: 4px;
    border-radius: 10px;
    border: 1px solid rgba(100,180,255,.2);
    background: rgba(40,100,170,.12);
    color: #a9dcff;
    text-decoration: none;
    font-weight: 650;
    transition: .2s ease;
}

body:has(main table) nav a:hover,
body:has(main table) main > p a:hover {
    background: rgba(40,150,255,.22);
    border-color: #35baff;
    color: white;
    transform: translateY(-2px);
}

/* Títulos */
main h1,
main h2 {
    letter-spacing: -.035em;
}

main h2 {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Estadísticas */
main > p strong {
    color: #8edcff;
}

main > p {
    line-height: 2;
}

/* Tablas administrativas */
main table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 22px 0;
    border: 1px solid rgba(130,170,220,.2);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(15,24,42,.85);
    font-size: 14px;
}

main table th {
    padding: 15px 13px;
    text-align: left;
    background: rgba(35,65,110,.55);
    color: #b9dcff;
    font-weight: 700;
    border-bottom: 1px solid rgba(130,170,220,.2);
    white-space: nowrap;
}

main table td {
    padding: 14px 13px;
    border-bottom: 1px solid rgba(130,170,220,.12);
    color: #dce6f7;
    vertical-align: middle;
}

main table tr:last-child td {
    border-bottom: none;
}

main table tbody tr {
    transition: background .2s ease;
}

main table tbody tr:hover {
    background: rgba(50,130,220,.10);
}

/* Mensajes largos */
main table td:nth-child(6) {
    min-width: 220px;
    max-width: 420px;
    overflow-wrap: anywhere;
}

/* Botones de acciones */
main table button,
main table .btn {
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 13px;
    margin: 3px;
}

main table form[action*="borrar"] button,
main table form[action*="eliminar"] button {
    background: rgba(220,65,85,.15);
    color: #ffadb9;
    border: 1px solid rgba(255,100,120,.35);
    box-shadow: none;
}

main table form[action*="borrar"] button:hover,
main table form[action*="eliminar"] button:hover {
    background: rgba(220,65,85,.3);
}

/* Campos del panel */
main input,
main select,
main textarea {
    border-radius: 10px;
}

/* Panel adaptable */
@media(max-width: 850px) {
    main table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        max-width: 100%;
    }

    main table td:nth-child(6) {
        white-space: normal;
        min-width: 250px;
    }

    main h1 {
        font-size: 30px;
    }
}

/* Accesibilidad */
main button:focus-visible,
main a:focus-visible {
    outline: 2px solid #35baff;
    outline-offset: 3px;
}


/* =====================================================
   INTEGRAXIA REDISENO PUBLICO FASE 1
   Portada, servicios, precios y zona de clientes
   ===================================================== */

:root {
  --ix-blue: #35baff;
  --ix-purple: #8870ff;
  --ix-border: rgba(170, 200, 240, .23);
  --ix-glass: rgba(10, 22, 40, .78);
}

/* Textos y jerarquía */
main {
  position: relative;
}

main h1 {
  color: #f5f8ff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.13;
  letter-spacing: -.045em;
  text-wrap: balance;
}

main h2 {
  color: #f0f5ff;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -.025em;
}

main h3 {
  color: #edf5ff;
  letter-spacing: -.015em;
}

main p {
  line-height: 1.75;
}

.lead {
  max-width: 760px;
  color: #c4d2e8;
  font-size: 1.12rem;
  line-height: 1.8;
}

/* Cabecera y navegación */
header {
  border-bottom: 1px solid rgba(160, 195, 240, .14);
  background: rgba(7, 13, 26, .82) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.bar {
  max-width: 1240px;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.055em;
}

.logo span {
  color: var(--ix-blue);
}

nav a {
  border-radius: 9px;
  transition: background .2s ease, color .2s ease;
}

nav a:hover {
  background: rgba(53, 186, 255, .10);
  color: #fff;
}

nav a.on {
  color: #fff;
  background: rgba(53, 186, 255, .09);
}

/* Portada */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 76px);
  border: 1px solid rgba(150, 200, 255, .28);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(90, 105, 255, .20), transparent 48%),
    linear-gradient(125deg, rgba(7, 22, 42, .88), rgba(15, 19, 43, .79)) !important;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.06;
}

.hero p {
  max-width: 720px;
  color: #d0def2;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

/* Tarjetas */
.grid {
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ix-border);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(18, 34, 57, .88), rgba(9, 19, 36, .83)) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.card:hover {
  border-color: rgba(75, 190, 255, .58);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .23);
}

.card p {
  color: #bdcbe0;
}

.card.lock {
  border-color: rgba(225, 177, 85, .34);
}

/* Bloques de llamada a la acción */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  border: 1px solid rgba(95, 165, 255, .3);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(111, 88, 255, .19), transparent 50%),
    rgba(10, 23, 43, .87) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .18);
}

.cta h3 {
  margin-top: 0;
}

/* Botones */
.btn,
main button {
  border-radius: 11px;
  font-weight: 650;
}

.btn:focus-visible,
main button:focus-visible {
  outline: 3px solid var(--ix-blue);
  outline-offset: 4px;
}

/* Formularios y zona de clientes */
.contenedor {
  max-width: 900px;
  margin-inline: auto;
}

.contenedor > form,
.contenedor > section {
  border: 1px solid var(--ix-border);
  border-radius: 18px;
  background: var(--ix-glass);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .17);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.contenedor > section {
  padding: 22px !important;
}

.contenedor > form {
  padding: clamp(20px, 4vw, 32px);
}

.contenedor > form label {
  display: block;
  margin: 0 0 19px;
  color: #e0eaff;
  font-weight: 600;
}

.contenedor input,
.contenedor select,
.contenedor textarea {
  margin-top: 8px;
}

.contenedor fieldset {
  margin-top: 25px;
}

.contenedor legend {
  margin-bottom: 12px;
  color: #f0f5ff;
}

.contenedor label:has(input[type="checkbox"]) {
  margin: 8px 0 !important;
}

.contenedor > form button {
  min-height: 48px;
}

/* Precios */
.price {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 3px 20px rgba(53, 186, 255, .12);
}

.grid .card .price {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

/* Listas y enlaces */
main ul {
  padding-left: 22px;
}

main li {
  line-height: 1.8;
}

main a:not(.btn) {
  text-underline-offset: 4px;
}

/* Preguntas frecuentes */
details {
  padding: 18px 20px;
  border: 1px solid var(--ix-border);
  border-radius: 13px;
  background: rgba(10, 22, 40, .72);
  margin: 10px 0;
}

details[open] {
  border-color: rgba(53, 186, 255, .42);
}

summary {
  cursor: pointer;
  font-weight: 650;
}

/* Pie de página */
footer {
  margin-top: 55px;
  border-top: 1px solid rgba(160, 195, 240, .17);
  background: rgba(6, 12, 24, .88);
}

/* Móvil */
@media (max-width: 760px) {
  .bar {
    align-items: center;
    gap: 12px;
  }

  nav {
    flex-wrap: wrap;
    gap: 5px;
  }

  nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  main {
    padding: 35px 15px 55px;
  }

  .hero {
    padding: 30px 21px;
    border-radius: 19px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .grid {
    gap: 15px;
  }

  .card {
    padding: 21px;
  }

  .cta {
    align-items: stretch;
    padding: 23px;
  }

  .cta > div {
    width: 100%;
  }

  .cta .btn {
    display: flex;
    width: 100%;
    margin: 9px 0;
  }

  .contenedor > form {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .btn,
  nav a {
    transition: none !important;
  }
}

