/*
Theme Name: Miranda Inmobiliaria
Theme URI: https://inmobiliariamiranda.com.ar
Author: Matías Miranda
Author URI: https://inmobiliariamiranda.com.ar
Description: Tema profesional para Miranda Inmobiliaria - Broker ejecutivo con más de 20 años de experiencia
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miranda-inmobiliaria
Tags: one-page, real-estate, responsive, custom-colors, custom-menu, featured-images, full-width-template

Miranda Inmobiliaria - Tradición y experiencia desde 1957
*/

/* ===== Color Variables (HSL) ===== */
:root {
  --background: 0 0% 100%;
  --foreground: 220 15% 20%;
  --card: 0 0% 100%;
  --card-foreground: 220 15% 20%;
  --primary: 356 85% 52%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 220 15% 20%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 220 9% 46%;
  --accent: 356 85% 52%;
  --border: 214.3 31.8% 91.4%;
  --radius: 0.5rem;
}

.dark {
  --background: 220 25% 8%;
  --foreground: 210 40% 98%;
  --card: 220 20% 12%;
  --card-foreground: 210 40% 98%;
  --primary: 356 85% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 20% 18%;
  --secondary-foreground: 210 40% 98%;
  --muted: 220 20% 18%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 356 85% 58%;
  --border: 220 20% 20%;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--secondary)));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.whatsapp-float svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

/* ===== Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Sections ===== */
section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 0;
  }
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero-logo {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-description {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  opacity: 0.8;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: hsl(var(--card-foreground));
}

.card p {
  color: hsl(var(--muted-foreground));
}

/* ===== Contact Section ===== */
.contact-wrapper {
  max-width: 42rem;
  margin: 0 auto;
}

.contact-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-description {
  text-align: center;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.contact-info-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: hsl(var(--card));
  padding: 1rem;
  border-radius: var(--radius);
}

.contact-info-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.contact-info-label {
  font-weight: 500;
  color: hsl(var(--card-foreground));
  font-size: 0.875rem;
}

.contact-info-value {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* ===== Form Styles ===== */
.contact-form {
  background: hsl(var(--card));
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: hsl(0 84.2% 60.2%);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ===== Button Styles ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== Valuation Section ===== */
.valuation-card {
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--primary) / 0.05));
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.valuation-icon {
  width: 4rem;
  height: 4rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.valuation-icon svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary));
}

.valuation-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.valuation-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.valuation-text {
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* ===== Footer ===== */
footer {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 0;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

footer p {
  margin: 0.5rem 0;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: hsl(var(--foreground));
}
