/* Variables */
:root {
  --color-primary: #1a3c34;
  --color-primary-light: #2d5a4a;
  --color-accent: #8b6914;
  --color-accent-light: #b8922e;
  --color-bg: #f8f6f2;
  --color-bg-dark: #1a3c34;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --max-width: 1100px;
  --header-height: 72px;
}

/* Reset y base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 60, 52, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo__img {
  height: 48px;
  width: auto;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  color: #f0ebe3;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--color-accent-light);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #f0ebe3;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav--open {
  display: flex;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--color-bg-dark);
  font-size: 1.2rem;
}

@media (min-width: 768px) {
  .nav { display: flex; position: static; flex-direction: row; font-size: inherit; background: transparent; }
  .nav--open { position: static; flex-direction: row; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 60, 52, 0.6) 0%, rgba(26, 60, 52, 0.85) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  color: #f8f6f2;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin: 0 0 1.75rem;
  opacity: 0.95;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-light);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Secciones */
.section {
  padding: 4rem 0;
}

.section--light {
  background: #fff;
}

.section--accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #f8f6f2;
}

.section--accent .section__title { color: #f8f6f2; }

.section--dark {
  background: var(--color-bg-dark);
  color: #f0ebe3;
}

.section--dark .section__title { color: #f8f6f2; }

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 2rem;
  text-align: center;
}

/* Quiénes somos */
.about {
  display: grid;
  gap: 2rem;
}

.about__text p {
  margin: 0 0 1rem;
}

.about__text p:last-child { margin-bottom: 0; }

.about__image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about__image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

/* Servicios */
.services {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.service {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.service__icon {
  height: 180px;
  overflow: hidden;
  background: var(--color-bg);
}

.service__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1rem 1.25rem 0.5rem;
  color: var(--color-primary);
}

.service p {
  margin: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

/* Próximo remate */
.remate-card {
  display: grid;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}

.remate-card__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.remate-card__info {
  padding: 0 1.5rem 1.5rem;
}

.remate-card__date {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.remate-card__place {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  opacity: 0.95;
}

.remate-card__detail {
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

@media (min-width: 600px) {
  .remate-card {
    grid-template-columns: 280px 1fr;
  }
  .remate-card__image img { height: 100%; min-height: 200px; }
  .remate-card__info { padding: 1.5rem; }
}

/* Contacto */
.contact {
  text-align: center;
}

.contact__phone {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact__phone a {
  color: #f8f6f2;
}

.contact__phone a:hover {
  color: var(--color-accent-light);
  text-decoration: none;
}

.contact__social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact__social a {
  display: block;
  width: 44px;
  height: 44px;
  transition: transform 0.2s;
}

.contact__social a:hover {
  transform: scale(1.1);
  text-decoration: none;
}

.contact__social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer */
.footer {
  background: #0f2822;
  color: #b0a898;
  padding: 2rem 0;
  text-align: center;
}

.footer__logo {
  height: 48px;
  width: auto;
  margin: 0 auto 0.75rem;
}

.footer__name {
  font-weight: 600;
  color: #e8e4dc;
  margin: 0 0 0.5rem;
}

.footer__copy {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.85;
}
