
:root {
  --bg-main: #111d1c;
  --bg-alt: #0f1817;
  --accent: #f58726;
  --accent-soft: rgba(245, 135, 38, 0.16);
  --accent-strong: #ff9a3a;
  --text-main: #f4f4f4;
  --text-muted: #b8c0c0;
  --card-bg: #172423;
  --border-soft: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.22s ease;
  --container-width: 1120px;
  --nav-height: 70px;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1e2c2a 0, #050808 55%, #020303 100%);
  color: var(--text-main);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(4, 9, 10, 0.98), rgba(4, 9, 10, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, var(--accent-strong), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
  color: #101314;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.main-nav a {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text-main);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 10, 11, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.02);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(5, 90, 75, 0.55), transparent 55%),
    radial-gradient(circle at bottom left, rgba(1, 5, 8, 0.95), #020404 70%);
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem 4.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(2, 8, 8, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw + 1.5rem, 3.1rem);
  line-height: 1.05;
  max-width: 26rem;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  max-width: 32rem;
  margin-top: 1.1rem;
  margin-bottom: 1.8rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.4rem;
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #111;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.btn.secondary {
  background: rgba(4, 12, 12, 0.92);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn.secondary:hover {
  background: rgba(8, 20, 21, 0.96);
}

.btn.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text-main);
}

.btn.outline:hover {
  background: rgba(9, 16, 16, 0.85);
}

.btn.full {
  width: 100%;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #111f1f 0, #050909 60%, #050607 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  max-width: 32rem;
  margin: 0 auto;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Grid */

.grid {
  display: grid;
  gap: 1.7rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.properties-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Cards */

.card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(37, 63, 57, 0.58), rgba(9, 16, 17, 0.96));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(245, 135, 38, 0.17), transparent 50%),
    radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.78), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Properties */

.property-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.property-body {
  padding: 1.2rem 1.35rem 1.45rem;
}

.property-body h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.property-body p {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.property-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.property-meta li + li {
  margin-top: 0.15rem;
}

/* Gallery */

.gallery-wrapper {
  margin-top: 3rem;
}

.gallery-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.gallery-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.3rem;
}

.gallery-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-item {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  cursor: zoom-in;
  height: 95px;
  object-fit: cover;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 135, 38, 0.85);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

/* Lightbox */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 5, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1.5rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  max-width: 960px;
  width: 100%;
}

.lightbox-content img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
}

/* Trámites & video */

.tramites-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.78rem;
  color: var(--accent-strong);
}

.checklist li + li {
  margin-top: 0.45rem;
}

.video-card {
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: radial-gradient(circle at top right, rgba(245, 135, 38, 0.18), rgba(7, 12, 12, 0.96));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Ubicación */

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.location-maps {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.7rem;
}

.location-maps img {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
  height: 180px;
  object-fit: cover;
}

.location-text h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.location-text p {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

/* Contacto */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.contact-list a {
  color: var(--accent-strong);
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(20, 46, 43, 0.7), rgba(7, 12, 12, 0.96));
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.contact-form-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 8, 8, 0.82);
  color: var(--text-main);
  padding: 0.55rem 0.75rem;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(245, 135, 38, 0.5);
  background: rgba(2, 6, 6, 0.96);
}

.form-disclaimer {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* WhatsApp floating */

.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.3rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #1ebe57);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  z-index: 60;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
}

.wa-icon {
  font-size: 1.45rem;
}

/* Footer */

.main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #050707;
  padding: 1.4rem 0 1.6rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right a {
  color: var(--accent-strong);
}

/* Responsive */

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .properties-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tramites-layout,
  .location-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-maps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    gap: 0.75rem;
  }

  .main-nav {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    background: rgba(3, 7, 7, 0.97);
    padding: 0.75rem 1.5rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-content {
    padding-top: 4rem;
    padding-bottom: 3.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-subtitle {
    max-width: none;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-maps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
  }
}
