/* ==========================================================
   MAGDA VIAJES - SITIO PROMOCIONAL OFICIAL
   "Te vas porque te vas - 20 Años a tu servicio"
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #0ca764;
  --primary-dark: #077947;
  --primary-light: #e6f7ef;
  --secondary: #0284c7;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebd5a;
  --border: #e2e8f0;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* TOP HEADER / BARRA DE NAVEGACIÓN */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.25s;
}

.btn-login:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* BANNER HERO PROMOCIONAL */
.hero-banner {
  background: linear-gradient(135deg, rgba(7, 121, 71, 0.94), rgba(2, 132, 199, 0.88)), 
              url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  border-bottom-left-radius: 35px;
  border-bottom-right-radius: 35px;
  margin-bottom: 50px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.7rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto;
}

/* SECCIONES */
.section {
  padding: 40px 0;
}

.section-title {
  font-size: 2.1rem;
  text-align: center;
  margin-bottom: 10px;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 35px;
  font-size: 1rem;
}

/* ==========================================================
   CUADRÍCULA DE 3 COLUMNAS DE BLOQUES CUADRADOS
   ========================================================== */
.grid-bloques {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* EL BLOQUE CUADRADO */
.bloque-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* CUADRADO PERFECTO */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: #0f172a;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bloque-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.18);
}

.bloque-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bloque-card:hover .bloque-img {
  transform: scale(1.08);
}

/* CAPA DE INFORMACIÓN DENTRO DEL CUADRADO */
.bloque-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #ffffff;
  z-index: 2;
}

.bloque-price-tag {
  align-self: flex-start;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(12, 167, 100, 0.4);
}

.bloque-titulo {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.bloque-info {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-whatsapp-bloque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  transition: 0.2s;
  width: fit-content;
}

.btn-whatsapp-bloque:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.03);
}

/* MENSAJE DE CUADRÍCULA VACÍA INICIAL */
.empty-bloques-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.empty-bloques-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 8px;
}

/* ==========================================================
   SECCIÓN DE INFORMACIÓN SOBRE MAGDA VIAJES
   ========================================================== */
.about-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border);
}

.about-img-wrap {
  text-align: center;
}

.about-img {
  max-height: 260px;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.about-content p {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 14px;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.highlight-pill {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================
   SECCIÓN DE CONTACTO, WHATSAPP Y GOOGLE MAPS
   ========================================================== */
.contact-section {
  background: #0f172a;
  color: #ffffff;
  padding: 60px 0 40px;
  margin-top: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-info h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-info p {
  color: #94a3b8;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1e293b;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-whatsapp-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: 0.25s;
  margin-top: 10px;
}

.btn-whatsapp-big:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  height: 340px;
  border: 3px solid rgba(255,255,255,0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER */
.footer-simple {
  text-align: center;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  font-size: 0.85rem;
  color: #64748b;
}

/* RESPONSIVO */
@media (max-width: 992px) {
  .grid-bloques {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-card {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid-bloques {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
}
