@charset "utf-8";

/* =========================================================
   MTT v3.1 — Catholic Pilgrimage B2B Stylesheet
   PART 1/3 — Global, Layout, Hero, Navigation
   Optimized Version
   ========================================================= */

/* ---------- VARIABLES ---------- */
:root {
  color-scheme: light;

  --navy: #0a2a43;
  --navy-light: #123e5c;
  --orange: #f28c38;
  --orange-dark: #d97426;
  --blue-soft: #e9f3fa;
  --blue-mid: #4a6b82;
  --ink: #18334c;
  --muted: #6a7a88;
  --line: #e6edf3;
  --white: #ffffff;
  --gold: #c9a873;

  --shadow-soft: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);

  --radius-card: 12px;
  --radius-btn: 999px;
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.75 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ---------- LINKS ---------- */
a {
  color: var(--navy);
  text-underline-offset: 3px;
  transition: color .25s ease;
}
a:hover { color: var(--orange); }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- CONTAINER ---------- */
.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- SKIP LINK ---------- */
.skip {
  position: absolute;
  left: -100vw;
  top: 0;
  background: var(--white);
  padding: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 99;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  position: absolute;
  top: 16px;
  width: 100%;
  z-index: 60;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.topbar-logo {
  height: 54px;
  display: block;
}

/* Flag button */
.langswitch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.55);
  border-radius: 10px;
  border: 1px solid rgba(216,167,60,0.45);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: background .25s ease, transform .25s ease;
}
.langswitch:hover {
  background: rgba(0,0,0,0.75);
  transform: translateY(-6px);
}

.flag-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

/* Tooltip */
.tooltip-text {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.tooltip:hover .tooltip-text { opacity: 1; }

/* Topbar link */
.topbar .container a:nth-child(2) {
  font-size: 0.85rem;
  color: #fff;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity .25s ease;
}
.topbar .container a:nth-child(2):hover { opacity: 1; }

/* Logo hover */
.topbar .brand {
  display: inline-block;
  transition: transform .25s ease, opacity .25s ease;
}
.topbar .brand:hover {
  transform: translateY(-6px);
  opacity: 0.95;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  background: linear-gradient(120deg, rgba(10,42,67,0.48), rgba(18,62,92,0.48)),
              url('../images/guadalupe-basilica-cdmx.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 90px 0 100px;
}

@media (max-width: 768px) {
  .hero {
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
	url('../images/hero-guadalupe-movil.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  max-width: 900px;
  margin: 18px 0 14px;
  white-space: nowrap;
}

.es{
	font-size: clamp(1.68rem, 3.5vw, 2.8rem)  !important;
}

@media (max-width: 768px) {
.hero,
.hero * {
  text-align: center;
}
}

@media (max-width: 768px) {
  .hero h1 {
	font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    line-height: 1.15;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
	transform: translateY(-10px);
  }
}

.hero .subtitle {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: #eaf2f7;
  margin-bottom: 26px;
  max-width: 1050px;
}

@media (max-width: 768px) {
	.hero .subtitle {
	  transform: translateY(-25px);	
	}
	.hero p{
    line-height: 1.25;   /* más compacto */
    font-size: 0.95rem;  /* opcional: texto ligeramente más pequeño */
	transform: translateY(60px);	
	}
	.motto{transform: translateY(-55px);}
}

.motto {
  border-left: 4px solid var(--orange);
  padding: 10px 0 10px 22px;
  max-width: 820px;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 750;
  line-height: 1.35;
  margin: 32px 0;
  font-family: "Georgia", serif;
}

.hero p:not(.subtitle) {
  max-width: 600px;
  color: #f4f7fa;
}

.hero h1,
.hero .subtitle,
.hero p,
.hero .motto {
  text-shadow:
    0 3px 8px rgba(0,0,0,0.45),
    0 6px 18px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
.hero h1,
.hero .subtitle,
.hero p,
.hero .motto {
  text-shadow:
    0 3px 8px rgba(0,0,0,0.50),
    0 6px 18px rgba(0,0,0,0.50);
}
}
/* =========================================================
   BUTTONS
   ========================================================= */

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: all .25s ease;
}

.btn.primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn.primary:hover {
  background: var(--orange-dark);
  box-shadow: var(--shadow-hover);
}

.btn.secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn.secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* Hero-specific secondary */
.hero .secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.hero .secondary:hover {
  background: var(--white);
  color: var(--navy);
}


@media (max-width: 768px) {
	.hero .btn.primary{
	transform: translateY(40px);
	padding: 10px 15px;
}
}

@media (max-width: 768px) {
	.hero .btn.secondary{
	transform: translateY(40px);
	padding: 10px 15px;
}
}
/* =========================================================
   IN-PAGE NAVIGATION
   ========================================================= */

.inpage {
  background: var(--blue-soft);
  border-bottom: 1px solid var(--line);
}

.inpage nav {
  display: flex;
  gap: 26px;
  overflow: auto;
  padding: 14px 0;
  white-space: nowrap;
  font-size: 14px;
}

.inpage a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  position: relative;
}
.inpage a:hover { color: var(--orange); }
.inpage a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: 30px 0;
  scroll-margin-top: 10px;
}

.section.soft { background: var(--blue-soft); }

.section h2 {
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 28px;
  color: var(--navy);
}

.section h3 {
  font-size: 1.32rem;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--navy);
}

