/* =========================================
   Estilos para index.html - Página Principal
   ========================================= */

/* Montserrat (SIL OFL) autoalojada: la CSP solo permite fuentes del propio sitio */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('vendor/fonts/montserrat-latin.woff2') format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #FFFFFF;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.hero-banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #5C4033 0%, #C5A989 100%);
}

.hero-pano {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-pano.is-ready {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61, 46, 31, 0.35) 0%, rgba(92, 64, 51, 0.15) 50%, rgba(61, 46, 31, 0.5) 100%);
  pointer-events: none;
}

.hero-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.hero-card img {
  max-width: min(900px, 120vh);
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(61, 46, 31, 0.45);
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.hero-card .all-tours {
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.7s backwards;
}

.hero-scroll {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  text-decoration: none;
  animation: hero-fade 0.8s ease 1.4s backwards, hero-bounce 2s ease-in-out 2.2s infinite;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  background: #E8DED3;
  color: #5C4033;
  outline: none;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card img,
  .hero-card .all-tours,
  .hero-scroll {
    animation: none;
  }
}

.hero-content {
  display: none;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 20px;
  flex: 1;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.tour-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.tour-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.tour-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #B2B2B2 0%, #DDD4CF 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  flex-shrink: 0;
}

.tour-info h2 {
  font-size: 1.4rem;
  color: #DDD4CF;
  margin-bottom: 5px;
}

.tour-scenes {
  font-size: 0.9rem;
  color: #B2B2B2;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tour-description {
  color: #DDD4CF;
  line-height: 1.6;
  margin-bottom: 15px;
}

.tour-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #B2B2B2 0%, #DDD4CF 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tour-card:hover .tour-button {
  background: linear-gradient(135deg, #C5A989 0%, #B2B2B2 100%);
  transform: scale(1.05);
}

.all-tours {
  text-align: center;
}

.all-tours-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 44px;
  background: linear-gradient(35deg, #C5A989 0%, #C5A993 50%, #E8DED3 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: white;
  border-radius: 14px;
  text-align: left;
  text-shadow: 0 1px 3px rgba(61, 46, 31, 0.45);
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  animation: btn-pulse 2.6s ease-in-out 1.8s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.5s ease, color 0.3s ease;
}

.all-tours-button > i {
  font-size: 1.9rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.btn-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.btn-subtitle {
  font-size: 0.88rem;
  font-weight: 400;
  opacity: 0.92;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 5px 20px rgba(0,0,0,0.15), 0 0 0 0 rgba(232, 222, 211, 0.55); }
  50% { box-shadow: 0 5px 20px rgba(0,0,0,0.15), 0 0 0 14px rgba(232, 222, 211, 0); }
}

/* Destello de luz que cruza el botón al pasar el mouse */
.all-tours-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  z-index: -1;
  pointer-events: none;
}

.all-tours-button:hover,
.all-tours-button:focus-visible {
  animation: none;
  transform: translateY(-2px);
  background-position: 100% 50%;
  color: #5C4033;
  text-shadow: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.18),
              0 0 22px rgba(197, 169, 137, 0.75),
              0 0 44px rgba(232, 222, 211, 0.6);
}

.all-tours-button:hover::before {
  left: 125%;
  transition: left 0.7s ease;
}

@media (max-width: 480px) {
  .all-tours-button {
    padding: 14px 24px;
    gap: 12px;
  }

  .all-tours-button > i {
    font-size: 1.5rem;
  }

  .btn-title {
    font-size: 1.05rem;
  }

  .btn-subtitle {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .all-tours-button,
  .all-tours-button:hover::before {
    animation: none;
    transition: none;
  }
}

/* ===== Sección informativa ===== */
.features {
  background: #FAF7F3;
  padding: 70px 20px 60px;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #5C4033;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #C5A989, #E8DED3);
}

.section-title-sm {
  font-size: 1.5rem;
  margin-top: 70px;
  margin-bottom: 30px;
}

.feature-grid,
.howto {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 26px;
  text-align: center;
  border: 1px solid #E8DED3;
  box-shadow: 0 8px 24px rgba(92, 64, 51, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #C5A989;
  box-shadow: 0 16px 36px rgba(92, 64, 51, 0.16), 0 0 24px rgba(197, 169, 137, 0.35);
}

.feature-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #C5A989 0%, #E8DED3 100%);
  color: #5C4033;
  font-size: 1.7rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-6deg);
}

