/* Base Styles */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Eczar:wght@400..800&family=Italiana&family=Prata&display=swap');

:root {
  --gold: #E3995F;
  --gold-light: #d4b684;
  --dark: rgba(21, 21, 21, 1);
  --dark-gray: #1a1a1a;
  --light-gray: #333333;
  --text-light: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Eczar", serif;
  color: var(--text-light);
  background-color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Italiana", serif;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3.5px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 1px solid #E3995F; 
  width: max-content; 
}

p {
  margin-bottom: 1rem;
  font-family: sans-serif;
  letter-spacing: normal;
  color: black;
}

a {
  text-decoration: none;
  color: var(--dark);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  left: 3vw;
}

.btn-gold {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: rgba(255, 255, 255, 0.048);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.btn-gold:hover {
  background-color: var(--gold);
  color: var(--dark);
}

/* Top Navigation Bar */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(255, 255, 255, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.topnav .logo {
  display: flex;
  align-items: center;
}

.topnav .logo img {
  width: 40px;
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.nav-links li a i {
  font-size: 1rem;
}

.nav-links li a:hover {
  color: var(--gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3 ease;;
  z-index: 1001;
}
.mobile-menu-btn:hover {
  color: var(--gold);
}
main {
  padding-top: 70px;
}

/* Hero Section */
.hero {
  height: calc(100vh - 70px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  font-size: 10rem;
  font-weight: 400;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  line-height: 5cm;
  font-family:  "Alfa Slab One", serif;
}

.opening-hours {
  color: white;
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  width: max-content;
  height: max-content;
}
.opening-hours p {
  font-family: "Eczar", serif;
  color: white;
}

/* Welcome Section */
.welcome {
  padding: 5rem 0;
  background-color: white;
}

.welcome .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.welcome-content h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  font-family: "Italiana", sans-serif;
}

.welcome-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Collections Section */
.collections {
  padding: 5rem 0;
  background-color: white;
  position: relative;
}

.collections::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  opacity: 0.05;
  z-index: 0;
}

.collections .container {
  position: relative;
  z-index: 1;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.collection-item {
  opacity: 1;
  transform: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgb(65, 65, 65);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.collection-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.collection-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px 5px 0 0;
  margin-bottom: 0;
}
.collection-info {
  padding: 1.5rem;
}
.collection-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.collection-info h4 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.collection-info p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.collection-description {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 2rem;
}

.slider-controls button {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-controls button:hover {
  background-color: var(--gold);
  color: var(--dark);
}
/* imagen fondo */
.imgfondo {
  opacity: 35%;
  position: absolute;
  z-index: 1;
  left: 8vw;
}
.imgfondo img {
  height: 150vh;
}
/* Our Pieces Section */
.our-pieces {
  padding: 5rem 0;
  background-color: white;
  position: relative;
}

.our-pieces::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.our-pieces .container {
  position: relative;
  z-index: 1;
}

.pieces-slider {
  position: relative;
}

.piece-item {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-left: 10rem
}

.piece-item.active {
  display: grid;
}

.piece-item img {
  width: 70%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.piece-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.piece-info h4 {
  font-size: 1.5rem;
  color: black;
  margin-bottom: 1.5rem;
}

.pieces-thumbnails {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.thumbnail.active {
  opacity: 1;
  border: 2px solid var(--gold);
}

.thumbnail:hover {
  opacity: 0.9;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--gold);
  transform: scale(1.2);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.slider-arrows button {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-arrows button:hover {
  background-color: var(--gold);
  color: var(--dark);
}

/* Reservations Section */
.reservations {
  background-color: white;
  position: relative;
}

.reservations::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.1;
  z-index: 0;
}

.reservations .container {
  position: relative;
  z-index: 1;
}

.reservations-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.opening-hours h3 {
  margin-bottom: 1rem;
}

.map-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.map img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  filter: grayscale(100%) brightness(0.8);
}

.address {
  font-size: 0.9rem;
  position: relative;
  float: right;
  top: -24vh;
}

.address h4 {
  margin: 1rem 0 0.5rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  background-color: black;
  border-top: 1px solid var(--light-gray);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer a {
  color: white;
}

.footer-logo img {
  width: 50px;
  height: 50px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--gold);
  color: var(--dark);
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 0.5rem;
    left: 0;
  }
  h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .btn-gold {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.2rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .btn-gold {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .imgfondo img {
   display: none;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    flex-direction: column;
    padding: 1rem 0;
    opacity: 0;
    gap: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    padding: 1rem 2rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(201, 166, 107, 0.1);
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links li a span {
    display: inline-block;
    margin-left: 0.5rem;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .imgfondo img {
    display: none;
  }
  .welcome .container,
  .piece-item,
  .reservations-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links li a span {
    font-size: 0.8rem;
  }

  .topnav {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .imgfondo img {
    display: none;
  }
  .hero h1 {
    font-size: 3.5rem;
  }

  footer .container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .imgfondo img {
    display: none;
  }
  .hero h1 {
    font-size: 3rem;
  }

  .pieces-thumbnails {
    flex-wrap: wrap;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }
}
/* Visitor Details Styles */
.visitor-list {
  margin: 2rem 0;
}

.visitor-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.visitor-row select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* Calendar Styles */
.calendar-container {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.2s;
}

.calendar-day:hover {
  transform: scale(1.05);
}

.time-slot-container {
  margin-top: 2rem;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Availability Colors */
.available {
  background-color: var(--primary-color);
  color: white;
}

.partially-booked {
  background-color: var(--warning-color);
  color: white;
}

.fully-booked {
  background-color: var(--danger-color);
  color: white;
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}


.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .visitor-row {
      flex-direction: column;
  }
  
  .calendar-container {
      padding: 1rem;
  }
  
  .calendar-day {
      font-size: 0.8rem;
  }
}

/* Add these to your existing styles.css */
.calendar-day.past {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.disabled {
    pointer-events: none;
}

.time-group {
    margin-bottom: 1rem;
}

.time-slot {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.2s;
}

.time-slot:hover:not(:disabled) {
    transform: scale(1.05);
}

.time-slot.booked {
    background-color: var(--danger-color);
    opacity: 0.5;
    cursor: not-allowed;
}

.error-message {
    color: var(--danger-color);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.visitor-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.visitor-row label {
    min-width: 100px;
}

.visitor-row select {
    flex: 1;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

/* Add these styles to your existing CSS */
.confirmation-card,
.success-card,
.error-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #e3995f;
    animation: spin 1s linear infinite;
    margin: 2rem 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 1rem;
}

.success-actions,
.error-actions {
    margin-top: 2rem;
}

.success-card h1,
.error-card h1 {
    color: #333;
    margin-bottom: 1rem;
}

.success-card p,
.error-card p {
    color: #666;
    margin-bottom: 2rem;
}