:root {
  --blue: #123b7a;
  --blue-dark: #09285c;
  --red: #e31e24;
  --ink: #243042;
  --muted: #5c6675;
  --light: #f5f7fb;
  --white: #fff;
  --shadow: 0 14px 35px rgba(17, 43, 88, 0.12);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Poppins, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.container {
  width: min(1180px, 90%);
  margin: auto;
}
.top-bar {
  background: var(--blue-dark);
  color: #fff;
  font-size: 0.88rem;
  padding: 9px 0;
}
.top-container,
.top-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.top-left a,
.top-container > a {
  text-decoration: none;
}
.top-bar i {
  color: #ff5a60;
  margin-right: 7px;
}
.site-header {
  background: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo img {
  width: 150px;
  height: 76px;
  object-fit: contain;
}
.menu {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin-left: auto;
}
.menu a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  padding: 34px 0;
  border-bottom: 3px solid transparent;
}
.menu a:hover,
.menu a.active {
  color: var(--red);
  border-color: var(--red);
}
.header-cta {
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 1.6rem;
  cursor: pointer;
}
.hero {
  min-height: 650px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.77) 47%,
      rgba(255, 255, 255, 0.16) 76%
    ),
    url("portada.jpg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}
.hero-content {
  padding: 85px 0;
}
.hero-content > *,
.page-hero > * {
  max-width: 710px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.03;
  color: var(--blue);
  text-transform: uppercase;
}
.hero h1 span {
  display: block;
  color: var(--red);
}
.hero-lead {
  font-size: 1.18rem;
  max-width: 680px;
  margin: 25px 0 30px;
}
.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: 9px;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: #b9141a;
}
.btn-secondary {
  background: var(--blue);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--blue-dark);
}
.btn-light {
  background: #fff;
  color: var(--blue);
}
.btn-outline-light {
  border-color: #fff;
  color: #fff;
}
.section {
  padding: 85px 0;
}
.section-muted {
  background: var(--light);
}
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}
.section-heading h2,
.split h2,
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-heading > p:last-child {
  color: var(--muted);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.service-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border-radius: 16px;
  padding: 31px;
  box-shadow: var(--shadow);
  border: 1px solid #e9edf5;
  transition: 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: #cbd7ed;
}
.service-card > i {
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 18px;
}
.service-card h3 {
  color: var(--blue);
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted);
  margin-bottom: 12px;
}
.service-card span {
  color: var(--red);
  font-weight: 700;
}
.center {
  text-align: center;
  margin-top: 38px;
}
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 65px;
  align-items: center;
}
.about-logo {
  background: #fff;
  border-radius: 24px;
  padding: 35px;
  box-shadow: var(--shadow);
}
.check-list {
  list-style: none;
  margin: 25px 0;
}
.check-list li {
  position: relative;
  padding: 8px 0 8px 34px;
}
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #e3f3e1;
  color: #3b9f42;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.check-list.compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 18px;
}
.home-gallery,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.home-gallery img,
.gallery-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.cta-band {
  background: var(--blue);
  color: #fff;
  padding: 60px 0;
}
.cta-band h2 {
  color: #fff;
}
.cta-band .eyebrow {
  color: #ff8a8f;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}
.footer {
  background: #071d43;
  color: #d8e0ef;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 50px;
}
.footer-logo {
  width: 150px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 16px;
}
.footer h3 {
  color: #fff;
  margin-bottom: 15px;
}
.footer a,
.footer p {
  display: block;
  color: #d8e0ef;
  text-decoration: none;
  margin: 8px 0;
}
.footer a:hover {
  color: #fff;
}
.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 45px;
  padding: 20px;
}
.page-hero {
  background:
    linear-gradient(100deg, rgba(9, 40, 92, 0.96), rgba(18, 59, 122, 0.82)),
    url("portada.jpg.jpg") center/cover;
  color: #fff;
  padding: 88px 0;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}
