/* ============================================================
   servicios.css — ORDENADO Y LIMPIO
   Basado en la estructura real de servicios.html
   ============================================================ */
:root {
  /* ── Colores de marca ── */
  --serv-orange: #f99109;
  --serv-orange-light: #f3a530;

  /* ── Escala de grises ── */
  --serv-white: #ffffff;
  --serv-gray-50: #f9f9f9;
  --serv-gray-500: #6b7280;
  --serv-gray-550: #666666;
  --serv-gray-600: #555555;
  --serv-gray-800: #111827;
  --serv-gray-900: #1f2937;
  --serv-black: #1a1a1a;

  /* ── Sombras ── */
  --serv-shadow-sm: rgba(0, 0, 0, 0.05);
  --serv-shadow-md: rgba(0, 0, 0, 0.08);
  --serv-shadow-lg: rgba(0, 0, 0, 0.10);
  --serv-shadow-xl: rgba(0, 0, 0, 0.15);
  --serv-shadow-2xl: rgba(0, 0, 0, 0.20);

  /* ── Overlays ── */
  --serv-overlay-light: rgba(0, 0, 0, 0.50);
  --serv-overlay: rgba(0, 0, 0, 0.60);
  --serv-overlay-medium: rgba(0, 0, 0, 0.70);
  --serv-overlay-heavy: rgba(0, 0, 0, 0.90);

  /* ── Glows y transparencias ── */
  --serv-orange-glow: rgba(249, 145, 9, 0.10);
  --serv-white-50: rgba(255, 255, 255, 0.50);

  /* ── Tipografía local ── */
  --serv-lh-text: 1.5;
  --serv-lh-hero: 1.15;

  /* ── Espaciado ── */
  --serv-section-pad: 100px;
  --serv-card-radius: 24px;
  --serv-card-pad: 50px 40px;
}

/* ============================================================
   1. BANNER / HERO
   ============================================================ */
.banner {
  position: relative;
  width: 100%;

  min-height: 545px;
  min-height: clamp(545px, 85vh, 900px);

  overflow: hidden;

  display: flex;
  align-items: center;
}

.banner img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 120%;

  object-fit: cover;
  object-position: center top;
}

.overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 120%;

  background: var(--serv-overlay);
  z-index: 2;
}

.banner-layout {
  position: relative;
  z-index: 3;

  width: min(1200px, 92%);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 4rem;

  padding-left: 60px;
}

.banner-content {
  flex: 1;
  max-width: 650px;

  color: var(--serv-white);

  text-align: left;

  margin-left: clamp(20px, 4vw, 50px);
}

.banner-info {
  width: 420px;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  position: relative;
  left: 60px;
}

.info-stats {
  display: flex;
  gap: 12px;
}

.info-stat {
  flex: 1;

  background: rgba(255, 255, 255, 0.15);

  border: 1px solid rgba(255, 255, 255, 0.18);

  border-radius: 14px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  text-align: center;

  padding: 1rem;
}

.info-stat span {
  display: block;
  color: var(--serv-orange);
}

.info-stat small {
  color: rgba(255, 255, 255, .8);
}

.banner-side {
  width: 420px;

  display: flex;
  flex-direction: column;

  gap: 1rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--serv-white);
  text-shadow:
    0 2px 4px var(--serv-overlay-heavy),
    0 6px 12px var(--serv-overlay-medium),
    0 12px 24px var(--serv-overlay-light);
  max-width: 700px;
}

.hero-description strong,
.banner-content strong {
  color: var(--serv-orange);
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  flex: 1;
  max-width: 260px;
}

.btn-secondary i {
  margin-right: 8px;
}


.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;

  padding: 1.3rem 1.5rem;

  background: rgba(255, 255, 255, 0.18);

  border: 1px solid rgba(255, 255, 255, 0.22);

  border-radius: 18px;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  transition: 0.35s ease;
}

