/* === RESET & VARIABLES === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #E8500A;
  --orange-light: #FF6B2B;
  --orange-glow: rgba(232, 80, 10, 0.12);
  --dark: #0C0C0B;
  --mid: #161615;
  --warm: #1E1E1C;
  --surface: #242422;
  --cream: #F2EDE5;
  --cream-dim: #D4CFC7;
  --gray: #7A7A72;
  --border: #2A2A28;
  --border-light: #333330;
}

body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === HERO === */
.hero {
  background: linear-gradient(160deg, #0D0D0B 0%, #15150F 50%, #1A1308 100%);
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,80,10,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,80,10,0.3), transparent);
}

.hero-deco {
  position: absolute;
  top: 20px; right: 30px;
  width: 80px; height: 80px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-deco span { position: absolute; background: var(--orange); }
.hero-deco span:nth-child(1) { top: 0; left: 0; width: 100%; height: 1px; }
.hero-deco span:nth-child(2) { top: 0; right: 0; width: 1px; height: 100%; }
.hero-deco span:nth-child(3) { bottom: 0; left: 0; width: 60%; height: 1px; }
.hero-deco span:nth-child(4) { top: 0; left: 0; width: 1px; height: 60%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,80,10,0.1);
  border: 1px solid rgba(232,80,10,0.25);
  color: var(--orange-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 9vw, 68px);
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--cream);
  margin-bottom: 4px;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.title span {
  color: var(--orange);
  display: block;
  margin-top: 2px;
}

.subtitle {
  font-size: 15px;
  color: var(--gray);
  font-weight: 300;
  margin-top: 20px;
  line-height: 1.65;
  max-width: 440px;
}

.subtitle strong {
  color: var(--cream-dim);
  font-weight: 500;
}

/* === STATUS BAR === */
.status-bar {
  background: linear-gradient(90deg, var(--orange) 0%, #C44008 100%);
  padding: 14px 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.status-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
  color: #fff;
}

.status-bar p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
}

.status-bar p span {
  font-weight: 300;
  opacity: 0.85;
}

/* === SECTION LABELS === */
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-desc {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

/* === FLOOR PLAN === */
#plano {
  padding: 2.5rem 2rem;
}

.plano-instrucciones {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 14px;
}

.plano-instrucciones strong {
  color: var(--orange-light);
}

#floorplan-container {
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow: hidden;
}

#floorplan-svg {
  width: 100%;
  height: auto;
  display: block;
  cursor: default;
  touch-action: none;
}

/* SVG interactive styles */
.wall-movable { cursor: ew-resize; }
.wall-movable:hover { stroke-width: 4; filter: brightness(1.3); }
.wall-dragging { stroke-width: 5; filter: brightness(1.4); }
.unit-rect { cursor: pointer; transition: fill 0.15s; }
.unit-rect:hover { fill: rgba(232, 80, 10, 0.15) !important; }
.unit-selected { fill: rgba(232, 80, 10, 0.25) !important; }

/* === INFO PANEL === */
.info-panel {
  margin-top: 1rem;
  background: var(--warm);
  border: 1px solid var(--orange);
  border-radius: 6px;
  padding: 1rem 1.5rem;
}

.info-panel.hidden { display: none; }

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.info-item {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.info-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 1px;
}

.info-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
}

.info-price .info-value {
  color: var(--orange-light);
  font-size: 1.5rem;
}

/* === CONTACT FORM === */
#contacto {
  padding: 0 2rem 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--cream);
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 80, 10, 0.15);
}

.form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: var(--surface);
  color: var(--gray);
  cursor: not-allowed;
  border: 1px solid var(--border);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  margin-top: 0.75rem;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}

/* === FORM STATUS === */
.form-status {
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(46, 125, 50, 0.15);
  color: #66bb6a;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(198, 40, 40, 0.15);
  color: #ef9a9a;
  border: 1px solid rgba(198, 40, 40, 0.3);
}

/* === BID NOTICE === */
.bid-notice {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(232, 80, 10, 0.1);
  border: 1px solid rgba(232, 80, 10, 0.3);
  border-radius: 4px;
  color: var(--orange-light);
  font-size: 0.9rem;
}

/* === FEATURES === */
.section-features {
  padding-bottom: 2.5rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
  transition: border-color 0.25s, background 0.25s;
}

.feature:hover {
  border-color: rgba(232, 80, 10, 0.4);
  background: var(--surface);
}

.feature-icon-wrap {
  width: 36px; height: 36px;
  background: rgba(232, 80, 10, 0.08);
  border: 1px solid rgba(232, 80, 10, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon-wrap svg {
  width: 18px; height: 18px;
  color: var(--orange);
}

.feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.feature-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
}

/* === LOCATION === */
.location {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 2.5rem;
}

.location-icon-wrap {
  width: 44px; height: 44px;
  background: rgba(232, 80, 10, 0.08);
  border: 1px solid rgba(232, 80, 10, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon-wrap svg {
  width: 20px; height: 20px;
  color: var(--orange);
}

.location-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 3px;
}

.location-text p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

/* === CONTACT CARDS === */
.section-contact-alt {
  padding-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-card {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.15s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.contact-card.email-card:hover { border-color: var(--orange); }

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card-icon {
  width: 36px; height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-card .contact-card-icon {
  background: rgba(232, 80, 10, 0.12);
  border: 1px solid rgba(232, 80, 10, 0.2);
}

.whatsapp-card .contact-card-icon {
  background: rgba(18, 140, 126, 0.12);
  border: 1px solid rgba(18, 140, 126, 0.2);
}

.contact-card-icon svg { width: 18px; height: 18px; }
.email-card .contact-card-icon svg { color: var(--orange); }
.whatsapp-card .contact-card-icon svg { color: #25D366; }

.contact-card-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
}

.contact-card p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.55;
}

.contact-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-light);
  margin-top: auto;
  letter-spacing: 0.3px;
}

.contact-card .card-link svg {
  width: 14px; height: 14px;
  transition: transform 0.2s;
}

.contact-card:hover .card-link svg {
  transform: translateX(3px);
}

/* === FOOTER === */
.footer-note {
  text-align: center;
  padding: 22px 2rem;
  background: var(--mid);
  border-top: 1px solid var(--border);
}

.footer-note p {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.7;
}

.footer-note strong {
  color: var(--orange-light);
  font-weight: 600;
}

.footer-copy {
  margin-top: 12px;
  opacity: 0.5;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 36px 0 32px; }
  #plano { padding: 2rem 1.25rem; }
  #contacto { padding: 0 1.25rem 2rem; }
  .status-bar { padding: 12px 1.25rem; }
  .features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .info-grid { gap: 0.5rem; }
  .info-item { min-width: 60px; }
  .info-value { font-size: 1.1rem; }
  .info-price .info-value { font-size: 1.2rem; }
  #floorplan-container { padding: 0.5rem; }
  .footer-note { padding: 20px 1.25rem; }
}
