/* =====================================================
   MARCHETTO SERVICIOS INMOBILIARIOS
   Main Stylesheet
   ===================================================== */

/* ----- CSS Custom Properties ----- */
:root {
  --color-orange:      #E8571A;
  --color-orange-dark: #C94910;
  --color-orange-light:#F4784A;
  --color-navy:        #1B2D6B;
  --color-navy-dark:   #131F4A;
  --color-navy-light:  #2A4299;
  --color-white:       #FFFFFF;
  --color-bg-light:    #F7F7F7;
  --color-bg-section:  #F2F4F8;
  --color-text:        #2C2C2C;
  --color-text-muted:  #6B7280;
  --color-border:      #E5E7EB;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.18);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --transition: 0.3s ease;
  --nav-height: 72px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ----- Utility ----- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-divider {
  width: 52px;
  height: 4px;
  background: var(--color-orange);
  border-radius: 2px;
  margin: 16px auto;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.btn-primary:hover {
  background: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 87, 26, 0.35);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-sm:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ----- Reveal Animation ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* Stagger children */
.servicios-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.servicios-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.servicios-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.propiedades-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.propiedades-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}

.navbar.transparent {
  background: transparent;
}

.navbar.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  height: 64px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--color-white);
  transition: color var(--transition);
}

.navbar.scrolled .nav-brand-text {
  color: var(--color-navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 24px);
  height: 2px;
  background: var(--color-orange);
  border-radius: 1px;
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
  color: var(--color-white);
}

.navbar.scrolled .nav-link {
  color: var(--color-text);
}

.navbar.scrolled .nav-link:hover {
  color: var(--color-orange);
}

.nav-cta {
  background: var(--color-orange);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  margin-left: 8px;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--color-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,87,26,0.3);
  color: var(--color-white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: all 0.35s ease;
  transform-origin: left center;
}

.navbar.scrolled .hamburger-line {
  background: var(--color-navy);
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(38deg) translateY(-1px);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-38deg) translateY(1px);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      rgba(27, 45, 107, 0.97) 0%,
      rgba(19, 31, 74, 0.92) 40%,
      rgba(27, 45, 107, 0.88) 70%,
      rgba(232, 87, 26, 0.25) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cdefs%3E%3Cpattern id='g' x='0' y='0' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 80L80 0M-10 10L10-10M70 90L90 70' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='400' height='400' fill='url(%23g)'/%3E%3C/svg%3E");
  background-size: cover;
}

/* Geometric accent shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,87,26,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,87,26,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(27, 45, 107, 0.5) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-orange-light);
  margin-bottom: 20px;
  transition-delay: 0.1s;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
  transition-delay: 0.2s;
}

.hero-title-accent {
  color: var(--color-orange);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  transition-delay: 0.3s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  transition-delay: 0.4s;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* =====================================================
   SERVICIOS
   ===================================================== */
.servicios {
  background: var(--color-white);
  position: relative;
}

.servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-navy) 100%);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.servicio-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.servicio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

.servicio-card:hover::before {
  transform: scaleX(1);
}

.servicio-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(232,87,26,0.1), rgba(27,45,107,0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-orange);
  transition: background var(--transition), color var(--transition);
}

.servicio-icon svg {
  width: 28px;
  height: 28px;
}

.servicio-card:hover .servicio-icon {
  background: var(--color-orange);
  color: var(--color-white);
}

.servicio-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.servicio-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =====================================================
   NOSOTROS
   ===================================================== */
.nosotros {
  background: var(--color-bg-section);
  position: relative;
  overflow: hidden;
}

.nosotros::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232,87,26,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros-text .section-title {
  text-align: left;
}

.nosotros-text .section-divider {
  margin-left: 0;
  margin-right: auto;
}

.nosotros-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.nosotros-text strong {
  color: var(--color-navy);
}

.nosotros-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nosotros-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(232,87,26,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-orange);
}

