/* =========================================
   PUBLIC WEBSITE STYLES — INMOBILIARIA VICARI
   LUXURY LIGHT-LILAC THEME (SOPHISTICATED & CLEAN)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #F6F5FA;         /* Soft, clean warm light lilac-gray */
  --bg-section: #FFFFFF;      /* Pure white for section headers */
  --bg-card: #FFFFFF;         /* Crisp white card background */
  --bg-card-hover: #FFFFFF;
  
  --primary: #343180;         /* Deep corporate lilac/indigo */
  --primary-dark: #22205B;
  --primary-light: #5A56A8;
  
  --text-primary: #1E1B4B;    /* Very dark indigo-slate for premium reading */
  --text-secondary: #475569;  /* Slate-600 */
  --text-muted: #64748B;
  
  --accent: #0091D6;          /* Muted professional celeste (perfect contrast on light bg) */
  --accent-glow: 0 4px 15px rgba(0, 145, 214, 0.1);
  
  --border: rgba(52, 49, 128, 0.07);
  --border-hover: rgba(0, 145, 214, 0.35);
  
  --radius-sm: 2px;           /* Crisp, clean borders */
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.02);
  --shadow-float: 0 12px 35px rgba(52, 49, 128, 0.05); /* Soft premium shadow */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;           /* Elegant thin headings */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(52, 49, 128, 0.02);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

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

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(52, 49, 128, 0.06);
  border: 1px solid var(--border);
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--primary);
}

.logo-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-contact-header {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}

.btn-contact-header:hover {
  background: rgba(52, 49, 128, 0.05);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

/* Tab Sections */
.tab-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-section.active {
  display: block;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  position: relative;
  background-color: var(--bg-section);
  border-bottom: 1.5px solid var(--border);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
}

.hero-text-side h1 {
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-transform: uppercase;
}

.hero-text-side p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.btn-explorar {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-explorar:hover {
  transform: translateY(-2px);
  background: rgba(52, 49, 128, 0.03);
  box-shadow: 0 4px 15px rgba(52, 49, 128, 0.06);
}

.hero-image-side {
  position: relative;
}

.hero-house-img {
  width: 100%;
  aspect-ratio: 1.3 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(52, 49, 128, 0.06);
  border: 1px solid var(--border);
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-bg-dark {
  background-color: var(--bg-main);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: var(--primary);
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 4rem;
  font-size: 0.95rem;
  font-weight: 300;
}

/* Properties Grid (Instagram Style) */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.property-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.property-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-float);
}

.property-image-container {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #F1F5F9;
  overflow: hidden;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image {
  transform: scale(1.02);
}

.featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg-section);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 600;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.property-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(30, 27, 75, 0.95) 0%, rgba(30, 27, 75, 0.5) 60%, rgba(30, 27, 75, 0.1) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 3;
}

.property-card:hover .property-overlay {
  opacity: 1;
}

.btn-view-instagram {
  border: 1px solid var(--accent);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.btn-view-instagram:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
}

.property-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-details h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.property-desc-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 49, 128, 0.15);
}

.btn-success {
  background-color: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.btn-success:hover {
  background-color: #22c35e;
  transform: translateY(-2px);
}

/* Requirements Grid */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.req-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.req-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-float);
}

.req-icon-container {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(52, 49, 128, 0.04);
  border: 1px solid rgba(52, 49, 128, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  transition: var(--transition);
  color: var(--primary);
}

.req-card:hover .req-icon-container {
  transform: scale(1.06);
  border-color: var(--primary);
  background: rgba(52, 49, 128, 0.08);
}

.req-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.req-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* FAQ (Accordion) */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-float);
}

.faq-question {
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  font-size: 0.98rem;
  color: var(--primary);
}

.faq-question:hover {
  background-color: rgba(52, 49, 128, 0.02);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(52, 49, 128, 0.01);
}

.faq-answer p {
  padding: 20px 26px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.info-box {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.6rem;
}

.info-item h4 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--primary);
}

.info-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Map */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 380px;
  box-shadow: var(--shadow-float);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--success);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

/* Social Buttons */
.social-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 1.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.social-btn.instagram {
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.3);
}

.social-btn.instagram:hover {
  background: #E1306C;
  color: #fff;
  border-color: #E1306C;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.15);
  transform: translateY(-2px);
}

.social-btn.facebook {
  color: #1877F2;
  border-color: rgba(24, 119, 242, 0.3);
}

.social-btn.facebook:hover {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.15);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--bg-main);
  color: var(--text-muted);
  padding: 4.5rem 0;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
