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

:root {
  --color-bg: #f7f7f8;
  --color-bg-alt: #ffffff;
  --color-primary: #7b1f2b;
  --color-primary-dark: #5c161f;
  --color-text: #222222;
  --color-text-soft: #555555;
  --color-border: #e0e0e0;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius-card: 18px;
}

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

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-text-soft);
  padding: 0.25rem 0;
}

.nav a:hover {
  color: var(--color-primary);
}

.btn-nav {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-nav:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.3rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-image: url("../img/fachada.jpg");
  background-size: cover;
  background-position: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.2), transparent 40%),
              linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.85));
}

.hero-content {
  position: relative;
  padding: 5rem 0 4rem;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.05rem;
  max-width: 30rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--color-primary);
}

.btn-full {
  width: 100%;
}

/* Sections */

.section {
  padding: 4rem 0;
  background-color: var(--color-bg);
}

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

.section h2 {
  font-size: 1.7rem;
  text-align: center;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--color-text-soft);
}

/* Cards */

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

.card {
  background-color: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
  color: var(--color-text-soft);
}

/* Features */

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

.feature {
  background-color: #fafafa;
  border-radius: var(--radius-card);
  padding: 1.4rem;
  border: 1px solid var(--color-border);
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

/* Gallery */

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

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder {
  background: repeating-linear-gradient(
    135deg,
    #f0f0f0,
    #f0f0f0 10px,
    #e3e3e3 10px,
    #e3e3e3 20px
  );
  color: #666;
  font-size: 0.9rem;
}

/* Location */

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

.location-list {
  padding-left: 1.2rem;
  color: var(--color-text-soft);
}

.map-embed iframe {
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

/* Booking */

.booking-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

/* Contact */

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

.contact-form {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.9rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(123, 31, 43, 0.18);
}

/* Footer */

.footer {
  background-color: #111111;
  color: #f1f1f1;
  padding: 1.7rem 0;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.footer-small {
  font-size: 0.8rem;
  color: #999;
}

/* Responsive */

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 3.2rem 1rem auto 1rem;
    flex-direction: column;
    background-color: #ffffff;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
  }

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

  .nav-toggle {
    display: block;
  }

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

  .location-layout,
  .booking-box,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-grid,
  .features-grid,
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 65vh;
  }

  .hero-content {
    padding-top: 4rem;
  }

  .booking-box {
    padding: 1.4rem;
  }

  .contact-form {
    padding: 1.3rem;
  }
}


/* Room cards */
.card img {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin-bottom: 0.75rem;
}

.lightbox-overlay {
  display:none;
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,0.8);
  justify-content:center;
  align-items:center;
  z-index:9999;
}
.lightbox-content {
  max-width:90%;
  max-height:90%;
  border-radius:8px;
}
.lightbox-close {
  position:absolute;
  top:20px;
  right:40px;
  color:white;
  font-size:40px;
  cursor:pointer;
}
.card img { cursor:pointer; }

.gallery img { cursor:pointer; }


.gallery-item img {
  cursor: pointer;
}
