/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Dinámico */
.hero-dynamic {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1.2s ease;
  opacity: 1;
  filter: brightness(1) blur(0px);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(139, 69, 19, 0.8), rgba(218, 165, 32, 0.3), transparent);
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-content-dynamic {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 65%;
  width: 90%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: all 0.8s ease;
}

.hero-content-dynamic.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.main-title-dynamic {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  /*color: #8B4513;*/
}

.subtitle-dynamic {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-description h2 {
  font-size: 2.2rem;
  color: #8B4513;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-description p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #ffffff;
  max-width: 80%;
  margin: 0 auto;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de parallax sutil */
.hero-bg-image {
  transform: scale(1.05);
  transition: transform 0.8s ease;
}

.hero-dynamic:hover .hero-bg-image {
  transform: scale(1);
}

/* Hero Section */
.hero {
  padding: 60px 0;
  background-color: #fafafa;
}

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

.hero-text {
  text-align: center;
  max-width: 600px;
}

.hero-text h2 {
  font-size: 2rem;
  color: #8B4513;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-text p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.7;
}

.hero-image {
  width: 100%;
  max-width: 400px;
}

.placeholder-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

/* Gallery Section */
.gallery {
  padding: 80px 0;
  background-color: #fafafa;
}

.gallery-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(139, 69, 19, 0.2);
}

.gallery-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(218, 165, 32, 0.8));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.gallery-overlay p {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.coming-soon {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px dashed #8B4513;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.coming-soon-content {
  text-align: center;
  color: #8B4513;
}

.coming-soon-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.coming-soon-content p {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-info {
  margin-top: 20px;
  color: white;
  text-align: center;
}

.lightbox-info p {
  font-size: 1rem;
  opacity: 0.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Packages Section */
.packages {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #8B4513;
  margin-bottom: 50px;
  font-weight: 600;
}

.package-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #f0f0f0;
  position: relative;
  transition: all 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
}

.package-card.popular {
  border-color: #8B4513;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8B4513, #DAA520);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.package-header {
  text-align: center;
  margin-bottom: 25px;
}

.package-title {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.package-price {
  font-size: 3rem;
  color: #8B4513;
  font-weight: 700;
  margin-bottom: 20px;
}

.package-benefits {
  list-style: none;
  margin-bottom: 30px;
}

.package-benefits li {
  padding: 8px 0;
  font-size: 1.1rem;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.package-benefits li:last-child {
  border-bottom: none;
}

/* Botones CTA */
.cta-button,
.cta-link,
.contact-button {
  width: 100%;
  background: linear-gradient(135deg, #8B4513, #DAA520);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  text-align: center;
}

.cta-button:hover,
.cta-link:hover,
.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
  background: linear-gradient(135deg, #A0522D, #B8860B);
}

.cta-button:active,
.cta-link:active,
.contact-button:active {
  transform: translateY(0);
}

/* Benefits Section */
.benefits {
  padding: 80px 0;
  background-color: #fafafa;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.benefit-item h3 {
  font-size: 1.3rem;
  color: #8B4513;
  margin-bottom: 10px;
  font-weight: 600;
}

.benefit-item p {
  color: #666;
  font-size: 1rem;
}

/* Final CTA */
.final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #8B4513 0%, #DAA520 100%);
  color: white;
  text-align: center;
}

.final-cta h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.final-cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-button {
  max-width: 300px;
  margin: 0 auto;
  display: block;
  background: white;
  color: #8B4513;
  border: 2px solid white;
}

.contact-button:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* Footer */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 30px 0;
}

.footer p {
  margin-bottom: 10px;
  opacity: 0.8;
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
  .hero-dynamic {
    height: 100vh;
    min-height: 500px;
  }

  .hero-bg-image {
    height: 100%;
    object-fit: cover;
    transition: all 1.2s ease;
    opacity: 1;
    filter: brightness(1) blur(0px);
  }

  .hero-content-dynamic {
    max-width: 95%;
    padding: 25px 20px;
    bottom: 20px;
    max-width: 600px;
  }

  .main-title-dynamic {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .subtitle-dynamic {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .hero-description h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .hero-description p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-image {
    height: 250px;
  }

  .lightbox-content {
    max-width: 95%;
    padding: 20px;
  }

  .lightbox-close {
    top: -40px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* Responsive Design - Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-title {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.4rem;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }

  .hero-text {
    text-align: left;
    flex: 1;
  }

  .hero-image {
    flex: 1;
    max-width: 500px;
  }

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

  .package-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
  }

  .package-card {
    margin-bottom: 0 !important;
    max-width: none;
  }

  .package-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
  .main-title {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.4rem;
  }

  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }

  .hero-text {
    text-align: left;
    flex: 1;
  }

  .hero-image {
    flex: 1;
    max-width: 500px;
  }

  .package-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    align-items: start;
  }

  .package-card {
    margin-bottom: 0 !important;
    max-width: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }
}

/* Animaciones suaves */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.package-card {
  animation: fadeInUp 0.6s ease-out;
}

.benefit-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Mejoras de accesibilidad */
.cta-button:focus,
.cta-link:focus,
.contact-button:focus {
  outline: 3px solid rgba(139, 69, 19, 0.5);
  outline-offset: 2px;
}

/* Package Actions */
.package-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.details-button {
  width: 100%;
  background: transparent;
  color: #8B4513;
  border: 2px solid #8B4513;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.details-button:hover {
  background: #8B4513;
  color: white;
  transform: translateY(-2px);
}

/* Package Modal */
.package-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.package-modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 90%;
  max-height: 90%;
  width: 600px;
  overflow: hidden;
  position: relative;
  animation: slideInUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0, 0, 0, 0.1);
  color: #666;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
}

.modal-header {
  padding: 30px 30px 20px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
  color: #8B4513;
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.modal-price {
  font-size: 2.5rem;
  color: #8B4513;
  font-weight: 700;
}

.modal-body {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

.modal-image {
  text-align: center;
  margin-bottom: 25px;
}

.modal-image img {
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

.modal-details h3 {
  color: #8B4513;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.modal-details ul {
  list-style: none;
  margin-bottom: 25px;
}

.modal-details li {
  padding: 8px 0;
  font-size: 1.1rem;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.modal-details li:last-child {
  border-bottom: none;
}

.modal-specs,
.modal-process {
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.modal-specs h4,
.modal-process h4 {
  color: #8B4513;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.modal-specs ul {
  margin-bottom: 0;
}

.modal-process ol {
  margin: 0;
  padding-left: 20px;
}

.modal-process li {
  padding: 5px 0;
  font-size: 1rem;
  color: #555;
}

.modal-footer {
  padding: 20px 30px 30px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  background: white;
  flex-shrink: 0;
}

.modal-cta {
  background: linear-gradient(135deg, #8B4513, #DAA520);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Responsive Modal */
@media (max-width: 767px) {
  .modal-content {
    width: 95%;
    max-height: 95%;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 1.6rem;
  }

  .modal-price {
    font-size: 2rem;
  }

  .modal-image img {
    max-width: 150px;
  }
}

/* Proceso de Entrega */
.process {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.process .section-title {
  color: #8B4513;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 700;
}

.process .section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.process-step {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #8B4513, #DAA520);
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.process-step h3 {
  color: #8B4513;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.process-step p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive para proceso */
@media (max-width: 768px) {
  .process {
    padding: 60px 0;
  }

  .process .section-title {
    font-size: 2rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .process-step {
    padding: 25px 15px;
  }

  .step-icon {
    font-size: 2.5rem;
  }
}

/* Carga progresiva - Placeholder para secciones */
[data-lazy-load] {
  min-height: 200px;
  transition: opacity 0.3s ease;
}

[data-lazy-load]:not(.loaded) {
  opacity: 0.7;
}

[data-lazy-load].loaded {
  opacity: 1;
}

/* Placeholder para imágenes lazy */
img[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}