.section p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .topbar .container { padding: 0 16px; }
  .topbar-logo { height: 42px; }
  .langswitch { width: 42px; height: 42px; }
  .flag-icon { width: 24px; height: 24px; }

  .hero { padding: 60px 0; }

  .section { padding: 40px 0; }
  .section h2 { font-size: 1.65rem; margin-bottom: 20px; }
  .section h3 { font-size: 1.18rem; margin-bottom: 12px; }
  .section p { font-size: 15.5px; margin-bottom: 16px; }

  .btn { width: 100%; padding: 16px 28px; }
}

/* =========================================================
   MAIN GRIDS (Approach, Routes, Services)
   ========================================================= */

.why-grid,
.route-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* WHY — Banda lateral */
.info-card.why-band {
  border: none;
  border-left: 6px solid var(--blue-mid);
  padding-left: 26px;
}

/* =========================================================
   CARDS (Unified MTT v3.1 Style)
   ========================================================= */

.info-card,
.route,
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .25s ease, transform .25s ease;
}

.info-card:hover,
.route:hover,
.service:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* =========================================================
   PROOF BLOCK
   ========================================================= */

.proof {
  border-left: 5px solid var(--gold);
  padding: 28px 34px;
  background: var(--white);
  max-width: 950px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.proof .small {
  font-size: 14px;
  color: var(--muted);
}

blockquote {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 24px;
  font-family: "Georgia", serif;
}

/* Proof image */
.proof-img {
  float: left;
  max-width: 230px;
  height: auto;
  margin: 1em 1.5em 1em 0;
  border-radius: 8px;
  display: block;
}

@media (max-width: 300px) {
  .proof-img {
    float: none;
    width: 100%;
    margin: 0 0 1em 0;
  }
}

/* =========================================================
   SECTION INTRO
   ========================================================= */

.section-intro {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
}

/* =========================================================
   ROUTES
   ========================================================= */

.route-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.route-no {
  font-size: 15px;
  font-weight: 800;
  color: var(--orange);
}

.days {
  font-size: 13px;
  background: var(--blue-soft);
  border-radius: var(--radius-btn);
  padding: 5px 12px;
  font-weight: 700;
  color: var(--navy);
}

.route-places {
  color: var(--navy-light);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* =========================================================
   TEXT LINKS
   ========================================================= */

.text-links {
  margin-top: 34px;
  display: flex;
  gap: 12px 22px;
  flex-wrap: wrap;
  font-size: 15px;
}

.text-links a {
  color: var(--navy);
  font-weight: 600;
  position: relative;
}

.text-links a:hover {
  color: var(--orange);
}

.text-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* =========================================================
   TWO-COL (Guadalupe)
   ========================================================= */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.disclaimer {
  margin-top: 24px !important;
  font-size: 15px;
  color: var(--muted);
}

/* =========================================================
   INFO-CARD IMAGE (Guadalupe)
   ========================================================= */

.info-card .info-img {
  width: 100%;
  overflow: hidden;
}

.info-card .info-img img {
  width: 100%;
  height: auto; /* la imagen conserva su proporción */
  display: block;
  object-fit: contain; /* se muestra completa */
}


/* =========================================================
   SERVICES GRID
   ========================================================= */

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service h3 {
  font-size: 1.32rem;
}

/* Alternancia de colores en SERVICE GRID */
.service-grid .service:nth-child(odd) {
  background: rgba(201,168,115,0.12); /* dorado suave */
  border-color: var(--gold);
  border-top: 4px solid var(--gold);
}

.service-grid .service:nth-child(even) {
  background: rgba(10,42,67,0.05); /* navy diluido */
  border-color: var(--navy-light);
  border-top: 4px solid var(--navy-light);
}

/* =========================================================
   CONTACT PANEL
   ========================================================= */

.motto-end {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 22px !important;
  font-family: "Georgia", serif;
}

.closing-philosophy {
  font-weight: 600;
  color: var(--navy-light);
  margin-top: 10px;
}

.contact-panel {
  background: var(--blue-soft);
  border: 1px solid var(--line);
  padding: 34px;
  border-radius: var(--radius-card);
  margin-top: 34px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .25s ease, transform .25s ease;
}

.contact-panel:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.contact-panel h3 {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.contact-panel p {
  font-size: 16px;
  margin-top: 12px;
  color: var(--muted);
}

.contact-panel a {
  color: var(--navy);
  font-weight: 600;
}

.contact-panel a:hover {
  color: var(--orange);
}

/* =========================================================
   RESPONSIVE — TABLET & MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {

  .why-grid,
  .route-grid,
  .service-grid,
  .two-col,
  .quick-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .info-card,
  .route,
  .service {
    width: 100% !important;
    padding: 22px;
    border-radius: 12px;
  }

  .info-card.why-band {
    border-left-width: 6px;
    padding-left: 20px;
  }

  .quick-grid li,
  .two-col .info-card,
  .why-grid .info-card,
  .route-grid .route,
  .service-grid .service {
    width: 100%;
    max-width: 100%;
  }

  .disclaimer {
    font-size: 14px;
    line-height: 1.45;
    margin-top: 10px;
    opacity: 0.85;
  }
}

@media (max-width: 630px) {

  .info-card,
  .route,
  .service {
    padding: 26px;
  }

  .contact-panel {
    padding: 28px;
  }
}

/* =========================================================
   MTT v3.1 — PART 3/3
   Footer, Responsive, Reduced Motion, Mobile Refinements
   ========================================================= */

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--navy);
  color: #e1edf5;
  padding: 40px 0;
  font-size: 14px;
}

.footer a {
  color: #e1edf5;
  text-decoration: none;
  transition: color .25s ease;
}

.footer a:hover {
  color: var(--orange);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

/* =========================================================
   RESPONSIVE — TABLET (max-width: 900px)
   ========================================================= */

@media (max-width: 900px) {
  .footer .container {
    justify-content: center;
    text-align: center;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE (max-width: 630px)
   ========================================================= */

@media (max-width: 630px) {

  body { font-size: 16px; }

  .container {
    width: min(100% - 30px, 1120px);
  }

  .hero {
    padding: 60px 0;
    background-position: center;
  }

  .section {
    padding: 50px 0;
  }

  .btn {
    width: 100%;
    padding: 16px 28px;
  }

  .topbar .container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .info-card,
  .route,
  .service {
    padding: 26px;
  }

  .contact-panel {
    padding: 28px;
  }

  .footer {
    text-align: center;
  }

  .footer .container {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   MOBILE REFINEMENTS (Global)
   ========================================================= */

@media (max-width: 768px) {

  /* Secciones */
  .section {
    padding: 40px 0;
  }

  .section h2 {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 20px;
  }

  .section h3 {
    font-size: 1.18rem;
    margin-bottom: 12px;
  }

  .section p {
    font-size: 15.5px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  /* Cards */
  .info-card,
  .route,
  .service {
    padding: 22px;
    border-radius: 12px;
  }

  /* Grids apilados */
  .quick-grid li,
  .two-col .info-card,
  .why-grid .info-card,
  .route-grid .route,
  .service-grid .service {
    width: 100%;
    max-width: 100%;
  }

  /* Espaciado entre elementos */
  .quick-grid,
  .two-col,
  .why-grid,
  .route-grid,
  .service-grid {
    gap: 18px;
  }

  /* Disclaimer */
  .disclaimer {
    font-size: 14px;
    line-height: 1.45;
    margin-top: 10px;
    opacity: 0.85;
  }
}

/* =========================================================
   FAQ PREMIUM — MTT v3.2
   ========================================================= */

/* CONTENEDOR GENERAL */
.faq details {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 18px;
  overflow: hidden;
  border-top: 3px solid var(--navy-light); /* borde superior azul oscuro */
  transition: box-shadow .25s ease, transform .25s ease;
}

/* Hover elegante */
.faq details:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* PREGUNTA */
.faq summary {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  transition: background .25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hover de pregunta */
.faq summary:hover {
  background: rgba(10,42,67,0.08); /* navy diluido */
}

/* Ocultar el triángulo del navegador */
.faq summary::-webkit-details-marker {
  display: none;
}

/* ICONO PREMIUM */
.faq summary::after {
  content: "▼";
  font-size: 1.3rem;
  color: var(--navy-light);
  transition: transform .35s ease;
}

/* Rotación automática al abrir */
.faq details[open] summary::after {
  transform: rotate(180deg);
}

/* RESPUESTA */
.faq p {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  animation: faq-open .45s ease;
}

/* Animación suave */
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   QUICK GRID (Overview)
   ========================================================= */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.quick-grid li {
  background: var(--white);
  border: 1px solid #b8c7d4;
  padding: 24px;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.quick-grid strong {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.quick-grid span {
  display: block;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
}

/* Botón naranja del CONTACT PANEL igual al del HERO */
.contact-panel .btn.primary {
  background: var(--orange);
  color: var(--white);
  padding: 16px 34px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

/* Hover idéntico al del HERO */
.contact-panel .btn.primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}