.info-card:hover {
  transform: translateX(-8px);

  background: rgba(255, 255, 255, .18);

  border-color: rgba(251, 159, 46, .5);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, .25),
    0 0 20px rgba(251, 159, 46, .15);
}

.info-card i {
  color: var(--serv-orange);

  font-size: 1.2rem;

  flex-shrink: 0;
}

.info-card p {
  margin: 0;

  color: white;

}

/* ════════════════════════════════════════════════════════════════
   BANNER RESPONSIVE
════════════════════════════════════════════════════════════════ */

/* ── VENTANA PARTIDA / LAPTOPS (hasta 1200px) ── */
@media (max-width: 1200px) {

  .banner-layout {
    width: min(1100px, 94%);
    gap: 2.5rem;
    padding-left: 20px;
  }

  .banner-content {
    max-width: 520px;
    margin-left: 0;
  }

  .banner-info,
  .banner-side {
    width: 340px;
    left: 0;
  }
}

/* ── TABLET / COLUMNA APILADA (hasta 920px) ── */
@media (max-width: 920px) {

  .banner {
    height: auto;
    min-height: unset;
    padding: clamp(80px, 12vw, 110px) clamp(16px, 5vw, 32px) clamp(40px, 7vw, 60px);
    align-items: flex-start;
  }

  .banner-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: clamp(1.2rem, 3vw, 2rem);
    padding-left: 0;
  }

  .banner-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-title {
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 1rem;
  }

  .hero-description {
    max-width: 100%;
    margin-inline: auto;
    padding-inline: clamp(4px, 2vw, 10px);
    margin-bottom: 1.4rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-buttons .btn {
    flex: none;
    width: min(100%, 290px);
    max-width: 290px;
  }

  .banner-info,
  .banner-side {
    width: 100%;
    max-width: 560px;
    position: static;
    left: auto;
  }

  .info-card {
    text-align: left;
    padding: clamp(1rem, 2.5vw, 1.3rem) clamp(1rem, 3vw, 1.5rem);
  }

  .info-card:hover {
    transform: translateY(-4px);
  }

  .info-card p {
    font-size: clamp(0.9rem, 2.2vw, 1rem);
  }
}

/* ============================================================
   2. CASA DE CAMPO LAS REINAS (TikTok)
   ============================================================ */
.tiktok-section {
  padding: var(--serv-section-pad) 20px;
  background: transparent;
  text-align: center;
}

.tiktok-card {
  background: var(--serv-white);
  border-radius: var(--serv-card-radius);
  padding: 50px;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 20px 50px var(--serv-shadow-md);
  overflow: hidden;
  width: 100%;
}

.service-card-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.tiktok-btn {
  white-space: nowrap;
  width: fit-content;
  display: inline-flex;
  flex: none;
}

.tiktok-title {
  margin-bottom: 16px;
}

.tiktok-desc {
  max-width: 750px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
  color: var(--serv-gray-600);
}

.beneficios-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.beneficios-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--serv-gray-50);
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--serv-shadow-md);
  transition: all 0.2s ease;
}

.beneficios-list li:hover {
  transform: translateY(-3px);
}

.beneficios-list .icon {
  font-size: 1.5rem;
}

.tiktok-video {
  display: flex;
  justify-content: center;
  width: 100%;
}

.video-card {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 25px;
  overflow: hidden;
  background: transparent;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 15px 40px var(--serv-shadow-xl),
    inset 0 1px 1px var(--serv-white-50);
  transition: all 0.4s ease;
}

.video-card iframe,
.video-card video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.video-card:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 60px var(--serv-shadow-2xl);
}

.mobile-video {
  display: none;
}

.desktop-video {
  display: flex;
}

