:root {
  --red-950: #330006;
  --red-900: #5a000d;
  --red-800: #820018;
  --red-700: #b00024;
  --red-600: #d6002a;
  --red-500: #ef3340;
  --red-100: #ffe8eb;
  --red-50: #fff4f5;
  --cream: #fff9f5;
  --paper: #ffffff;
  --ink: #211417;
  --muted: #746066;
  --line: #f0d9de;
  --gold: #ffcf8a;
  --green: #159947;
  --shadow-soft: 0 18px 45px rgba(90, 0, 13, .12);
  --shadow-strong: 0 28px 70px rgba(90, 0, 13, .22);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% -10%, rgba(214, 0, 42, .13), transparent 32%),
    radial-gradient(circle at 90% 8%, rgba(255, 207, 138, .18), transparent 25%),
    linear-gradient(180deg, #fffafa 0%, #fff7f5 48%, #fff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .42;
  background-image:
    linear-gradient(135deg, rgba(214, 0, 42, .06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(214, 0, 42, .055) 25%, transparent 25%);
  background-position: 0 0, 18px 18px;
  background-size: 36px 36px;
  pointer-events: none;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding: 12px max(5%, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(240, 217, 222, .8);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(90, 0, 13, .05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  background:
    linear-gradient(135deg, var(--red-600), var(--red-900));
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 14px 28px rgba(176, 0, 36, .26);
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  right: -18px;
  bottom: -18px;
  border-radius: 50%;
  background: rgba(255,255,255,.26);
}

.brand strong {
  display: block;
  color: var(--red-900);
  font-size: 1.06rem;
  letter-spacing: .12em;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  padding: 10px 13px;
  color: var(--red-950);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 800;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red-600);
  background: var(--red-50);
}

.nav-cta {
  padding: 11px 18px !important;
  color: white !important;
  background: linear-gradient(135deg, var(--red-600), var(--red-800)) !important;
  box-shadow: 0 14px 26px rgba(176, 0, 36, .22);
}

.nav-cta:hover { transform: translateY(-2px); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  color: white;
  font-size: 23px;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(176,0,36,.24);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .78fr);
  align-items: center;
  gap: 46px;
  min-height: 720px;
  padding: 104px max(5%, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(55, 0, 8, .88) 0%, rgba(106, 0, 17, .72) 43%, rgba(106, 0, 17, .36) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.20)),
    url('../img/fachada-oficina.jpg') center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, .15), transparent 28%),
    radial-gradient(circle at 78% 78%, rgba(214, 0, 42, .35), transparent 32%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 120px;
  width: 390px;
  height: 390px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  box-shadow:
    -70px 80px 0 rgba(255,255,255,.05),
    -145px 160px 0 rgba(255,255,255,.035);
}

.hero-content { max-width: 780px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--red-600);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow { color: var(--gold); }

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(255, 207, 138, .14);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 22px;
  max-width: 900px;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  line-height: .96;
  letter-spacing: -.06em;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  color: rgba(255,255,255,.84);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  box-shadow: 0 16px 30px rgba(176, 0, 36, .25);
}

.hero .btn-primary,
.cta-band .btn-primary {
  color: var(--red-900);
  background: white;
  box-shadow: 0 16px 35px rgba(0,0,0,.17);
}

.btn-secondary {
  color: white;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.28);
}

.btn-light {
  color: var(--red-900);
  background: var(--red-50);
}

.hero-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,244,245,.88));
  color: var(--ink);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: linear-gradient(90deg, var(--red-600), var(--gold));
}

.hero-card h2 {
  margin: 0 0 10px;
  color: var(--red-950);
  font-size: 1.6rem;
  line-height: 1.1;
}

.hero-card p { color: var(--muted); font-size: 1rem; }

.hero-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 15px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 850;
}

.hero-card li::before {
  content: "✓";
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--red-600);
  font-size: .8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  max-width: 760px;
}

.stat-box {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}

