/* =========================================
   RESET
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #020617;          /* fondo general oscuro */
  color: #e5e7eb;
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================
   COLORES BASE (ajustados al logo)
========================================= */
:root {
  --azul-neon: #38bdf8;        /* azul brillante */
  --azul-profundo: #020617;    /* fondo principal */
  --azul-medio: #0f172a;       /* paneles */
  --azul-oscuro: #020617;
  --acento: #facc15;           /* dorado */
  --texto-suave: #9ca3af;
}

/* =========================================
   HEADER
========================================= */
.main-header {
  background: radial-gradient(circle at left, #0f172a, #020617 55%);
  border-bottom: 1px solid #1f2933;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 100px;
}
.main-nav a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.main-nav a:hover {
  color: var(--azul-neon);
}

/* =========================================
   HERO – PORTADA
========================================= */
.hero {
  background: radial-gradient(circle at top, #0b1120 0%, #020617 70%);
  padding: 80px 0 60px;
}
.hero-content {
  text-align: center;
}
.hero h1 {
  font-size: 40px;
  color: var(--azul-neon);
  letter-spacing: 1px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--acento);
  margin-top: 8px;
  margin-bottom: 18px;
}
.hero-copy {
  max-width: 720px;
  margin: 0 auto 30px;
  color: var(--texto-suave);
  font-size: 15px;
}

/* BOTONES HERO */
.hero-buttons {
  margin-bottom: 25px;
}
.hero-buttons a {
  display: inline-block;
  padding: 10px 22px;
  margin: 4px 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary {
  background: linear-gradient(90deg, #fb923c, #f97316);
  color: #111827;
  box-shadow: 0 8px 24px rgba(248, 113, 22, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-secondary {
  border: 1px solid var(--azul-neon);
  color: var(--azul-neon);
  background: transparent;
}
.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
}

/* LISTA HERO (si la usas después) */
.hero-list {
  list-style: none;
  margin-top: 20px;
}
.hero-list li {
  color: var(--texto-suave);
  font-size: 14px;
  margin: 5px 0;
}

/* =========================================
   SECCIONES GENERALES
========================================= */
.seccion {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  font-size: 26px;
  color: var(--azul-neon);
  margin-bottom: 10px;
}
.section-intro {
  text-align: center;
  color: var(--texto-suave);
  font-size: 15px;
  max-width: 720px;
  margin: 0 auto 35px;
}

/* Listas y subtítulos dentro de secciones (beneficios / flujo) */
.seccion h3 {
  font-size: 18px;
  color: var(--acento);
  margin-top: 18px;
  margin-bottom: 8px;
}
.seccion ul {
  margin: 8px 0 8px 20px;
}
.seccion ul li {
  margin-bottom: 6px;
  color: #d1d5db;
  font-size: 14px;
}

/* =========================================
   MERCADO – PANEL A OSCURAS
========================================= */
#mercado {
  background: #020617;
}
.tabla-mercado-wrapper {
  margin-top: 25px;
  margin-bottom: 25px;
  padding: 10px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid #1f2933;
}
.tabla-mercado {
  width: 100%;
  height: 520px;
  border: none;
}

/* =========================================
   TUTORIALES – TARJETAS VIDEOS
========================================= */
#tutoriales {
  background: linear-gradient(180deg, #020617, #020617);
}
.videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border: none;
  display: block;
  margin: auto;
/* =========================================
   CONTACTO
========================================= */
#contacto {
  background: #020617;
}
.contacto-content {
  text-align: center;
}
.contacto-content p {
  margin-top: 12px;
  color: var(--texto-suave);
}
.contacto-list {
  list-style: none;
  margin-top: 20px;
}
.contacto-list li {
  margin: 6px 0;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background: #020617;
  border-top: 1px solid #1f2933;
  padding: 20px 0 25px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.footer-small {
  margin-top: 4px;
  font-size: 12px;
  color: #4b5563;
}

/* =========================================
   AJUSTES FINOS
========================================= */
.hero {
  margin-top: 0;
}
body {
  margin-top: 0;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (min-width: 768px) {
  .hero-content {
    max-width: 800px;
  }
  .videos {
    grid-template-columns: 1fr 1fr; /* dos videos lado a lado */
  }
}
/* Mejor separación entre secciones */
.seccion {
  margin-bottom: 40px;
}

/* Mejor altura del iframe */
.tabla-mercado {
  height: 600px;
}

/* Centrado más limpio del hero */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
}
/* Botón Construcción — Naranja corporativo AppValúo */
.btn-outline.btn-full {
  background-color: #ffffff !important;
  border: 2px solid #ff7a00 !important; /* Naranja */
  color: #ff7a00 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Hover */
.btn-outline.btn-full:hover {
  background-color: #fff4e6 !important; /* Naranja pastel */
}

.tabla-demeritos-card {
  background: #050814;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.tabla-demeritos-card iframe {
  width: 100%;
  border-radius: 8px;
}
.section-mercado {
  margin-top: 4rem;
}


.mercado-title {
  text-align: center;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.mercado-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: #a0b3cf;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

.mercado-box {
  background: #050914;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.45);
}

.mercado-heading {
  font-size: 1.2rem;
  color: #ffd27a;
  margin-bottom: 0.3rem;
}

.mercado-text {
  font-size: 0.9rem;
  color: #c2cbe0;
  margin-bottom: 1rem;
}

.mercado-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-mercado-secundario,
.btn-mercado-primario {
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.btn-mercado-secundario {
  border: 1px solid #00b3ff;
  color: #00b3ff;
  background: transparent;
}

.btn-mercado-primario {
  background: linear-gradient(45deg, #ffb347, #ff8008);
  color: #161616;
  border: none;
}

.mercado-iframe-wrapper {
  margin-top: 1rem;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;

  /* CONTROL DEL ANCHO */
  max-width: 620px;   /* más angosta */
  margin-left: auto;
  margin-right: auto;
}

.mercado-iframe-wrapper iframe {
  width: 100%;

  /* CONTROL DE LA ALTURA */
  height: 850px;      /* más larga verticalmente */

  border: none;
}
/* TITULOS CENTRADOS */
#mercado h2,
#mercado h3,
#acerca h2,
#acerca h3 {
  text-align: center !important;
}

/* TEXTOS JUSTIFICADOS (párrafos y listas) */
#mercado p,
#mercado ul,
#acerca p,
#acerca ul {
  text-align: justify !important;
}

/* AJUSTAR CONTENEDOR DE TEXTO PARA QUE NO QUEDE MUY ANCHO */
#mercado .grid-2 > div:first-child,
#acerca .grid-2 > div:first-child {
  max-width: 800px;
  margin: 0 auto;
}

/* LISTAS JUSTIFICADAS */
#mercado li,
#acerca li {
  text-align: justify !important;
}
/* Títulos centrados */
.appvaluo-title,
.titulo-aporta,
.mercado-title {
  text-align: center;
}

/* Texto justificado dentro del bloque */
.bloque-appvaluo p,
.bloque-appvaluo ul,
.bloque-appvaluo li {
  text-align: justify;
}

/* Separación entre "¿Qué es AppValúo?" y el texto de abajo */
.appvaluo-title {
  margin-bottom: 16px;
}

/* Separación fuerte antes de "¿Qué aporta AppValúo?" */
.titulo-aporta {
  margin-top: 40px;
  margin-bottom: 12px;
}
/* Centrar botones del bloque Mercado */
.mercado-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;     /* centra horizontalmente */
  gap: 16px;               /* separa los botones */
}

/* Para que el botón no se expanda a toda la pantalla */
.mercado-buttons a {
  width: auto !important;
  text-align: center;
}
/* ESPACIO ENTRE “¿Qué aporta AppValúo?” y “Mercado de Propiedades” */
.bloque-appvaluo {
  margin-bottom: 60px !important;   /* Puedes subirlo a 80px si quieres */
}

.tabla-demeritos {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
}

.tabla-demeritos iframe {
  width: 500px;        
  height: 650px;
  display: Block;
}

/* ============================
   TABLA DE DEMÉRITOS
   ============================ */

#demeritos .table-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  background: #020617;              /* fondo oscuro dentro de tu esquema */
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

#demeritos h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Tabla base */
.tabla-demeritos {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

/* Encabezados */
.tabla-demeritos thead tr {
  background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.tabla-demeritos th {
  color: #f9fafb;
  text-align: center;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

/* Celdas */
.tabla-demeritos td {
  padding: 0.6rem 0.9rem;
  text-align: center;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
}

/* Filas alternadas */
.tabla-demeritos tbody tr:nth-child(even) {
  background: #020617;
}

.tabla-demeritos tbody tr:nth-child(odd) {
  background: #02081f;
}

/* Hover */
.tabla-demeritos tbody tr:hover {
  background: rgba(59, 130, 246, 0.18);
  transition: background 0.2s ease;
}

/* Columnas numéricas un poco más estrechas (opcional) */
.tabla-demeritos th:nth-child(1),
.tabla-demeritos td:nth-child(1),
.tabla-demeritos th:nth-child(2),
.tabla-demeritos td:nth-child(2) {
  width: 20%;
}

/* Caja premium para tablas embebidas */
.tabla-demeritos-box {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #0d1b2a;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Marco para que la tabla no se pegue al borde */
.tabla-demeritos-scroll {
    overflow-x: auto;
    padding: 10px;
    border-radius: 10px;
    background: #112240;
}

/* Ajuste del iframe */
.tabla-demeritos-box iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
    border-radius: 10px;
   /* Caja elegante para la tabla de deméritos */
.tabla-demeritos-box {
  max-width: 850px;
  margin: 0 auto 40px;
  padding: 0;                        /* evita el borde blanco arriba */
  background: transparent;           /* que el fondo sea limpio */
  border-radius: 12px;
}

/* Área interna con desplazamiento */
.tabla-demeritos-scroll {
  width: 100%;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;               /* quita barra horizontal */
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.35); 
  background: #ffffff;              /* fondo blanco para que la tabla luzca */
}

/* Iframe ajustado al contenedor */
.tabla-demeritos-scroll iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}
.contacto-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.contact-item a {
  color: #58a6ff;
  text-decoration: none;
}

.contact-item a.whats-link {
  color: #31d843;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ==== BOTONES DE CONTACTO ==== */

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: #0d1117;
  border: 2px solid #1f6feb;
  color: #c9d1d9;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: 0.25s;
  width: 320px;
  justify-content: center;
}

.contact-btn:hover {
  background: #1f6feb;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0px 0px 18px rgba(31, 110, 235, 0.6);
}

.btn-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Botón verde para WhatsApp */
.contact-btn.whatsapp {
  border-color: #25d366;
}

.contact-btn.whatsapp:hover {
  background: #25d366;
  color: #fff;
  box-shadow: 0px 0px 18px rgba(37, 211, 102, 0.6);
}


   
/* ==== ICONOS DE CONTACTO SOLO ÍCONO ==== */

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;     
 
}


.icon-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border-radius: 12px;
  padding: 6px;
  transition: 0.25s;
}

.icon-img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  transition: 0.25s;
}

/* Hover efecto profesional */
.icon-btn:hover .icon-img {
  transform: scale(1.12);
  filter: drop-shadow(0px 0px 12px rgba(255,255,255,0.25));
}

   @media (max-width: 600px) {
  .hero-content h1 { font-size: 1.8rem; }
  .main-header { padding: 10px 0; }
  iframe { height: 350px; }
}
