/* Main Styles for MercadoCasa Static Site */

/* Base Styles */
:root {
  --primary-color: #222222;
  --secondary-color: #b8b8b8;
  --text-light: #fff;
  --text-dark: #1f1f1f;
  --background-dark: #2a2a2a;
  --nav-background: #333333;
  --accent-color: #ffca28;
  --border-color: #555555;
  --footer-background: #272727;
  --wood-header-background: #ddbc8b;
  --wood-dark-background: #2a2420;
}

html {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #222222;
  background-image: url('../images/body-bg.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  margin: 0 0 20px;
  font-weight: normal;
}

p {
  margin: 0 0 15px;
}

a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Header */
.header {
  position: relative;
}

.logo-header {
  background: url('../images/5977be72903b6.jpg') no-repeat center top;
  background-size: auto;
  border-bottom: 1px solid #333;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  min-height: 184px;
}

.logo-header .container {
  position: relative;
}

/* Make the entire header area clickable to go to homepage */
.logo-header a.header-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Hide the logo image since the background image already has the logo */
.logo-header img {
  display: none;
}

/* Navigation */
.main-nav {
  background: linear-gradient(to bottom, #4a4a4a, #2a2a2a, #1a1a1a);
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(70, 70, 70, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.main-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.main-nav li {
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
  flex-grow: 1;
}

.main-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  padding: 12px 15px;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  display: block;
  width: 100%;
  transition: all 0.3s ease;
  font-weight: 400;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.main-nav a.active {
  background: linear-gradient(to bottom, #666, #444);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Hero/Slider section */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  padding: 30px 0;
  /* Added margin for better spacing with content */
  margin-bottom: 20px;
}

.hero-slides-container {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: transparent;
}

.hero-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Added shadow for better contrast with background */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  display: block;
}

.hero-slide:first-child {
  opacity: 1;
  z-index: 2;
}

.hero-controls {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.hero-controls button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  margin: 0 8px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.hero-controls button.active {
  background: #fff;
  transform: scale(1.2);
}

@media (min-width: 769px) {
  .hero-slide {
    background-size: auto 100%; /* Ajuste para mostrar la imagen a su altura completa */
  }
}

/* Content Area */
.content-area {
  /* Removed duplicate background, allowing body background to show through */
  background: transparent;
  padding: 30px 0;
  min-height: 400px;
  margin-bottom: 108px;
}

/* Feature Boxes */
.feature-boxes {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  border: 2px solid var(--border-color);
  padding: 20px;
  background-color: rgba(34, 34, 34, 0.7); /* Semi-transparent background for better text contrast */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.feature-box {
  width: 31%;
  text-align: center;
}

.feature-box img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* Section headers */
.section-header {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  color: #FFFFFF;
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
  font-weight: bold;
}

/* About Us specific styles */
.about-intro {
  display: flex;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.about-image-container {
  width: 30%;
  padding-right: 30px;
}

.about-image-frame {
  border: 5px solid #ccc;
  padding: 5px;
  background: #333;
}

.about-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  width: 65%;
}

.about-text blockquote {
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 20px;
  padding-left: 20px;
  border-left: 5px solid #e67e22;
}

.about-description p {
  margin-bottom: 15px;
  color: #ccc;
  text-align: justify;
}

/* Feature Columns */
.feature-columns {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.feature-column {
  width: 30%;
}

.feature-letter {
  display: block;
  text-align: center;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: #e67e22;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  float: left;
  margin-right: 15px;
}

.feature-title {
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: lowercase;
  color: #ccc;
}

.feature-content p {
  text-align: justify;
}

/* Contact Info */
.contact-info {
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-info-item img,
.contact-info-item .contact-icon {
  margin-right: 10px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-color);
}

/* Form Styles */
.contact-form {
  max-width: 600px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-color);
  background: #444444;
  color: #FFFFFF;
}

.form-group textarea {
  min-height: 150px;
}

.form-button {
  background: var(--accent-color);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Arial', sans-serif;
  text-transform: uppercase;
}

.form-button:hover {
  background: #C48D12;
}

/* Property Grid */
.property-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.property-card {
  width: 30%;
  margin-bottom: 30px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(34, 34, 34, 0.7);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.property-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.property-info {
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  background-color: transparent;
  color: var(--text-light);
}

.property-info h3 {
  margin: 0 0 10px 0;
  color: var(--text-light);
  font-size: 18px;
}

.property-info p {
  margin-bottom: 10px;
  color: var(--text-light);
}

.property-price {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 16px;
  margin: 10px 0;
}

.property-button {
  display: inline-block;
  background: linear-gradient(to bottom, #873D02, #C1560F);
  color: #FFFFFF;
  padding: 8px 20px;
  text-align: center;
  margin-top: 10px;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  font-weight: bold;
  align-self: center;
  transition: background 0.3s ease;
}

.property-button:hover {
  background: linear-gradient(to bottom, #BF5100, #BF5100);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background: var(--footer-background);
  color: var(--text-light);
  padding: 25px 0;
  width: 100%;
  bottom: 0;
  border-top: 1px solid #333;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  padding: 0 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-separator {
  color: #666;
  margin: 0 5px;
}

.footer-details {
  color: #999;
  font-size: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 20px;
}

.footer-contact {
  margin: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact i {
  margin-right: 8px;
  font-size: 16px;
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  gap: 15px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #333;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.contact-info {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
}

.contact-info p {
  margin: 5px 0;
}

.copyright {
  text-align: center;
  color: #777;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

/* Sección específica de políticas de privacidad */
.policy-section {
    background-color: rgba(34, 34, 34, 0.7);
    padding: 20px 0;
}

.policy-container {
    padding-left: 5px;
    padding-right: 5px;
}

/* Estilos para la página de políticas de privacidad */
.policy-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    gap: 10px;
}

.policy-column {
    flex: 0 0 calc(50% - 8px);
    margin-bottom: 20px;
    background-color: rgba(34, 34, 34, 0.7);
    padding: 15px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.policy-content h2 {
    color: var(--text-light);
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 6px;
    text-transform: uppercase;
}

.policy-content p {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.policy-content strong {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.email-link {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.email-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .policy-column {
        flex: 0 0 100%;
        margin-bottom: 20px;
        padding: 15px 10px;
    }
    
    .policy-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .policy-content p, 
    .policy-content strong {
        font-size: 13px;
    }
    
    .policy-content h2 {
        font-size: 18px;
    }
}

/* Contact Columns Layout */
.contact-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
  position: relative;
}

.contact-info-section {
  margin-bottom: 40px; /* Espacio normal entre secciones */
  width: 100%;
  position: relative;
}

.contact-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
  position: relative;
}

.contact-column {
  flex: 1;
  min-width: 0;
}

.contact-details {
  flex-basis: 40%;
}

.contact-map {
  flex-basis: 50%;
  height: 250px;
  position: relative;
}

.map-container {
  width: 100%;
  height: 250px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.square-map {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 4px;
}

.square-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.contact-form-section {
  width: 100%;
  clear: both;
  padding-top: 10px;
  position: relative;
}

@media (max-width: 768px) {
  .contact-columns {
    flex-direction: column;
  }
  
  .contact-details,
  .contact-map {
    flex-basis: 100%;
  }
  
  .contact-info-section {
    margin-bottom: 30px; /* Ajuste para dispositivos móviles */
  }
  
  .contact-map {
    height: 250px;
  }
  
  .square-map {
    height: 250px;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .container {
    width: 100%;
  }
  
  .logo-header {
    padding: 60px 0; /* Maintain enough padding to show the logo */
    background-position: center top; /* Keep logo visible from the top */
    background-size: contain; /* Ensure the full logo width is shown */
  }
  
  .main-nav {
    background: linear-gradient(to bottom, #4a4a4a, #2a2a2a, #1a1a1a);
  }
  
  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
  }
  
  .main-nav li {
    flex: 0 0 auto;
    margin: 5px;
  }
  
  .feature-boxes,
  .feature-columns {
    flex-direction: column;
  }
  
  .feature-box,
  .feature-column,
  .property-card {
    width: 100%;
    margin-bottom: 20px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-section {
    padding: 15px 0;
  }
  
  .hero-slides-container {
    height: 200px;
  }
  
  .hero-controls {
    bottom: 5px;
  }
  
  .hero-controls button {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-separator {
    display: none;
  }
  
  .footer-details {
    flex-direction: column;
    gap: 5px;
  }
  
  .footer-contact {
    margin: 2px 0;
  }
}

/* Media Query for Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .property-card {
    width: 48%;
  }
  
  .property-grid {
    justify-content: space-evenly;
  }
}
