/* ============================================================
   FILA CERO — Novotech Los Cabos | style.css
   Liquid Glass Design System | Montserrat | Paleta Institucional
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --primary:       #12345e;
  --primary-light: #1a4a82;
  --secondary:     #95989a;
  --card-bg:       #696e70;
  --bg:            #F8FAFC;
  --white:         #ffffff;

  --glass-bg:      rgba(255, 255, 255, 0.07);
  --glass-border:  rgba(255, 255, 255, 0.18);
  --glass-shadow:  0 8px 40px rgba(0, 0, 0, 0.35);
  --glass-blur:    blur(22px) saturate(180%);

  --text-light:    rgba(255, 255, 255, 0.92);
  --text-muted:    rgba(255, 255, 255, 0.60);
  --input-bg:      rgba(255, 255, 255, 0.10);
  --input-border:  rgba(255, 255, 255, 0.22);
  --input-focus:   rgba(255, 255, 255, 0.40);

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --font:       'Montserrat', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── FONDO ── */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 20, 45, 0.82) 0%,
    rgba(18, 52, 94, 0.72) 40%,
    rgba(10, 25, 50, 0.85) 100%
  );
}

/* ── HEADER ── */
.site-header {
  position: relative;
  z-index: 100;
  padding: 18px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 20, 45, 0.5);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 15px rgba(18,52,94,0.5);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}
.brand-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--secondary);
  text-transform: uppercase;
}
.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}
.header-user {
  display: flex;
  align-items: center;
  gap: 15px;
}
.user-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.user-welcome {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.user-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.btn-logout {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s var(--ease);
}
.btn-logout:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
  transform: scale(1.05);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0.1); }
}

/* ── LAYOUT ── */
.main-content {
  position: relative;
  z-index: 10;
  padding: 28px 24px 24px;
  min-height: calc(100vh - 79px - 52px);
}
.layout-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── FORM COMPONENTS ── */
.form-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.form-icon-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(18,52,94,0.45);
}
.form-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.form-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.field-group { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 7px;
}
.required { color: #f87171; margin-left: 2px; }

/* ── INPUTS ── */
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}
.glass-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  padding: 12px 14px 12px 40px;
  outline: none;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(6px);
}
.glass-input:focus {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.field-error {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: #f87171;
  margin-top: 5px;
}

/* ── BOTONES ── */
.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #c93d0e 0%, #fc5822 60%, #fd7a4e 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s var(--ease);
  box-shadow: 0 6px 24px rgba(252, 88, 34, 0.50);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(252, 88, 34, 0.70); }
.btn-arrow { display: flex; align-items: center; transition: transform 0.3s var(--ease); }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

/* ── VIDEO ── */
.video-header { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.video-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.25);
  animation: pulse-dot 1.5s ease infinite;
}
.video-label-text {
  font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted);
}
.video-wrapper {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  background: rgba(0,0,0,0.4); aspect-ratio: 16/9;
}
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-controls { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 8px; }
.video-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45); color: #fff; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}

/* ── FEATURES ── */
.features-title { font-size: 15px; font-weight: 800; margin-bottom: 18px; color: #fff; }
.features-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.feature-item:last-child { border-bottom: none; }
.feature-icon-wrap {
  width: 36px; height: 36px; min-width: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(18,52,94,0.7), rgba(26,74,130,0.5));
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.85);
}
.feature-text { display: flex; flex-direction: column; gap: 2px; }
.feature-text strong { font-size: 13px; font-weight: 700; color: #fff; }
.feature-text span { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

/* ── FOOTER ── */
.site-footer {
  position: relative; z-index: 10; padding: 16px 32px; text-align: center;
  backdrop-filter: blur(8px); background: rgba(8,20,45,0.45); border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner p { font-size: 12px; color: var(--text-muted); }

/* ── GLASS CARD ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 28px;
  animation: fadeInUp 0.7s var(--ease) 0.15s both;
}

/* ── MAPA SECTION ── */
.map-card {
  padding: 32px;
  animation: fadeInUp 0.7s var(--ease) 0.1s both;
}
.card-header-simple {
  text-align: center;
  margin-bottom: 24px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.map-placeholder {
  width: 100%;
  aspect-ratio: 21/9;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative; /* Para el modal interno */
}
.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}
.placeholder-content span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── BOTTOM GRID ── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.bottom-grid .glass-card {
  height: 100%;
  margin-bottom: 0;
  animation: fadeInUp 0.7s var(--ease) 0.2s both;
}

/* ── ANIMACIONES ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MAPA INTERACTIVO ── */
.placeholder-content {
  width: 100%;
  height: 100%;
  display: block; /* Sobrescribir flex si es necesario */
}
#mapa {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: #0b1427;
  border-radius: var(--radius-md);
  z-index: 1;
}

/* ── MODAL DETALLE LOTE ── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
}
#modal-detalle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 280px;
  background: rgba(18, 52, 94, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  z-index: 1000;
  display: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  color: #fff;
  animation: fadeInRight 0.4s var(--ease) both;
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s;
}
.cerrar-modal:hover { color: #fff; }

#modal-detalle p {
  margin-bottom: 12px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.label-teal {
  color: #4ade80;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.value-white {
  color: #fff;
  font-weight: 600;
}
#btn-apartar {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  text-align: center;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
#btn-apartar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .map-placeholder { aspect-ratio: 16/9; }
  #mapa { min-height: 400px; }
  .bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 20px; }
  .main-content { padding: 20px 16px 16px; }
  .section-title { font-size: 22px; }
  .map-placeholder { aspect-ratio: auto; height: 400px; }
  .glass-card { padding: 20px 18px; }
}