/* — TikTok: Responsive — */
@media (max-width: 992px) {
  .desktop-video {
    display: none;
  }

  .mobile-video {
    display: flex;
    justify-content: center;
    margin: 25px 0;
  }

  .service-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tiktok-section {
    padding: 60px 15px;
  }

  .tiktok-card {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .service-card-grid {
    gap: 28px;
  }

  .tiktok-title {
    margin-bottom: 12px;
  }

  .tiktok-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .beneficios-list {
    gap: 10px;
  }

  .beneficios-list li {
    padding: 10px 14px;
  }

  .tiktok-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .video-card {
    width: 100%;
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .tiktok-section {
    padding-inline: 4px;
  }

  .tiktok-card {
    width: 100%;
    padding: 24px 15px;
    margin-left: 0;
  }

  .beneficios-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin: 0 0 30px 0;
  }

  .beneficios-list li {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 14px;
    box-sizing: border-box;
    text-align: center;
  }

  .beneficios-list .icon {
    flex-shrink: 0;
  }

  .video-card {
    max-width: 180px;
  }

  .tiktok-btn {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .tiktok-section {
    padding-inline: 2px;
  }
}

/* ============================================================
   3. COMPRA Y VENTA DE PROPIEDADES
   ============================================================ */
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 60px 40px;
  flex-wrap: wrap;
  background: var(--serv-white);
  width: min(92%, 1070px);
  margin: 60px auto;
  border-radius: var(--serv-card-radius);
  box-shadow: 0 20px 50px var(--serv-shadow-md);
  transition: 0.3s ease;
}

.section .card {
  flex: 1 1 45%;
  max-width: 460px;
}

.section .card img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 9px;
}

.section .texto {
  flex: 1 1 45%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.compyven-titulo {
  text-align: center;
  margin-bottom: 5px;
}

.compyven-titulo::after {
  content: "";
  width: 80px;
  height: 4px;
  background: var(--gradient-main);
  display: block;
  margin: 10px auto 0;
  border-radius: 10px;
}

.section .texto p {
  line-height: var(--serv-lh-text);
  margin-bottom: 12px;
}

.section .texto a {
  align-self: center;
}

.section .texto .btn {
  min-width: 220px;
}

/* — Compra y Venta: Responsive — */
@media (max-width: 768px) {
  .section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px 20px;
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
  }

  .section .card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    flex: 0 1 auto;
  }

  .section .card img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
  }

  .section .texto {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
    gap: 12px;
  }

  .section .texto p {
    line-height: var(--serv-lh-text);
  }

  .section .texto .btn {
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .section {
    width: 84%;
    max-width: 300px;
    padding: 28px 14px;
  }

  .section .card {
    width: 100%;
    max-width: 260px;
  }

  .section .card img {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  .section .texto {
    width: 100%;
    max-width: 300px;
  }

  .section .texto .btn {
    width: 100%;
    max-width: 240px;
  }
}

@media (max-width: 360px) {
  .section {
    width: 90%;
    padding: 28px 14px;
  }

  .section .card {
    max-width: 230px;
  }

  .section .card img {
    max-width: 220px;
  }

  .section .texto {
    max-width: 280px;
  }
}

/* ============================================================
   4. ASESORÍA LEGAL
   ============================================================ */
.asesoria-section {
  padding: 60px 0;
  background: transparent;
}

.asesoria-title {
  text-align: center;
  margin-bottom: 40px;
}

.proceso-steps {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: var(--serv-white);
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--serv-shadow-lg);
  min-width: 180px;
  max-width: 100%;
  box-sizing: border-box;
}

.step .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
}

/* — Asesoría Legal: Responsive — */
@media (max-width: 768px) {
  .proceso-steps {
    gap: 15px;
    justify-content: center;
  }

  .step {
    min-width: 150px;
    flex: 1 1 auto;
  }
}