.feature-card h3 {
  font-size: 1.3rem;
  color: #5C4033;
  margin-bottom: 10px;
}

.feature-card p {
  color: #4A4A4A;
  line-height: 1.6;
  font-size: 0.98rem;
}

.howto-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border-left: 4px solid #C5A989;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(92, 64, 51, 0.07);
  color: #4A4A4A;
  line-height: 1.4;
}

.howto-item i {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #E8DED3;
  color: #5C4033;
  font-size: 1.25rem;
}

.howto-item strong {
  color: #5C4033;
}

/* Revelado al hacer scroll (reveal.js agrega .reveal solo si hay JS) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .feature-grid,
  .howto {
    grid-template-columns: 1fr;
  }

  .features {
    padding: 50px 16px 40px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-title-sm {
    margin-top: 50px;
  }
}

footer {
  background: linear-gradient(135deg, #C5A989 0%, #E8DED3 100%);
  color: #333333;
  padding: 40px 10px 10px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #5C4033;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: #5C4033;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(92, 64, 51, 0.15);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: #5C4033;
  color: #E8DED3;
  transform: scale(1.08);
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
  min-width: 0;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #4A3A2C;
}

.contact-text a {
  color: #3D2E1F;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
}

.contact-text a:hover,
.contact-text a:focus-visible {
  color: #6B4F2F;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(92, 64, 51, 0.25);
  font-size: 0.85rem;
  opacity: 0.9;
  color: #3D2E1F;
}

@media (max-width: 768px) {
  .hero-banner img {
    width: 100%;
    height: auto;
  }
  
  .tours-grid {
    grid-template-columns: 1fr;
  }
  
  .tour-card {
    padding: 20px;
  }

  .container {
    padding: 30px 15px;
  }

  footer {
    padding: 30px 16px 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 20px;
  }

  .footer-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .footer-bottom {
    padding-top: 12px;
    font-size: 0.78rem;
  }
}

/* Estilos de accesibilidad */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #B2B2B2;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #DDD4CF;
  outline-offset: 2px;
}

*:focus-visible {
  outline: 3px solid #B2B2B2;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(178, 178, 178, 0.3);
}

.tour-card:focus-visible {
  outline: 3px solid #B2B2B2;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(178, 178, 178, 0.3);
}

.all-tours-button:focus-visible {
  outline: 3px solid #DDD4CF;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(221, 212, 207, 0.3);
}

.fline-content-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #C5A989 0%, #B2B2B2 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(197, 169, 137, 0.3);
  border: none;
  cursor: pointer;
}

.fline-content-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 169, 137, 0.4);
  background: linear-gradient(135deg, #B2B2B2 0%, #C5A989 100%);
}

.fline-content-button:focus-visible {
  outline: 3px solid #C5A989;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(197, 169, 137, 0.3);
}

.fline-content-button i {
  font-size: 1.2rem;
}

/* Modal PDF */
.pdf-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.pdf-modal-overlay.active {
  display: flex;
}

.pdf-modal-container {
  background: white;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: linear-gradient(135deg, #B2B2B2 0%, #C5A989 100%);
  color: white;
}

.pdf-modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.pdf-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pdf-modal-body {
  flex: 1;
  overflow: hidden;
}

.pdf-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mejorar contraste en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  .tour-card,
  .all-tours-button {
    min-height: 44px;
  }
  
  .tour-button {
    min-height: 44px;
    padding: 14px 26px;
  }
}
