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

html {
  overflow-x: hidden;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  color: #282828;
  line-height: 1.6;
  padding-top: 120px;
  overflow-x: hidden;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Search Section */
.search-section {
  background: white;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-section h2 {
  margin-bottom: 1.5rem;
  color: #667eea;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.filter-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-icon:hover {
  transform: scale(1.2);
}

.btn-whatsapp {
  background: none;
  color: #25D366;
  padding: 0;
  border-radius: 0;
}

.btn-whatsapp:hover {
  color: #1ea952;
}

/* Property Card Actions */
.property-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
  margin-top: auto;
}

.property-secondary-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.btn-action {
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.btn-action-secondary {
  background: #f0f0f0;
  color: #333;
  border: 2px solid #ddd;
}

.btn-action-secondary:hover {
  background: #e8e8e8;
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-action-contact {
  background: #25D366;
  color: white;
  border: 2px solid #25D366;
}

.btn-action-contact:hover {
  background: #1ea952;
  border-color: #1ea952;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* WhatsApp icon (no external library) */
.fa-brands.fa-whatsapp {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.15em;
  margin-right: 0.35rem;
}

.fa-brands.fa-whatsapp::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="-0.003 -293.41895027729095 1172.923 1474.5159502772908" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" width="1659" height="2500"><path d="M308.678 1021.49l19.153 9.576a499.739 499.739 0 0 0 258.244 70.227c279.729-.638 509.563-231.016 509.563-510.744 0-135.187-53.692-265.012-149.169-360.713-95.35-96.69-225.62-151.18-361.383-151.18-278.451 0-507.552 229.133-507.552 507.552 0 2.203 0 4.373.032 6.576a523.81 523.81 0 0 0 76.612 268.14l12.768 19.153-51.074 188.337 192.806-46.925z" fill="%2300E676" fill-rule="nonzero"/><path d="M1003.29 172.378C894.597 61.482 745.49-.732 590.225 0h-.99C269.479.001 6.35 263.131 6.35 582.888c0 1.5.032 2.969.032 4.47a616.759 616.759 0 0 0 76.612 290.485L-.003 1181.097l309.32-79.804a569.202 569.202 0 0 0 278.993 70.228c320.939-1.756 584.036-266.385 583.844-587.356.766-154.213-60.044-302.52-168.864-411.787m-413.065 900.186a473.935 473.935 0 0 1-245.476-67.035l-19.153-9.577-184.187 47.883 47.882-181.953-12.768-19.153a484.242 484.242 0 0 1-72.558-254.957c0-265.65 218.599-484.25 484.25-484.25 265.65 0 484.248 218.6 484.248 484.25 0 167.269-86.666 323.11-228.781 411.372a464.838 464.838 0 0 1-251.86 73.42m280.59-354.329l-35.114-15.96s-51.075-22.346-82.996-38.306c-3.192 0-6.384-3.192-9.577-3.192a46.308 46.308 0 0 0-22.345 6.384c-6.799 3.99-3.192 3.192-47.882 54.266-3.032 5.97-9.257 9.705-15.96 9.577h-3.193a24.328 24.328 0 0 1-12.768-6.384l-15.961-6.385a309.91 309.91 0 0 1-92.573-60.65c-6.384-6.385-15.96-12.77-22.345-19.154a357.13 357.13 0 0 1-60.65-76.611l-3.193-6.384a46.475 46.475 0 0 1-6.384-12.769 23.915 23.915 0 0 1 3.192-15.96c2.905-4.789 12.769-15.962 22.345-25.538 9.577-9.576 9.577-15.96 15.961-22.345a39.33 39.33 0 0 0 6.384-31.922 1246.398 1246.398 0 0 0-51.074-121.301 37.099 37.099 0 0 0-22.345-15.961H380.82c-6.384 0-12.768 3.192-19.153 3.192l-3.192 3.192c-6.384 3.192-12.768 9.577-19.153 12.769-6.384 3.192-9.576 12.769-15.96 19.153a162.752 162.752 0 0 0-35.114 98.956 189.029 189.029 0 0 0 15.96 73.42l3.193 9.576a532.111 532.111 0 0 0 118.11 162.8l12.768 12.769a193.037 193.037 0 0 1 25.537 25.537c66.141 57.554 144.7 99.052 229.516 121.302 9.576 3.192 22.345 3.192 31.921 6.384h31.922a118.126 118.126 0 0 0 47.882-12.769c7.82-3.543 15.29-7.82 22.345-12.768l6.384-6.385c6.385-6.384 12.769-9.576 19.153-15.96a84.393 84.393 0 0 0 15.961-19.153c6.129-14.301 10.438-29.304 12.769-44.69V724.62a40.107 40.107 0 0 0-9.577-6.385" fill="%23fff" fill-rule="nonzero"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Remove spacing when icon is alone inside compact icon button */
.btn-icon .fa-brands.fa-whatsapp {
  margin-right: 0;
}

/* Favorite icon (brand burgundy) */
.icon-favorite {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  background-color: #820000;
  vertical-align: -0.1em;
  margin-right: 0.35rem;
  -webkit-mask: url('/images/icons/favorite.svg') no-repeat center / contain;
  mask: url('/images/icons/favorite.svg') no-repeat center / contain;
}

.btn-icon .icon-favorite {
  margin-right: 0;
  width: 1.4em;
  height: 1.4em;
}

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

.property-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: inset 0 3px 0 0 #820000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.property-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #f5f7fa;
  border: 2px solid #820000;
  display: block;
}

.property-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-available {
  background-color: #28a745;
  color: #ffffff;
}

.badge-reserved {
  background-color: #ffc107;
  color: #282828;
}

.badge-sold {
  background-color: #6d6d6d;
  color: #ffffff;
}

.badge-opportunity {
  background-color: #820000;
  color: #ffffff;
  animation: pulse 2s infinite;
}

@@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.property-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-info h3 {
  color: #282828;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  min-height: 3.2rem; /* ensure consistent title height (≈2 lines) */
}

.property-location {
  color: #666666;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
  min-height: 1.4rem; /* align location row */
}

.property-description {
  color: #6d6d6d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7rem; /* ≈ 2 lines */
}

.property-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
  flex-wrap: wrap;
  min-height: 1.8rem; /* normalize features row height */
}

.property-features span {
  color: #a5a5a5;
  font-size: 0.75rem;
}

.property-price {
  margin-bottom: 1.5rem;
  min-height: 2.5rem; /* keep price area aligned */
}

.price-dual {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.price-usd {
  font-size: 1.4rem;
  font-weight: 700;
  color: #820000;
}

.price-ars {
  font-size: 1.4rem;
  font-weight: 700;
  color: #444;
}

.price-na {
  font-size: 1.2rem;
  font-weight: 700;
  color: #a5a5a5;
  font-style: italic;
}

.property-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.property-type-badge {
  display: inline-block;
  background-color: #f0f0f0;
  color: #282828;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 2rem;
}

/* Forms */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  text-align: center;
}

/* About / Info Sections */
.about-section,
.services-overview,
.team-section {
  margin: 3rem 0;
}

.about-section h2,
.services-overview h2,
.team-section h2 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.about-section p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.values-grid,
.info-grid,
.benefits-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.value-card,
.info-card,
.benefit-card,
.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.value-card:hover,
.info-card:hover,
.benefit-card:hover,
.service-card:hover {
  transform: translateY(-5px);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.services-list {
  list-style: none;
  padding-left: 0;
}

.services-list li {
  background: white;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-member {
  text-align: center;
}

.member-photo {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Projects */
.project-card {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-status {
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.project-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.feature-badge {
  background: #f0f0f0;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* Docs Section */
.docs-section {
  background: white;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.docs-section h2 {
  color: #667eea;
  margin-bottom: 1rem;
}

.docs-list {
  list-style: none;
  padding-left: 0;
}

.docs-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #eee;
}

.docs-list li:before {
  content: '✓ ';
  color: #28a745;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  color: #667eea;
  margin-bottom: 0.5rem;
}

.social-links {
  margin-top: 2rem;
}

.social-btn {
  display: block;
  padding: 1rem;
  margin: 0.5rem 0;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  transition: background 0.3s;
}

.social-btn:hover {
  background: #5568d3;
}

.newsletter-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  margin: 3rem 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section .btn {
  background: white;
  color: #667eea;
  font-weight: bold;
}

.cta-section .btn:hover {
  background: #f0f0f0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}

.close:hover {
  color: #333;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  text-align: left;
}

.compare-table th {
  background: #667eea;
  color: white;
}

.floating-compare-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #667eea;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 1500;
}

.floating-compare-btn:hover {
  background: #5568d3;
  transform: scale(1.05);
}

/* Responsive */
@@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .search-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

.no-results {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  padding: 3rem;
}

/* Carousel de imágenes */
.property-carousel {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f5f7fa;
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-images img.active {
  opacity: 1;
  z-index: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(40, 40, 40, 0.8);
  color: white;
  border: none;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(130, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 1.5rem;
}

.carousel-btn.next {
  right: 1.5rem;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: white;
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Imagen simple (cuando hay solo 1 imagen o ninguna) */
.property-card > img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
