/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* Estilos Generales */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #FAFAF7;
  color: #333333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Great Vibes" !important;
}

:root {
  --gold: #D4AF37;
  --gold-light: #E8D49A;
  --gold-dark: #B8931D;
  --neutral: #FAFAF7;
  --text: #333333;
  --accent: #8B5A2B; /* Earthy brown for contrast */
}

.container {
  max-width: 100%;
  margin: 0 auto;
  /*padding: 20px;*/
  background-color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Enhanced Text Input Styling */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="phone"],
.form-group textarea {
  width: 80%;
  padding: 15px 20px;
  border: 2px solid #E8E8E3;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #FAFAF7;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  color: #333;
}

/* Focus State */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
  outline: none;
  background-color: white;
}

/* Placeholder Styling */
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
  color: #999;
  font-weight: 300;
}

/* Hover State */
.form-group input[type="text"]:hover,
.form-group input[type="email"]:hover {
  border-color: #C9C9C3;
}

/* Label Styling */
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
  font-size: 0.95rem;
  transition: all 0.3s;
}

/* Floating Label Effect (Optional) */
.form-group.focused label {
  color: #D4AF37;
  transform: translateY(-2px);
}

/* For Material Design-like Underline Effect (Alternative) */
.alternative-input-style {
  border: none;
  border-bottom: 2px solid #E8E8E3;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  background-color: transparent;
}

.alternative-input-style:focus {
  border-bottom-color: #D4AF37;
  box-shadow: none;
}

/* For Rounded Modern Inputs */
.rounded-input {
  border-radius: 30px;
  padding: 16px 25px;
}

/* With Icon */
.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #D4AF37;
}

.input-with-icon input {
  padding-left: 45px;
}

/* Header */
header {
  text-align: center;
  padding: 40px 20px;
  background-color: #F5F5F0;
  border-bottom: 1px solid #E8E8E3;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #333333;
  margin: 0;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1.2rem;
  color: #777;
  margin-top: 10px;
  font-weight: 300;
}

/* Tarjetas de Detalles */
.event-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 30px 0;
}

.detail-card {
  background: #FFFFFF;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #E8E8E3;
  transition: transform 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
}

.detail-card h2 {
  font-family: 'Playfair Display', serif;
  color: #D4AF37;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Widget de Clima */
.weather-widget {
  background: #F5F5F0;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
  text-align: center;
  border: 1px solid #E8E8E3;
}

.weather-widget h2 {
  font-family: 'Playfair Display', serif;
  color: #333333;
  margin-bottom: 15px;
}

/* Forecast Styles */
.weather-forecast {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.weather-forecast h3 {
  font-family: 'Playfair Display', serif;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.3rem;
}

.forecast-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.forecast-day {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.forecast-date {
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 10px;
}

.forecast-icon {
  font-size: 2rem;
  margin: 10px 0;
}

.forecast-temp {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.max-temp {
  font-weight: bold;
  color: #333;
}

.min-temp {
  color: #777;
}

.forecast-desc {
  font-size: 0.9rem;
  color: #555;
}

/* Botones */
button {
  background: #D4AF37;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
  transition: background 0.3s;
  font-weight: 600;
  letter-spacing: 1px;
}

button:hover {
  background: #C19B2C;
}

/* Footer y Enlaces */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #E8E8E3;
}

.gallery-link {
  color: #D4AF37;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 15px;
  border-bottom: 1px solid transparent;
  transition: border 0.3s;
}

.gallery-link:hover {
  border-bottom: 1px solid #D4AF37;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  .detail-card {
    padding: 20px;
  }
}

/* Estilos específicos para gallery.html */
.gallery-header {
  text-align: center;
  padding: 40px 20px;
  background-color: #F5F5F0;
  border-bottom: 1px solid #E8E8E3;
  margin-bottom: 30px;
}

.gallery-header h1 {
  font-size: 2.5rem;
}

.upload-section {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 40px;
  border: 1px solid #E8E8E3;
}

.upload-box {
  text-align: center;
}

#file-input {
  display: none; /* Ocultamos el input file por defecto */
}

.file-info {
  color: #777;
  font-size: 0.9rem;
  margin-top: 15px;
}

/* Grid de la galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  aspect-ratio: 1 / 1;
  background: #F5F5F0;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img, 
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .file-type {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Placeholder cuando no hay fotos */
.gallery-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: #999;
}