.stat-box strong {
  display: block;
  font-size: 1.25rem;
  color: white;
}

.stat-box span { color: rgba(255,255,255,.72); font-size: .9rem; }

.section {
  padding: 78px max(5%, calc((100vw - var(--max)) / 2));
}

.section.compact { padding-top: 48px; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title > div { max-width: 780px; }

.section-title h2 {
  margin: 0;
  color: var(--red-950);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.section-title p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.cards-3,
.insurance-grid,
.news-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card,
.insurance-card,
.news-card,
.info-box,
.contact-card,
.contact-form,
.step-card,
.legal-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(240, 217, 222, .95);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.feature-card::after,
.insurance-card::after,
.news-card::after,
.step-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red-600), var(--gold));
  opacity: .88;
}

.feature-card,
.insurance-card,
.news-card,
.step-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover,
.insurance-card:hover,
.news-card:hover,
.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 0, 42, .33);
  box-shadow: 0 26px 62px rgba(90,0,13,.16);
}

.card-icon,
.insurance-icon,
.step-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 17px;
  color: white;
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(176,0,36,.22);
}

.feature-card h3,
.insurance-card h3,
.news-card h2,
.info-box h2,
.contact-card h2,
.contact-form h2,
.step-card h3 {
  margin: 0 0 12px;
  color: var(--red-950);
  line-height: 1.15;
}

.feature-card p,
.insurance-card p,
.news-card p,
.info-box p,
.contact-card p,
.step-card p { color: var(--muted); }

.feature-card a,
.insurance-card a,
.news-card a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--red-700);
  font-weight: 900;
  text-decoration: none;
}

.feature-card a::after,
.insurance-card a::after,
.news-card a::after,
.text-link::after { content: "→"; transition: transform .18s ease; }

.feature-card a:hover::after,
.insurance-card a:hover::after,
.news-card a:hover::after,
.text-link:hover::after { transform: translateX(4px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--red-700);
  background: var(--red-50);
  font-size: .76rem;
  font-weight: 900;
}

.service-strip {
  margin-top: -52px;
  padding: 0 max(5%, calc((100vw - var(--max)) / 2));
  position: relative;
  z-index: 3;
}

.service-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: var(--radius-xl);
  background: var(--line);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.service-mini {
  padding: 23px;
  background: rgba(255,255,255,.96);
}

.service-mini strong {
  display: block;
  color: var(--red-950);
}

.service-mini span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .92rem;
}

.cta-band {
  position: relative;
  margin: 26px max(5%, calc((100vw - var(--max)) / 2)) 86px;
  padding: 48px;
  border-radius: var(--radius-xl);
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,207,138,.28), transparent 23%),
    linear-gradient(135deg, var(--red-950), var(--red-800) 58%, var(--red-600));
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.cta-band p { margin: 0 auto 24px; max-width: 680px; color: rgba(255,255,255,.82); }

.page-hero {
  position: relative;
  padding: 98px max(5%, calc((100vw - var(--max)) / 2));
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(255,207,138,.32), transparent 23%),
    linear-gradient(135deg, var(--red-950), var(--red-800) 55%, var(--red-600));
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: -70px 80px 0 rgba(255,255,255,.05);
}

.small-hero { padding-top: 76px; padding-bottom: 72px; }

.filters {
  position: sticky;
  top: 79px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px max(5%, calc((100vw - var(--max)) / 2));
  background: rgba(255,250,250,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.filter-btn {
  border: 1px solid var(--line);
  background: white;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--red-950);
  font-weight: 900;
  cursor: pointer;
  transition: .18s ease;
}

.filter-btn:hover { border-color: var(--red-600); color: var(--red-600); }

.filter-btn.active {
  color: white;
  border-color: var(--red-600);
  background: linear-gradient(135deg, var(--red-600), var(--red-800));
  box-shadow: 0 12px 24px rgba(176,0,36,.18);
}

.insurance-card { min-height: 238px; }

.insurance-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.insurance-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 15px;
  font-size: .88rem;
}

