/* VARIABLES DE COLOR Y ESTILO */
:root {
  --bg-color: #fcfaf7;
  --surface-color: #ffffff;
  --text-main: #2d2a26;
  --text-muted: #6e6a64;
  --primary: #a66a51; /* Terracota / Piel */
  --primary-hover: #8c543d;
  --accent: #e8ded4;
  --border: #ece6df;
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ENCABEZADO Y NAVEGACIÓN */
header {
  background: var(--surface-color);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* HERO / PORTADA CON CONTACTO Y DIRECCIÓN */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-title);
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-text p.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

/* UBICACIÓN DESTACADA EN HERO */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

/* BOTONES Y TELÉFONO EN HERO */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.phone-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--surface-color);
  transition: border-color 0.2s, color 0.2s;
}

.phone-call-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-image {
  width: 100%;
  height: 420px;
  background: var(--accent);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SERVICIOS */
.services-section {
  background: var(--surface-color);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: var(--font-title);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* SECCIÓN DE CONTACTO Y UBICACIÓN FINAL */
.contact-section {
  padding: 4rem 1.5rem;
}

.contact-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-color);
  padding: 3rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  text-align: center;
}

.contact-box h2 {
  font-family: var(--font-title);
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.contact-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.detail-card {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.detail-card h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.detail-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* PIE DE PÁGINA */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ADAPTACIÓN PARA MÓVILES (RESPONSIVE) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .phone-call-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-image {
    height: 260px;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366; /* Verde oficial de WhatsApp */
  color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #ffffff; /* Icono en blanco nítido */
}

/* ESTILOS DE LA TARJETA MAPA */
.clickable-map {
  padding: 0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-map:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.map-link {
  display: block;
  padding: 1.5rem;
  text-decoration: none !important; /* Quita el subrayado feo */
  color: var(--text-main) !important; /* Mantiene el color original */
}

.map-link h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.map-link p {
  color: var(--text-main);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.map-subtext {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  margin-top: 0.2rem;
}

.open-map-btn {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
}

.open-map-btn {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s;
}

.clickable-map:hover .open-map-btn {
  color: var(--primary-hover);
}