.gallery-placeholder i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #E8E8E3;
}

/* Estilos para iconos dorados */
.icon-gold {
  color: #D4AF37;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* Botones principales */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
  align-items: center;
}

.gold-button {
  background: #D4AF37;
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  width: 80%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  margin: 10px;
  margin: 15px auto 0px auto;
}

.gold-button.outline {
  background: transparent;
  border: 2px solid #D4AF37;
  color: #D4AF37;
}

.gold-button:hover {
  background: #C19B2C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.gold-button.outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Texto destacado */
.highlight {
  color: #D4AF37;
  font-weight: 600;
}

/* Enlaces de texto */
.text-link {
  color: #D4AF37;
  text-decoration: none;
  border-bottom: 1px dashed #D4AF37;
}

.loading, .empty-gallery, .error {
  text-align: center;
  padding: 40px;
  color: #666;
}

.loading i, .empty-gallery i, .error i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #D4AF37;
}

.error i {
  color: #e63946;
}

.gallery-item {
  position: relative;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.file-type {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.network-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.warning-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
}

.warning-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

/* Network status messages */
.gallery-placeholder .fa-mobile-alt {
  color: #D4AF37;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

#retry-load {
  margin-top: 20px;
  max-width: 250px;
}

/* File size indicator */
.file-size {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
}

/* Accommodation Section Styles */
.accommodation-section {
  margin: 40px 0;
  padding: 30px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.accommodation-section h2 {
  font-family: 'Playfair Display', serif;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.accommodation-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.hotel-card {
  display: flex;
  border: 1px solid #E8E8E3;
  border-radius: 8px;
  overflow: hidden;
}

.hotel-image {
  width: 40%;
  position: relative; /* Necesario para posicionar el logo de forma absoluta */
  overflow: hidden; /* Evita que el logo se salga del contenedor */
}

.hotel-logo {
  position: absolute;
  top: 40%;
  left: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotel-logo img {
  max-width: 80%; /* Controla el tamaño máximo del logo (ajusta según necesidad) */
  max-height: 80%; /* Evita que el logo se salga del contenedor */
  object-fit: contain; /* Mantiene la proporción sin recortar */
}

.hotel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-info {
  width: 60%;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.hotel-info h3 {
  font-family: 'Playfair Display', serif;
  color: #D4AF37;
  margin-top: 0;
}

.hotel-description {
  color: #666;
  flex-grow: 1;
}

.hotel-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.hotel-actions .gold-button {
  padding: 10px 15px;
  font-size: 0.9rem;
}

.tripadvisor-widget {
  border: 1px solid #E8E8E3;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .accommodation-container {
    grid-template-columns: 1fr;
  }
  
  .hotel-card {
    flex-direction: column;
  }
  
  .hotel-image, .hotel-info {
    width: 100%;
  }
}

/* Calendar Download Section */
.calendar-download {
  text-align: center;
  padding: 25px;
  margin: 30px 0;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.calendar-download h3 {
  font-family: 'Playfair Display', serif;
  color: #333;
  margin-bottom: 10px;
}

.calendar-download p {
  color: #666;
  margin-bottom: 20px;
}

.calendar-note {
  display: block;
  margin-top: 15px;
  color: #999;
  font-size: 0.8rem;
}

/* Admin Styles */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
}

.admin-section {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.filters input, .filters select {
  padding: 10px 15px;
  border: 1px solid #E8E8E3;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
}

.confirmations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.confirmation-card {
  border: 1px solid #E8E8E3;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
}

.confirmation-card.valid {
  border-left: 4px solid #1DB954; /* Verde tipo Spotify */
}

.confirmation-card.invalid {
  border-left: 4px solid #E60023; /* Rojo tipo Pinterest */
}

.confirmation-card h3 {
  margin-top: 0;
  color: #333;
}

.confirmation-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.qr-validator {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.qr-validator input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #E8E8E3;
  border-radius: 4px;
}

.validation-success {
  background: #f5f5f0;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.error {
  color: #E60023;
}

/* =======Parallax====== */
/* ===================== */

/* Parallax Container */
.parallax-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

/* Parallax Layers Base Style */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Background Layer (mano anillo) */
.background-layer {
  background-image: url('../images/mano-ring.jpg');
  z-index: 1;
}

/* Middleground Layer (corazon manos) */
.middleground-layer {
  background-image: url('https://images.unsplash.com/reserve/Af0sF2OS5S5gatqrKzVP_Silhoutte.jpg?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: contain;
  background-repeat: repeat-x;
  background-position: bottom;
  z-index: 2;
}

/* Foreground Layer (sombra) */
.foreground-layer {
  background-image: url('https://images.unsplash.com/photo-1676326761239-d8e6c173b85b?q=80&w=1925&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: contain;
  background-repeat: repeat-x;
  background-position: bottom;
  z-index: 3;
}

/* Content Layer */
.parallax-content {
  position: relative;
  z-index: 4;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transform: translateY(0);
  will-change: transform;
}

.parallax-content h2 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.parallax-content p {
  font-size: 1.5rem;
  font-weight: 300;
}

/* Background Layer (cabañas) */
.background-layer-lugar {
  background-image: url('https://lirp.cdn-website.com/58af03ae/dms3rep/multi/opt/zm2mxX2Q-1920w.jpeg');
  z-index: 1;
}

/* Middleground Layer (alberca cabañas) */
.middleground-layer-lugar {
  background-image: url('https://lirp.cdn-website.com/58af03ae/dms3rep/multi/opt/WhBWB9ww-1920w.jpeg');
  background-size: contain;
  background-repeat: repeat-x;
  background-position: bottom;
  z-index: 2;
}

/* Foreground Layer (alberca jardin) */
.foreground-layer-lugar {
  background-image: url('https://lirp.cdn-website.com/58af03ae/dms3rep/multi/opt/eRTwK01w-1920w.jpeg');
  background-size: contain;
  background-repeat: repeat-x;
  background-position: bottom;
  z-index: 3;
}

/* Sprites */
.sprite-container-vertical {
  position: fixed;
  right: 20px; /* Adjust this value to move left/right */
  top: 0;
  height: 100vh;
  width: 150px; /* Width of the animation area */
  pointer-events: none;
  z-index: 1000;
}

.sprite-vertical {
  position: absolute;
  height: 60px; /* Smaller sprite size */
  width: auto;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  right: 0; /* Align to right side */
}

#groom-sprite {
  top: 5%;
  transform: translateY(-50%) translateX(0);
  height: 70px;
}

#bride-sprite {
  bottom: 5%;
  transform: translateY(50%) translateX(0);
}

/* Estilos para la galería polaroid */
.polaroid-gallery {
  background-color: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
}

.polaroid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.polaroid {
  background: white;
  padding: 15px 15px 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  position: relative;
}

.polaroid:nth-child(even) {
  transform: rotate(2deg);
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.05);
}

.polaroid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid #eee;
}

.polaroid p {
  text-align: center;
  font-family: 'Handlee', cursive;
  font-size: 18px;
  color: #333;
  margin-top: 10px;
}

/* Efecto vintage opcional */
/*.polaroid::after {
  content: '';
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 70%);
}*/

.polaroid img {
  filter: sepia(30%) contrast(110%);
}

.polaroid {
  background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
}