.insurance-card .tag { margin-bottom: 0; }

.two-columns,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.info-box ul,
.hero-card ul {
  padding-left: 0;
  list-style: none;
}

.info-box li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: var(--muted);
}

.info-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red-600);
  box-shadow: 0 0 0 5px var(--red-50);
}

.contact-card a:not(.btn),
.site-footer a { text-decoration: none; }

.contact-card a:not(.btn):hover,
.site-footer a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--red-950);
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: white;
  font: inherit;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px rgba(214, 0, 42, .13);
}

.checkbox {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 650 !important;
  color: var(--muted) !important;
}

.checkbox input { width: auto; margin-top: .35em; }

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.news-card span:not(.tag) {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--red-700);
  background: var(--red-50);
  font-size: .8rem;
  font-weight: 900;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 48px max(5%, calc((100vw - var(--max)) / 2));
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(239,51,64,.23), transparent 22%),
    linear-gradient(135deg, #190003, #330006 62%, #5a000d);
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: white;
  font-size: 1.05rem;
}

.site-footer p { margin: 7px 0; color: rgba(255,255,255,.76); }
.site-footer a { color: white; }

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  color: white;
  background: var(--green);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(0,0,0,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}

.whatsapp::before { content: "☎"; }
.whatsapp:hover { transform: translateY(-3px); box-shadow: 0 22px 42px rgba(0,0,0,.28); }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero,
  .two-columns,
  .contact-layout,
  .site-footer { grid-template-columns: 1fr; }

  .cards-3,
  .insurance-grid,
  .news-grid,
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .service-strip-inner { grid-template-columns: repeat(2, 1fr); }

  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 5% 18px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(90,0,13,.10);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }

  .site-header { padding: 14px 5%; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 82px;
  }

  .hero h1,
  .page-hero h1 { font-size: clamp(2.4rem, 13vw, 4rem); }

  .section-title { display: block; }

  .cards-3,
  .insurance-grid,
  .news-grid,
  .steps-grid,
  .service-strip-inner { grid-template-columns: 1fr; }

  .service-strip { margin-top: -38px; }

  .section,
  .page-hero,
  .small-hero { padding-left: 5%; padding-right: 5%; }

  .cta-band { margin-left: 5%; margin-right: 5%; padding: 34px 22px; }

  .whatsapp { right: 14px; bottom: 14px; padding: 12px 15px; }
}

.page-hero .btn-primary {
  color: var(--red-900);
  background: white;
  box-shadow: 0 16px 35px rgba(0,0,0,.17);
}

.service-mini { text-decoration: none; }
.service-mini:hover strong { color: var(--red-600); }


/* Imágenes reales de Sedace */
.brand-logo {
  display: block;
  width: clamp(170px, 17vw, 260px);
  height: auto;
}

.footer-logo {
  display: block;
  width: min(220px, 80%);
  height: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: .96;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}

.hero-card {
  backdrop-filter: blur(14px);
}

@media (max-width: 720px) {
  .brand-logo { width: 160px; }
  .hero {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 70px;
    background-position: center top;
  }
}


.hp-field {
  display: none;
}

.form-alert {
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.form-alert.success {
  background: #e8f8ee;
  color: #176b35;
  border: 1px solid #bde5c8;
}

.form-alert.error {
  background: #fdeaea;
  color: #8a1f1f;
  border: 1px solid #f3b6b6;
}

.form-note {
  font-size: 0.9rem;
  color: #666;
}

.cookie-banner {
    position: fixed;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    width: calc(100% - 60px);
    max-width: 1050px;

    background: #ffffff;

    border-radius: 14px;

    padding: 20px 25px;

    display: none;
    align-items: center;
    gap: 18px;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.18);

    border-left: 5px solid #7d0000;

    z-index: 999999;
}

