*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8f6f3;
  --bg-soft: #f3f0eb;
  --text: #2f3436;
  --accent: #5c6a5f;
  --accent-soft: #d4ddd4;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-full: 999px;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 243, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: #fff;
}

.logo span {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.main-nav a:hover {
  background: rgba(92, 106, 95, 0.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--accent);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.2rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/portada.jpg");
  background-size: cover;
  background-position: center center;
  transform: scale(1.04);
  filter: brightness(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 55%),
              linear-gradient(to bottom, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.75));
}

.hero-content {
  position: relative;
  padding-block: 4.5rem;
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(226, 232, 240, 0.42);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 3vw + 1.2rem, 3.1rem);
  line-height: 1.15;
  margin: 0.9rem 0 0.6rem;
}

.hero-text {
  margin-bottom: 1.6rem;
  font-size: 0.98rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn.primary {
  background: #ffffff;
  color: #111827;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.24);
}

.btn.ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(229, 231, 235, 0.5);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.65);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.hero-note {
  font-size: 0.85rem;
  opacity: 0.95;
}

.hero-note a {
  font-weight: 600;
}

/* Sections */

.section {
  padding-block: 4rem;
}

.section-soft {
  background-color: var(--bg-soft);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.2rem;
  font-size: 0.98rem;
  color: #4b5563;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin-top: 1.1rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.1rem;
}

.image-stack {
  position: relative;
}

.image-stack .img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.image-stack .img-secondary {
  position: absolute;
  width: 58%;
  right: 0;
  bottom: -12%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  border: 4px solid var(--bg);
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

/* Galería */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.3);
  filter: brightness(1.03);
}

.gallery-note {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Video */

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Redes */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.social-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(92, 106, 95, 0.4);
}

.social-btn.outline {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.social-btn.inline {
  display: inline-flex;
  margin-top: 0.4rem;
}

.social-embeds {
  display: grid;
  gap: 1.4rem;
}

.social-embed {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.social-hint {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Contacto */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-block {
  margin-bottom: 1rem;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: 22px;
  padding: 1.8rem 1.7rem 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background-color: #f9fafb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(92, 106, 95, 0.4);
  background-color: #ffffff;
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Footer */

.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding-block: 1.5rem;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.footer-made a {
  color: #e5e7eb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 960px);
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(31, 41, 55, 0.9);
  color: #f9fafb;
  font-size: 1.6rem;
  cursor: pointer;
}

/* WhatsApp float */

.whatsapp-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.3rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(22, 163, 74, 0.6);
  z-index: 55;
}

.wa-icon {
  font-size: 1.5rem;
  color: #ecfdf5;
}

/* Responsive */

@media (max-width: 900px) {
  .two-columns,
  .cards-grid,
  .gallery-grid,
  .video-section,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-stack .img-secondary {
    position: relative;
    width: 70%;
    bottom: 0;
    margin-top: 1rem;
  }

  .hero {
    min-height: 75vh;
  }

  .video-section {
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    background: rgba(248, 246, 243, 0.98);
    padding: 0.8rem 1rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    padding-block: 0.55rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form-wrapper {
    padding: 1.4rem 1.3rem 1.6rem;
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding-block: 3.4rem;
  }

  .hero-tag {
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