@media (max-width: 600px) {
  .proceso-steps {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .step {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .asesoria-section {
    padding: 40px 0;
  }

  .step {
    max-width: 100%;
    padding: 16px;
  }
}

/* ============================================================
   5. GRID DE SERVICIOS (Compra/Venta, Asesoría Legal, Gestión)
   ============================================================ */
.services-section {
  padding: 80px 0;
  background: none;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.services-section h2 {
  text-align: center;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-grid .service-card {
  background: var(--serv-white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px var(--serv-shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  max-width: 100%;
  margin: 0;
  width: 100%;
}

.service-card i {
  font-size: 36px;
  color: var(--serv-orange-light);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--serv-black);
}

.service-card p {
  color: var(--serv-gray-550);
  margin-bottom: 20px;
  min-height: 60px;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  flex-grow: 1;
}

.benefits li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--serv-gray-600);
  text-align: left;
}

.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--serv-orange-light);
  font-weight: bold;
}

.service-card .btn {
  margin-top: auto;
  width: 100%;
  max-width: 220px;
}

.service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card:nth-child(2) {
  transition-delay: 0.3s;
}

.service-card:nth-child(3) {
  transition-delay: 0.5s;
}

/* — Grid Servicios: Responsive — */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 24px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .services-grid .service-card {
    padding: 32px 24px;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .services-section {
    padding: 60px 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding-inline: 8px;
  }

  .services-grid {
    padding-inline: 0;
    gap: 20px;
  }

  .services-grid .service-card {
    padding: 28px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 380px) {
  .services-section {
    padding-inline: 6px;
  }

  .services-grid .service-card {
    padding: 24px 16px;
  }
}

/* ============================================================
   6. PROCESO DE TRABAJO (Pasos)
   ============================================================ */
.process-section {
  padding: var(--serv-section-pad) 20px;
  text-align: center;
}

.section-title {
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--serv-gray-900);
}

.section-subtitle {
  color: var(--serv-gray-500);
  margin-bottom: 60px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.process-item {
  background: var(--serv-white);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--serv-shadow-sm);
  position: relative;
  transition: 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.process-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--serv-orange);
  color: var(--serv-white);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.process-img {
  width: 100%;
  margin-bottom: 20px;
}

.process-img img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.process-item h3 {
  margin-bottom: 10px;
  color: var(--serv-gray-800);
}

.process-item p {
  color: var(--serv-gray-500);
  line-height: var(--serv-lh-text);
}

/* — Proceso: Responsive — */
@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 20px;
  }

  .process-item {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .process-section {
    padding: 50px 12px;
  }

  .process-steps {
    padding: 0 12px;
    gap: 20px;
  }

  .process-item {
    padding: 20px 18px;
  }
}

/* ============================================================
   7. PREGUNTAS FRECUENTES (FAQ)
   ============================================================ */
.faq-section {
  padding: 60px 20px;
  background: none;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.faq-section h2 {
  text-align: center;
  font-weight: 800;
  color: rgba(240, 161, 58, 0.679);
  margin-bottom: 50px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.faq-question i {
  transition: transform 0.4s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  opacity: 0;
  transition: all 0.4s ease;
  color: var(--text-gray);
  line-height: 1.8;
}

.faq-item.active {
  border: 2px solid var(--serv-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--serv-orange-glow);
}

.faq-item.active .faq-question {
  color: var(--serv-orange);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 800px;
  padding-bottom: 24px;
  opacity: 1;
}

/* — FAQ: Responsive — */
@media (max-width: 768px) {
  .faq-section {
    padding: 50px 15px;
  }

  .faq-section h2 {
    margin-bottom: 35px;
  }

  .faq-container {
    width: 100%;
  }

  .faq-item {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .faq-question {
    padding: 18px 16px;
    gap: 14px;
    align-items: flex-start;
  }

  .faq-question span {
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
  }

  .faq-question i {
    font-size: 0.9rem;
    margin-top: 4px;
    flex-shrink: 0;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-answer p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 18px;
  }
}

/* ============================================================
   8. HOVER UNIFICADO (para tarjetas que lo necesitan)
   ============================================================ */
@media (hover: hover) {

  .service-card:hover,
  .process-item:hover {
    transform: translateY(-6px);
  }
}