.cookie-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    margin: 0 0 5px 0;

    font-size: 17px;

    color: #2b2b2b;
}

.cookie-text p {
    margin: 0;

    font-size: 13.5px;
    line-height: 1.5;

    color: #666;
}

.cookie-text a {
    display: inline-block;

    margin-top: 6px;

    font-size: 13px;

    color: #7d0000;

    font-weight: 600;

    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}


/* BOTONES */

.cookie-buttons {
    display: flex;
    gap: 10px;

    flex-shrink: 0;
}

.cookie-buttons button {
    padding: 11px 20px;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all .2s ease;
}


/* RECHAZAR */

.cookie-reject {
    background: #ffffff;

    color: #555;

    border: 1px solid #ccc;
}

.cookie-reject:hover {
    background: #f4f4f4;
}


/* ACEPTAR */

.cookie-accept {
    background: #7d0000;

    color: #ffffff;

    border: 1px solid #7d0000;
}

.cookie-accept:hover {
    background: #990000;
}


/* MÓVIL */

@media (max-width: 700px) {

    .cookie-banner {
        width: calc(100% - 30px);

        bottom: 15px;

        flex-direction: column;

        align-items: flex-start;

        padding: 20px;

        box-sizing: border-box;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-buttons button {
        flex: 1;
    }
}












.legal-content {
    width: 900px !important;
    max-width: calc(100% - 80px) !important;

    margin: 70px auto 90px auto !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

.legal-content h2 {
    margin-top: 45px !important;
    margin-bottom: 20px !important;

    font-size: 28px;
    color: #600009;
}

.legal-content h2:first-child {
    margin-top: 0 !important;
}

.legal-content h3 {
    margin-top: 32px !important;
    margin-bottom: 14px !important;

    font-size: 20px;
}

.legal-content p {
    margin-bottom: 20px !important;

    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/*Texto de encima de las fotos */

/* Cabecera profesional para sección equipo */

.team-section {
  padding: 90px 8%;
  background: linear-gradient(180deg, #fff 0%, #fff7f6 100%);
}

.team-heading {
  max-width: 850px;
  margin: 0 auto 52px;
  text-align: center;
}

.team-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff1ef;
  color: #b51f14;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid #ead7d4;
}

.team-heading h2 {
  margin: 0 0 18px;
  color: #171717;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.team-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.75;
}


/* Equipo: fotos más profesionales y alineadas */

.team-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.team-card-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #ead7d4;
  box-shadow: 0 18px 45px rgba(70, 24, 18, 0.07);
  text-align: center;
}

.team-card-vertical .team-photo {
  width: 220px;
  height: 270px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  display: block;
  margin: 0 auto 24px;
  background: #f5f5f5;
}

.team-card-vertical .team-info {
  max-width: 360px;
}

.team-card-vertical .team-info span {
  display: inline-block;
  color: #b51f14;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.team-card-vertical .team-info h3 {
  margin: 0 0 12px;
  color: #171717;
  font-size: 1.35rem;
}

.team-card-vertical .team-info p {
  margin: 0;
  color: #666;
  line-height: 1.65;
}


/* Foto Alejandro */
/* Ajuste foto Alejandro sin hacerla pequeña */
.team-card-vertical .alex-photo {
  width: 235px;
  height: 270px;
  object-fit: cover;
  object-position: center 5%;
  border-radius: 22px;
  padding: 0;
  background: none;
}


/* Ajuste individual si alguna foto queda mal encuadrada */
.team-card-vertical img[src*="mario"] {
  object-position: center top;
}

.team-card-vertical img[src*="alex"] {
  object-position: center top;
}

.team-card-vertical img[src*="sergio"] {
  object-position: center center;
}

/* Responsive */
@media (max-width: 1000px) {
  .team-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .team-grid-three {
    grid-template-columns: 1fr;
  }

  .team-card-vertical .team-photo {
    width: 210px;
    height: 260px;
  }
}



/* Bloques de equipo por oficina */

.office-team-block {
  margin-top: 56px;
}

.office-team-heading {
  max-width: 850px;
  margin: 0 auto 30px;
  text-align: center;
}

.office-team-heading span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #b51f14;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.office-team-heading h3 {
  margin: 0 0 10px;
  color: #171717;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.office-team-heading p {
  margin: 0;
  color: #666;
  line-height: 1.7;
}

/* Tres trabajadores Vélez Rubio */

.team-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* Oficinas con un solo trabajador */

.team-grid-one {
  display: grid;
  grid-template-columns: minmax(280px, 430px);
  justify-content: center;
  gap: 28px;
}

.team-card-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #ead7d4;
  box-shadow: 0 18px 45px rgba(70, 24, 18, 0.07);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card-vertical:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(70, 24, 18, 0.13);
}