.page-hero p {
  font-size: 1.15rem;
  margin-top: 15px;
}
.breadcrumbs {
  margin-bottom: 14px;
  color: #dce6f9;
}
.breadcrumbs a {
  color: #fff;
}
.detail-section {
  scroll-margin-top: 110px;
  padding: 72px 0;
  border-bottom: 1px solid #e4e8f0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: start;
}
.detail-icon {
  min-height: 280px;
  background: var(--light);
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 6rem;
}
.detail-copy h2 {
  font-size: 2.2rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.detail-copy > p {
  color: var(--muted);
}
.check-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  margin-top: 18px;
}
.gallery-location {
  font-size: 2rem;
  color: var(--blue);
  margin: 45px 0 20px;
}
.gallery-card {
  position: relative;
}
.gallery-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(9, 40, 92, 0.88);
  color: #fff;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 0.82rem;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-placeholder {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.review-placeholder i {
  color: #f6b500;
  font-size: 1.25rem;
}
.review-placeholder h3 {
  color: var(--blue);
  margin: 14px 0 8px;
}
.review-example-heading {
  margin-top: 0;
}
.sample-badge {
  display: inline-block;
  background: #fff1cf;
  color: #805b00;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.review-stars {
  color: #f6b500;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.review-service {
  display: block;
  color: var(--red);
  font-weight: 700;
  margin-top: 15px;
}
.notice {
  background: #fff7e3;
  border-left: 4px solid #f6b500;
  padding: 18px;
  border-radius: 7px;
  margin: 25px 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 45px;
  align-items: start;
}
.contact-panel {
  background: var(--blue);
  color: #fff;
  border-radius: 20px;
  padding: 34px;
}
.contact-panel h2 {
  margin-bottom: 12px;
}
.contact-item {
  display: flex;
  gap: 15px;
  margin: 24px 0;
}
.contact-item i {
  color: #ff7479;
  font-size: 1.35rem;
  margin-top: 4px;
}
.contact-item a {
  color: #fff;
}
.estimate-form {
  background: #fff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: var(--shadow);
  border: 1px solid #e4e9f2;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-weight: 700;
  color: var(--blue);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  font: inherit;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(18, 59, 122, 0.14);
  border-color: var(--blue);
}
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
}
.success-message {
  display: none;
  background: #e6f5e8;
  color: #216b2a;
  padding: 14px;
  border-radius: 8px;
  margin-top: 15px;
}
.success-message.show {
  display: block;
}
.dynamic-reviews:empty {
  display: none;
}
.review-form-wrap {
  max-width: 850px;
  margin: 60px auto 35px;
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 20px;
  padding: 35px;
  box-shadow: var(--shadow);
}
.review-form {
  display: grid;
  gap: 18px;
}
.form-status {
  min-height: 24px;
  font-weight: 600;
}
.form-status.success {
  color: #216b2a;
}
.form-status.error {
  color: #b51218;
}
.review-form button:disabled,
.review-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.staff-link {
  margin-top: 12px;
  font-size: 0.82rem;
  opacity: 0.75;
}
.admin-body {
  min-height: 100vh;
  background: #eef2f8;
}
.admin-shell {
  width: min(1050px, 92%);
  margin: 0 auto;
  padding: 60px 0;
}
.admin-card {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  padding: 38px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.admin-card[hidden] {
  display: none;
}
.admin-logo {
  width: 150px;
  margin-bottom: 18px;
}
.admin-card h1 {
  color: var(--blue);
  margin-bottom: 10px;
}
.admin-card > p {
  margin-bottom: 24px;
}
.admin-dashboard {
  max-width: 1000px;
}
.admin-heading,
.pending-review-heading,
.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.pending-reviews {
  display: grid;
  gap: 20px;
  margin: 25px 0;
}
.pending-review {
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  padding: 24px;
}
.pending-review h2 {
  color: var(--blue);
}
.pending-review p {
  margin: 14px 0;
}
.review-actions {
  justify-content: flex-start;
  margin-top: 18px;
}
.btn-approve {
  background: #238636;
  color: #fff;
}
.btn-reject {
  background: #fff;
  color: #b51218;
  border: 2px solid #b51218;
}
@media (max-width: 980px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 96px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 5%;
    box-shadow: 0 15px 22px rgba(0, 0, 0, 0.12);
  }
  .menu.open {
    display: flex;
  }
  .menu a {
    display: block;
    padding: 12px 0;
    border: 0;
  }
  .header-cta {
    display: none;
  }
  .card-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .detail-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 680px) {
  .top-left span {
    display: none;
  }
  .top-left {
    gap: 8px;
  }
  .navbar {
    min-height: 78px;
  }
  .logo img {
    height: 62px;
    width: 122px;
  }
  .menu {
    top: 78px;
  }
  .hero {
    min-height: 590px;
    background:
      linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
      url("portada.jpg.jpg") center/cover;
  }
  .section {
    padding: 62px 0;
  }
  .card-grid,
  .reviews-grid,
  .home-gallery,
  .gallery-grid,
  .form-grid,
  .check-columns,
  .check-list.compact,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .home-gallery img,
  .gallery-card img {
    height: 270px;
  }
  .cta-inner {
    display: block;
  }
  .cta-inner .button-row {
    margin-top: 25px;
  }
  .footer-grid {
    gap: 28px;
  }
  .review-form-wrap,
  .admin-card {
    padding: 25px;
  }
  .admin-heading,
  .pending-review-heading,
  .review-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
 @media (max-width: 680px) {
  .top-left > span {
    display: none !important;
  }

  .top-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }

  .top-left a[href^="mailto:"],
  .top-container a[href^="tel:"] {
    display: inline-flex !important;
    width: auto !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-size: 12px !important;
  }
}