/* ================================================
   FRANCODENIS – GLOBAL STYLES
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --rojo:        #C8102E;
  --rojo-oscuro: #a00d24;
  --gris:        #1e1e1e;
  --gris-medio:  #5a5a5a;
  --gris-claro:  #9a9a9a;
  --blanco:      #ffffff;
  --crema:       #f7f4f0;
  --borde:       #e2ddd8;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gris);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ================================================
   LOGO TIPOGRÁFICO
   ================================================ */
.brand-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
}
.brand-logo .part-franco { color: var(--gris); }
.brand-logo .part-franco-footer { color: var(--blanco); }
.brand-logo .part-denis  { color: var(--rojo); }

/* ================================================
   BARRA ROJA DECORATIVA
   ================================================ */
.red-bar { height: 3px; background: var(--rojo); }

/* ================================================
   NAVEGACIÓN
   ================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 68px;
}
.nav-logo img {
  height: 42px;
  width: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris-medio);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--rojo); }
.nav-cta {
  background: var(--rojo) !important;
  color: var(--blanco) !important;
  padding: 9px 22px;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--rojo-oscuro) !important; }

/* ================================================
   PAGE HEADER
   ================================================ */
.page-header {
  background: var(--gris);
  padding: 76px 52px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.05) 40px,
    rgba(255,255,255,0.05) 80px
  );
}
.page-header-inner { position: relative; z-index: 2; }
.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--rojo); }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: -0.02em;
}
.page-header p {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  margin-top: 12px;
  font-weight: 300;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ================================================
   CAROUSEL BANNER
   ================================================ */
.carousel-banner {
  position: absolute;
  inset: 0;          /* ← ocupa todo el carrusel */
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  background: rgba(0,0,0,0.55);  /* overlay directo, sin ::before */
}
.carousel-banner img {
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 6;
}

/* ================================================
   SECTION UTILITIES
   ================================================ */
.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gris);
  letter-spacing: -0.02em;
}

/* ================================================
   PROPERTY ENTRY (shared: departamentos/casas/locales)
   ================================================ */
.listings {
  padding: 72px 52px;
  max-width: 1220px;
  margin: 0 auto;
}
.listings-header { margin-bottom: 52px; }

.property-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 72px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 30px rgba(0,0,0,0.09);
  transition: box-shadow 0.3s;
}
.property-entry:hover { box-shadow: 0 8px 50px rgba(0,0,0,0.14); }
.property-entry:nth-child(even) .property-carousel { order: 2; }
.property-entry:nth-child(even) .property-info    { order: 1; }

/* INFO PANEL */
.property-info {
  padding: 48px 44px;
  background: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.prop-badge {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.prop-badge.alquiler { background: #1d6fcf; }
.property-info h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.prop-location {
  font-size: 0.82rem;
  color: var(--gris-claro);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.prop-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--rojo);
  margin-bottom: 18px;
}
.prop-price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gris-claro);
  font-weight: 400;
  margin-left: 4px;
}
.prop-divider { height: 1px; background: var(--borde); margin: 18px 0; }
.property-info p {
  font-size: 0.9rem;
  color: var(--gris-medio);
  line-height: 1.8;
  margin-bottom: 22px;
}
.prop-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gris);
}
.feat-icon {
  width: 28px; height: 28px;
  background: var(--crema);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rojo);
  color: var(--blanco);
  padding: 13px 28px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}
.btn-contact:hover { background: var(--rojo-oscuro); transform: translateY(-1px); }

/* CAROUSEL */
.property-carousel {
  position: relative;
  overflow: hidden;
  background: #111;
  height: 720px;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-placeholder {
  width: 100%; height: 100%; min-height: 480px;
  background: linear-gradient(135deg, #252525, #181818);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.slide-placeholder .ph-icon { font-size: 2.2rem; opacity: 0.3; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s; z-index: 10;
  color: var(--gris);
}
.carousel-btn:hover { background: var(--rojo); color: var(--blanco); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: var(--blanco); transform: scale(1.3); }
.photo-count {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,0.5); color: var(--blanco);
  font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; font-weight: 500;
}
.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}
.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================================
   PROP SPECS (dormitorios, baños, superficie, etc.)
   ================================================ */
.prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--crema);
  border: 1px solid var(--borde);
  border-radius: 2px;
  padding: 8px 16px;
}
.spec-icon { font-size: 1rem; }
.spec-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gris);
  line-height: 1;
}
.spec-label {
  font-size: 0.72rem;
  color: var(--gris-claro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background: #161616;
  color: rgba(255,255,255,0.65);
  margin-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 52px;
  max-width: 1220px;
  margin: 0 auto;
}
.footer-brand .brand-logo { font-size: 1.6rem; margin-bottom: 6px; }
.footer-brand .tagline {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 16px;
}
.footer-brand p { font-size: 0.83rem; line-height: 1.75; max-width: 260px; }
.footer-col h4 {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blanco); font-weight: 600; margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a {
  font-size: 0.83rem; color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--rojo); }
.footer-socials { display: flex; gap: 10px; margin-top: 22px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.82rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.social-btn:hover { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 52px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.74rem; color: rgba(255,255,255,0.28);
}
.footer-bottom a { color: rgba(255,255,255,0.28); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--rojo); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 960px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .page-header { padding: 56px 20px 44px; }
  .listings { padding: 48px 20px; }
  .property-entry {
    grid-template-columns: 1fr;
  }
  .property-entry:nth-child(even) .property-carousel { order: 1; }
  .property-entry:nth-child(even) .property-info    { order: 2; }
  .property-carousel { min-height: 270px; }
  .property-info { padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; padding: 48px 20px; }
  .footer-bottom {
    flex-direction: column; gap: 10px;
    padding: 18px 20px; text-align: center;
  }
}