.team-card-vertical .team-photo {
  width: 220px;
  height: 270px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  display: block;
  margin: 0 auto 24px;
  background: #f5f5f5;
}

.team-card-vertical .alejandro-photo {
  width: 220px;
  height: 270px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 22px;
  padding: 0;
  background: none;
}

.team-card-vertical .team-info {
  max-width: 360px;
}

.team-card-vertical .team-info span {
  display: inline-block;
  color: #b51f14;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.team-card-vertical .team-info h3 {
  margin: 0 0 12px;
  color: #171717;
  font-size: 1.35rem;
}

.team-card-vertical .team-info p {
  margin: 0;
  color: #666;
  line-height: 1.65;
}

/* Separación visual entre oficinas */

.office-team-block + .office-team-block {
  padding-top: 58px;
  border-top: 1px solid #f0d8d5;
}

/* Responsive */

@media (max-width: 1000px) {
  .team-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .team-grid-three,
  .team-grid-one {
    grid-template-columns: 1fr;
  }

  .team-card-vertical .team-photo,
  .team-card-vertical .alejandro-photo {
    width: 210px;
    height: 260px;
  }
}












/* Cabecera con foto de fondo para oficinas */

.office-hero {
  position: relative;
  min-height: 300px;
  max-width: 1100px;
  margin: 0 auto 34px;
  border-radius: 32px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 24px 70px rgba(70, 24, 18, 0.14);
}

.office-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(65, 0, 8, 0.82),
    rgba(181, 31, 20, 0.48)
  );
  z-index: 1;
}

.office-hero-content {
  position: relative;
  z-index: 2;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  color: #fff;
}

.office-hero-content span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.office-hero-content h3 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.office-hero-content p {
  margin: 0;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* Foto concreta de la oficina de Lorca */
.office-hero-lorca-1 {
  background-image: url("../img/oficinas/lorca-1.jpg");
}

@media (max-width: 650px) {
  .office-hero,
  .office-hero-content {
    min-height: 230px;
  }

  .office-hero-content {
    padding: 28px;
  }
}





/*NUEVO NOSOTROS*/


/* Mejora visual de oficinas dentro de Nosotros */

.team-section {
  padding: 90px 8%;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f6 100%) !important;
}

.team-heading {
  max-width: 850px;
  margin: 0 auto 70px;
  text-align: center;
}

.team-heading span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff1ef;
  color: #b51f14;
  border: 1px solid #ead7d4;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-heading h2 {
  margin: 0 0 18px;
  color: #171717;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.team-heading p {
  max-width: 720px;
  margin: 0 auto;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Bloque de cada oficina */

.office-profile {
  max-width: 1250px;
  margin: 0 auto 90px;
  padding: 38px;
  border-radius: 36px;
  background: #ffffff;
  border: 1px solid #ead7d4;
  box-shadow: 0 24px 70px rgba(70, 24, 18, 0.08);
}

.office-profile:last-child {
  margin-bottom: 0;
}

.office-profile-header {
  text-align: center;
  margin-bottom: 34px;
}

