/* styles.css - adaptado para index.html (SIN TAILWIND, SIN DARK MODE) */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Inter", "Roboto", sans-serif;
  scroll-behavior: smooth;
  background: #ffffff;
  /*color: #1a1a1a;*/
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

/* ---------- Utility classes (sustitutos Tailwind usados en HTML) ---------- */
.my-auto { margin-top: auto; margin-bottom: auto; }
.text-left { text-align: left; }
.w-full { width: 100%; }
.max-w-6xl { max-width: 1100px; }
.max-w-4xl { max-width: 900px; }
.max-w-md  { max-width: 480px; }

.pt-32 { padding-top: 128px; }
.pb-28 { padding-bottom: 112px; }
.mt-10 { margin-top: 40px; }
.mb-6 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 12px; }
.mt-4 { margin-top: 16px; }
.p-6 { padding: 24px; }
.p-4 { padding: 16px; }
.p-3 { padding: 12px; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }

/* text sizes */
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-lg { font-size: 1.125rem; }

/* font weights */
.font-bold { font-weight: 700; }

/* colors */
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.bg-gray-50 { background: #f9fafb; }
.bg-blue-50 { background: #eff6ff; }
.bg-blue-600 { background: #2563eb; }
.text-white { color: #ffffff; }
/* shadow */
.shadow-md { box-shadow: 0 4px 12px rgba(2,6,23,0.08); }

/* layout quick */
.flex { display:flex; }
.items-center { align-items:center; }
.justify-between { justify-content:space-between; }


/* helper */
.hidden { display:none; }

/* --------- Estilos agregados ------- */
/* Títulos de sección */
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 1200px; }
.bg-white { background: #f3f4f6; }
.gap-10 { gap: 40px; }
.gap-6 { gap: 24px; }
.text-blue-700 { color: #2563eb; }
.text-3xl { font-size: 1.875rem; }
.font-semibold { font-weight: 600; }
.mb-10 { margin-bottom: 40px; }
.text-center { text-align: center; }
.shadow { box-shadow: 0 6px 20px rgba(8,15,30,0.06); }
.shadow-xl { box-shadow: 0 10px 25px rgba(8,15,30,0.06); }
.rounded-xl { border-radius: 16px; }

.section-title {
  color: #2563eb; /* Azul corporativo */
}

/* Animación suave al aparecer */
.animate-fadein {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------- FIN de Estilos agregados ------- */

/* ---------- NAVBAR (UNIFICADO) ---------- */
header {
  width: 100%;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

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

.logo img {
  height: 40px;
}

/* --- Links del navbar --- */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;     /* ya NO usamos margin-left en los links */
}

.nav-link {
  color: #1f2937;
  font-weight: 500;
  text-decoration: none;
  font-size: 16px;
  transition: 0.2s;
}

.nav-link:hover {
  color: #2563eb;
}

/* LOGIN BUTTON estilo pill */
.login-link {
  display: inline-block;
  padding: 8px 18px;
  background: #2563eb;
  color: white !important;
  border-radius: 9999px; /* pill */
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, box-shadow 0.2s;
}

.login-link:hover {
  background: #1e4fcc;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* --- Botón hamburguesa --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: #1f2937;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}

/* --- Responsive navbar --- */
@media (max-width: 768px) {

  .nav-toggle {
    display: block;
  }

  /* el menú se oculta en móvil por defecto */
  .navbar-links {
    display: none;              /* oculto por defecto */
    flex-direction: column;
    position: absolute;
    top: 64px;                  /* separarlo del header */
    right: 16px;
    width: calc(100% - 32px);   /* ancho responsivo con margen lateral */
    max-width: 320px;
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 2500;
    gap: 8px;
    transition: transform 200ms ease, opacity 200ms ease;
    transform-origin: top right;
    transform: scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  /* cuando se abre con el botón */
  .navbar-links.show {
    display: flex;              /* necesario para layout */
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  /* estilo de cada link dentro del menú móvil */
  .navbar-links .nav-link,
  .navbar-links .login-link {
    padding: 10px 12px;
    display: block;
    width: 100%;
    border-radius: 8px;
  }

  .navbar-links .nav-link:hover {
    background: rgba(37,99,235,0.06);
  }

  /* full width para el login en móvil y apariencia tipo pill */
  .login-link {
    text-align: center;
    width: auto;
    background: #2563eb;
    color: #fff !important;
    padding: 10px 14px;
    border-radius: 9999px;
    display: inline-block;
  }

  .login-link:hover {
    background: #1e4fcc;
  }
}

/* Evitar que el body scrolleé detrás del menú cuando está abierto.
   (La clase .nav-open la pone el JS) */
body.nav-open {
  overflow: hidden;
}

/* ------------------------------
   HERO (restaurado)
------------------------------ */
#hero {
  padding: 150px 20px 120px;
  text-align: center;
  background: linear-gradient(180deg, #2563eb, #3b82f6, #93c5fd);
  color: white;
}

.hero-container {
  max-width: 900px;
  margin: auto;
}

.hero-logo {
  width: 220px;
  margin-bottom: 25px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 35px;
}

.hero-btn {
  padding: 14px 28px;
  background: #ffffff;
  color: #2563eb;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: 0.3s;
}

.hero-btn:hover {
  background: #e5e7eb;
}

/* ---------- CAROUSEL ---------- */
.screenshots-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.carousel {
  max-width: 1100px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  background: #fff;
  aspect-ratio: 16/9;
}

.carousel-track {
  display:flex;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  gap: 0;
}

/* .carousel img { width:100%; display:block; } */
.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  flex: 0 0 100%;
  border-radius: 0;
  background: #fff;
}

/* carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: none;
  font-size: 22px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

@media (max-width: 768px) {
  .carousel-btn { display:none; }
}

/* ---------- SECTIONS (Beneficios / Funcionalidades / Precios / Distincion) ---------- */
section { padding: 60px 16px; }
#beneficios { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
#funcionalidades { padding: 80px 20px;}
#precios { padding: 80px 20px; }
#distincion { padding: 80px 20px; }

/* grids */
.grid { display: grid; }

/* Responsive: 3 columnas en escritorio */
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* cards */
.p-6 h3 { font-size: 1.125rem; margin-bottom: 12px; color: #1e40af; font-weight: 600; }
.p-6 p { color: #374151; }

/* funcionalidades list */
#funcionalidades ul { list-style: none; padding-left: 20px; margin: 20px; }

.func-card {
  background: #f3f4f6;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-size: 1.05rem;
}

.func-card::before {
  content: "✔ ";
  color: #2563eb;
  font-weight: bold;
}

/* mini cotizador */
.mod-grid { display:flex; flex-wrap:wrap; gap:20px; justify-content:center; margin-top: 20px; }
.mod-card { background:#fff; padding:20px; border-radius:12px; box-shadow: 0 6px 18px rgba(2,6,23,0.04); width: 100%; max-width: 360px; }
.price-badge { background: #e8f4ff; color:#0b59b8; padding:6px 10px; border-radius:8px; font-weight:700; }
.input-viviendas {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db; /* gris suave */
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-viviendas:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  outline: none;
}

.btn-calcula {
    margin-top:14px;
    background:#0b59b8;
    color:#fff;
    border:none;
    padding:10px 16px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}

.btn-calcula:hover {
    background: #1e4fcf;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
/* ---------- CONTACTO (form) ---------- */
#contacto { padding: 80px 20px; max-width: 1000px; margin: 0 auto; }
.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: #f3f4f6;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}
.contact-card h2 { font-size: 1.6rem; color: #0b59b8; margin-bottom: 12px; }

/* form layout */
form { display:flex; flex-direction:column; gap:14px; margin-top:12px; }
form label { font-weight:600; color:#333; display:block; margin-top:6px; }
/* Inputs del formulario de contacto */
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card input[type="number"],
.contact-card textarea,
.contact-card select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db; /* gris suave */
  background: #fff;
  font-size: 1rem;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus estilo igual al input-viviendas */
.contact-card input[type="text"]:focus,
.contact-card input[type="email"]:focus,
.contact-card input[type="number"]:focus,
.contact-card textarea:focus,
.contact-card select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  outline: none;
}

/* Ajuste textarea */
.contact-card textarea {
  min-height: 110px;
  resize: vertical;
}

form button.btn-enviar {
  padding: 12px 16px;
  border-radius: 10px;
  background: #0b59b8;
  color: #fff;
  font-size: 16px;
  font-weight:700;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

form button.btn-enviar:hover {
    background: #1e4fcf;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* confirmation block */
#confirmacion-block {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border-radius: 10px;
  background: #e8f1ff;
  border-left: 4px solid #2563eb;
}

/* status text */
#contact-status { margin-top: 12px; color: #6b7280; }

#confirmacion-demo {
  margin-top: 8px;
  display: none;
}
#confirmacion-text {
  margin: 4px 0;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 40px 0;
  background: #0b1220;
  color: #fff;
  margin-top: 80px;
  font-size: 0.9rem;
}

/* ---------- Minor responsive tweaks ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
}
@media (max-width: 640px) {
  .max-w-7xl, .max-w-6xl { padding-left: 16px; padding-right: 16px; }
  header .max-w-7xl { padding: 0 12px; }
  .p-6 { padding: 18px; }
  .contact-card { padding: 18px; }
}
