* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #faf7f2;
  color: #2d2a24;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
  padding: 1rem 2rem;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #8b5e3c;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #2d2a24;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #8b5e3c;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.badge {
  display: inline-block;
  background: #e8d5c4;
  color: #6b4226;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-top: 8rem;
}

.hero {
  position: relative;
}

.hero-bg-logo {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/logo-sin-fondo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(500px, 60%);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-content-logo {
  height: 120px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #2d2a24;
}

.highlight {
  color: #8b5e3c;
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: #e8d5c4;
  z-index: -1;
  border-radius: 4px;
}

.hero-content p {
  font-size: 1.1rem;
  color: #6b5e4e;
  margin-bottom: 2rem;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  background: #8b5e3c;
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: #6b4226;
  transform: translateY(-2px);
}

.hero-images {
  flex: 1;
  display: flex;
  gap: 1rem;
  position: relative;
  min-width: 0;
}

.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.main-img {
  flex: 2;
}

.secondary-img {
  flex: 1;
  margin-top: 4rem;
}

.hero-visible-logo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 180px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #2d2a24;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #6b5e4e;
  font-size: 1rem;
}

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

.gallery-item {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transition: transform 0.4s, box-shadow 0.4s;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 50px rgba(0,0,0,0.15);
}

.gallery-item--tall {
  height: 300px;
}

.gallery-item--wide {
  grid-column: span 2;
}

.about {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-content p {
  color: #6b5e4e;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.icon {
  width: 48px;
  height: 48px;
  background: #e8d5c4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #8b5e3c;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: #6b5e4e;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #6b5e4e;
  font-size: 0.85rem;
}

.heart {
  color: #c0392b;
}

.credit {
  margin-top: 0.5rem;
}

.credit a {
  color: #8b6914;
  text-decoration: none;
  font-weight: 500;
}

.credit a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  header {
    padding: 0.8rem 1rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-top: 6rem;
  }

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

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    margin: 0 auto 2rem;
  }

  .hero-images {
    flex-direction: column;
    width: 100%;
  }

  .hero-img {
    height: 280px;
  }

  .secondary-img {
    margin-top: 0;
  }

  .hero-visible-logo {
    width: 90px;
    bottom: -5px;
    right: -5px;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .about-logo {
    order: -1;
  }

  .about-logo img {
    max-width: 250px;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .about-image img {
    height: 280px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .gallery-item {
    height: 160px;
  }

  .gallery-item--tall {
    height: 220px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.4rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .gallery-item {
    height: 130px;
  }

  .gallery-item--tall {
    height: 180px;
  }
}