.office-profile-header span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #b51f14;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.office-profile-header h3 {
  margin: 0 0 10px;
  color: #171717;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.office-profile-header p {
  margin: 0;
  color: #666;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Foto oficina + mapa */

.office-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 42px;
}

.office-photo,
.office-map {
  height: 360px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #ead7d4;
  background: #f7f7f7;
  box-shadow: 0 18px 50px rgba(70, 24, 18, 0.08);
}

.office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.office-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Trabajadores */

.team-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.team-grid-one {
  display: grid;
  grid-template-columns: minmax(280px, 430px);
  justify-content: center;
}

.team-card-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f7 100%);
  border: 1px solid #ead7d4;
  text-align: center;
  box-shadow: 0 16px 40px rgba(70, 24, 18, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card-vertical:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(70, 24, 18, 0.12);
}

.team-card-vertical .team-photo {
  width: 210px;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  display: block;
  margin: 0 auto 22px;
  background: #f5f5f5;
}

.team-card-vertical .alejandro-photo {
  object-position: center 18%;
}

.team-card-vertical .team-info span {
  display: inline-block;
  margin-bottom: 10px;
  color: #b51f14;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-card-vertical .team-info h3 {
  margin: 0 0 12px;
  color: #171717;
  font-size: 1.35rem;
}

.team-card-vertical .team-info p {
  margin: 0;
  color: #666;
  line-height: 1.65;
}

/* Separación entre oficinas */

.office-profile + .office-profile {
  margin-top: 70px;
}

/* Responsive */

@media (max-width: 1000px) {
  .office-media-grid {
    grid-template-columns: 1fr;
  }

  .team-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .team-section {
    padding: 64px 6%;
  }

  .office-profile {
    padding: 24px;
    border-radius: 28px;
  }

  .office-photo,
  .office-map {
    height: 260px;
  }

  .team-grid-three,
  .team-grid-one {
    grid-template-columns: 1fr;
  }

  .team-card-vertical .team-photo {
    width: 200px;
    height: 250px;
  }
}





/* Dos oficinas de Lorca en paralelo */

.lorca-offices-grid {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.lorca-offices-grid .office-profile {
  margin: 0;
}

.office-profile-compact {
  padding: 30px;
  border-radius: 34px;
}

.office-profile-compact .office-profile-header {
  margin-bottom: 26px;
}

.office-profile-compact .office-profile-header h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.office-media-compact {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 30px;
}

.office-profile-compact .office-photo,
.office-profile-compact .office-map {
  height: 240px;
  min-height: 240px;
  border-radius: 24px;
}

.office-profile-compact .office-photo img,
.office-profile-compact .office-map iframe {
  height: 100%;
  min-height: 240px;
}

.office-profile-compact .team-grid-one {
  grid-template-columns: 1fr;
}

.office-profile-compact .team-card-vertical {
  padding: 24px 20px;
}

.office-profile-compact .team-card-vertical .team-photo {
  width: 190px;
  height: 235px;
}

/* Responsive */
@media (max-width: 1050px) {
  .lorca-offices-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .office-profile-compact {
    padding: 22px;
  }

  .office-profile-compact .office-photo,
  .office-profile-compact .office-map,
  .office-profile-compact .office-photo img,
  .office-profile-compact .office-map iframe {
    height: 220px;
    min-height: 220px;
  }

  .office-profile-compact .team-card-vertical .team-photo {
    width: 180px;
    height: 225px;
  }
}



/* ===============================
   Oficinas Lorca compactas
================================ */

.lorca-compact-section {
  max-width: 1250px;
  margin: 80px auto 0;
}

.lorca-compact-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.lorca-compact-heading span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff1ef;
  color: #b51f14;
  border: 1px solid #ead7d4;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.lorca-compact-heading h3 {
  margin: 0 0 12px;
  color: #171717;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lorca-compact-heading p {
  margin: 0;
  color: #666;
  line-height: 1.7;
}