.feature-icon svg {
  width: 14px;
  height: 14px;
}

/* Stats Box */
.nosotros-stats {
  position: relative;
}

.stats-box {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.stats-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232,87,26,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.stats-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(232,87,26,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.stats-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-orange-light));
}

.stat-item {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.stats-location {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.stats-location svg {
  width: 16px;
  height: 16px;
  color: var(--color-orange);
  flex-shrink: 0;
}

/* =====================================================
   PROPIEDADES
   ===================================================== */
.propiedades {
  background: var(--color-bg-light);
}

.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.propiedad-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.propiedad-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.propiedad-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.propiedad-img--1 {
  background: linear-gradient(
    135deg,
    #1B2D6B 0%,
    #2A4299 40%,
    #E8571A 100%
  );
}

.propiedad-img--2 {
  background: linear-gradient(
    135deg,
    #131F4A 0%,
    #E8571A 60%,
    #C94910 100%
  );
}

.propiedad-img--3 {
  background: linear-gradient(
    135deg,
    #E8571A 0%,
    #1B2D6B 50%,
    #131F4A 100%
  );
}

.propiedad-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cdefs%3E%3Cpattern id='p' x='0' y='0' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 40L40 0M-5 5L5-5M35 45L45 35' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23p)'/%3E%3C/svg%3E");
}

.propiedad-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.propiedad-badge--venta {
  background: var(--color-orange);
  color: var(--color-white);
}

.propiedad-badge--alquiler {
  background: var(--color-navy);
  color: var(--color-white);
}

.propiedad-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.propiedad-tipo {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.propiedad-body {
  padding: 24px;
}

.propiedad-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.propiedad-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.propiedad-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.spec svg {
  width: 14px;
  height: 14px;
  color: var(--color-orange);
  flex-shrink: 0;
}

.propiedad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.propiedad-precio {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
}

.propiedades-cta {
  text-align: center;
}

/* =====================================================
   CONTACTO
   ===================================================== */
.contacto {
  background: var(--color-white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 60px;
  align-items: start;
}

.contacto-info-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 32px;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contacto-item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(232,87,26,0.1), rgba(27,45,107,0.05));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-orange);
}

.contacto-item-icon svg {
  width: 22px;
  height: 22px;
}

.contacto-item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacto-item-text strong {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.contacto-item-text a,
.contacto-item-text span {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  transition: color var(--transition);
}

.contacto-item-text a:hover {
  color: var(--color-orange);
}

/* Contact Form */
.contacto-form-wrap {
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0B7C3;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(232,87,26,0.12);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #E53E3E;
}

.form-error {
  font-size: 0.78rem;
  color: #E53E3E;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  color: #2F855A;
  font-weight: 600;
  background: rgba(47,133,90,0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: -8px;
}

.form-success.visible {
  display: block;
}

/* Map */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.map-container iframe {
  display: block;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.75);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-white);
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--color-orange);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-nav a:hover {
  color: var(--color-orange);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-contact a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-divider {
  color: rgba(255,255,255,0.15);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232,87,26,0.4);
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-orange-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* =====================================================
   RESPONSIVE — Tablet (max 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nosotros-stats {
    max-width: 480px;
  }

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

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* =====================================================
   RESPONSIVE — Mobile (max 768px)
   ===================================================== */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 72px 0;
  }

  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--color-navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + 32px) 32px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 12px 8px;
    width: 100%;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    color: var(--color-orange);
    padding-left: 12px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Overlay when menu open */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Servicios */
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Propiedades */
  .propiedades-grid {
    grid-template-columns: 1fr;
  }

  /* Contacto */
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacto-form-wrap {
    padding: 28px 20px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 24px 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .footer-bottom-divider {
    display: none;
  }

  /* Back to top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .stats-box {
    padding: 32px 24px;
  }

  .propiedad-specs {
    gap: 10px;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.875rem;
  }
}