.lorca-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.lorca-office-card {
  padding: 26px;
  border-radius: 32px;
  background: #fff;
  border: 1px solid #ead7d4;
  box-shadow: 0 22px 60px rgba(70, 24, 18, 0.08);
}

.lorca-office-header {
  text-align: center;
  margin-bottom: 22px;
}

.lorca-office-header span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #b51f14;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lorca-office-header h4 {
  margin: 0 0 8px;
  color: #171717;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.lorca-office-header p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.lorca-office-media {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-bottom: 24px;
}

.lorca-office-photo,
.lorca-office-map {
  height: 210px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #ead7d4;
  background: #f7f7f7;
}

.lorca-office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lorca-office-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lorca-worker {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff8f7 0%, #ffffff 100%);
  border: 1px solid #ead7d4;
}

.lorca-worker img {
  width: 120px;
  height: 145px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  background: #f5f5f5;
}

.lorca-worker span {
  display: inline-block;
  margin-bottom: 8px;
  color: #b51f14;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lorca-worker h5 {
  margin: 0 0 8px;
  color: #171717;
  font-size: 1.25rem;
}

.lorca-worker p {
  margin: 0;
  color: #666;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Responsive */

@media (max-width: 1100px) {
  .lorca-compact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .lorca-office-card {
    padding: 20px;
  }

  .lorca-office-media {
    grid-template-columns: 1fr;
  }

  .lorca-office-photo,
  .lorca-office-map {
    height: 230px;
  }

  .lorca-worker {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lorca-worker img {
    margin: 0 auto;
  }
}



/* ===============================
   FOOTER FINAL LIMPIO
================================ */

.site-footer {
  background: linear-gradient(135deg, #2a0006 0%, #6b0010 100%) !important;
  color: #fff !important;
  padding: 70px 8% !important;
}

.site-footer .footer-grid {
  width: 100% !important;
  max-width: 1450px !important;
  margin: 0 auto !important;

  display: grid !important;
  grid-template-columns: 380px 260px 190px 250px !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 50px !important;
}

/* Columna marca */

.site-footer .footer-brand {
  width: 380px !important;
  max-width: 380px !important;
  min-width: 380px !important;
}

.site-footer .footer-brand img {
  width: 230px !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 0 22px !important;
}

.site-footer .footer-brand h3 {
  margin: 0 0 18px !important;
  color: #fff !important;
  font-size: 1.15rem !important;
}

.site-footer .footer-brand p {
  margin: 0 !important;
  width: 100% !important;
  max-width: 360px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.7 !important;
  font-size: 1rem !important;
  text-align: left !important;
}

/* Columnas normales */

.site-footer .footer-column {
  min-width: 0 !important;
  width: auto !important;
}

.site-footer .footer-column h3 {
  margin: 0 0 20px !important;
  color: #fff !important;
  font-size: 1.15rem !important;
}

.site-footer .footer-column p {
  margin: 0 0 14px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.6 !important;
}

.site-footer .footer-column a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.site-footer .footer-column a:hover {
  color: #ffd7d2 !important;
}

/* Evitar cortes raros */

.site-footer a[href^="tel"],
.site-footer a[href^="mailto"] {
  white-space: nowrap !important;
}

/* Legal */

.site-footer .footer-column > a {
  display: block !important;
  width: fit-content !important;
  margin-bottom: 14px !important;
}

/* Redes */

.site-footer .social-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.site-footer .social-links a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: fit-content !important;
  margin: 0 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

.site-footer .social-links a:hover {
  color: #ffd7d2 !important;
  transform: translateX(4px);
}

.site-footer .social-links span {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;
  background: #b51f14 !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

/* Responsive */

@media (max-width: 1100px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 48px !important;
  }

  .site-footer .footer-brand {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

@media (max-width: 650px) {
  .site-footer {
    padding: 50px 6% !important;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }

  .site-footer .footer-brand img {
    width: 200px !important;
  }
}