/* ═══════════════════════════════════════════════════════════
   TravelersEc — Shared Styles
   Fuente: DM Sans (Google Sans equivalent)
════════════════════════════════════════════════════════════ */

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

:root {
  --primary:   #00b4a0;
  --primary-d: #008a7a;
  --accent:    #ff6b35;
  --dark:      #1a1a2e;
  --text:      #2d2d3a;
  --gray:      #6b7280;
  --gray-lt:   #9ca3af;
  --light:     #f7f8fc;
  --border:    #e8eaf0;
  --white:     #ffffff;
  --r-sm:      8px;
  --r-md:      14px;
  --r-lg:      20px;
  --shadow:    0 2px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --torisoftt-h: 34px; /* altura barra demo */
  --nav-h:       66px;
}

html  { scroll-behavior: smooth; }
body  {
  font-family: 'DM Sans', 'Google Sans', Arial, sans-serif;
  color: var(--text); background: var(--white);
  font-size: 15px; line-height: 1.6;
  padding-top: calc(var(--torisoftt-h) + var(--nav-h));
}
img   { display: block; max-width: 100%; }
a     { text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── TORISOFTT DEMO BAR ────────────────────────────────── */
.torisoftt-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: var(--torisoftt-h);
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; font-size: .75rem;
}
.torisoftt-bar .left {
  color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: .5rem;
}
.torisoftt-bar .left i { color: var(--accent); }
.torisoftt-bar .right {
  display: flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.55);
}
.torisoftt-bar .right a {
  color: var(--primary); font-weight: 700;
  transition: color .2s;
}
.torisoftt-bar .right a:hover { color: var(--accent); }
.torisoftt-badge {
  background: var(--primary); color: var(--dark);
  font-size: .65rem; font-weight: 800; padding: .15rem .55rem;
  border-radius: 50px; text-transform: uppercase; letter-spacing: .5px;
  margin-left: .3rem;
}

/* ── NAVBAR ───────────────────────────────────────────── */
.navbar {
  position: fixed; top: var(--torisoftt-h); left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
.nav-inner {
  max-width: 1280px; width: 80%; margin: 0 auto;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.navbar.solid {
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,.09);
}
.navbar.always-solid {
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,.09);
}

.logo { font-size: 1.45rem; font-weight: 800; letter-spacing: -.5px; color: var(--dark); }
.logo span { color: var(--primary); }
.navbar:not(.always-solid):not(.solid) .logo { color: var(--white); }
.navbar.solid .logo,
.navbar.always-solid .logo { color: var(--dark); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .88rem; font-weight: 500;
  color: rgba(255,255,255,.88); transition: color .2s;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); border-bottom-color: var(--primary); }
.navbar.solid .nav-links a,
.navbar.always-solid .nav-links a { color: var(--gray); }
.navbar.solid .nav-links a:hover,
.navbar.solid .nav-links a.active,
.navbar.always-solid .nav-links a:hover,
.navbar.always-solid .nav-links a.active { color: var(--dark); border-bottom-color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-lang {
  display: flex; align-items: center; gap: .35rem;
  font-size: .82rem; color: rgba(255,255,255,.8);
  background: none; border: none; font-family: inherit; cursor: pointer;
}
.navbar.solid .nav-lang,
.navbar.always-solid .nav-lang { color: var(--gray); }
.btn-signup {
  background: var(--primary); color: var(--white);
  border: none; padding: .42rem 1.2rem; border-radius: 50px;
  font-size: .84rem; font-weight: 600; transition: background .2s;
  display: inline-block;
}
.btn-signup:hover { background: var(--primary-d); color: var(--white); }

/* ── CONTAINER ────────────────────────────────────────── */
.container { max-width: 1280px; width: 80%; margin: 0 auto; }

/* ── SECTION COMMONS ──────────────────────────────────── */
.section { padding: 5rem 0; }

.sec-head { margin-bottom: 2.2rem; }
.sec-head .tag {
  display: inline-block; color: var(--primary); font-size: .75rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: .5rem;
}
.sec-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 800;
  letter-spacing: -.3px; line-height: 1.2;
}
.sec-head .sub { color: var(--gray); font-size: .88rem; margin-top: .4rem; }

.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.btn-see-all {
  font-size: .83rem; font-weight: 600; color: var(--primary);
  border: 1.5px solid var(--primary); padding: .42rem 1.1rem;
  border-radius: 50px; transition: all .2s; white-space: nowrap;
}
.btn-see-all:hover { background: var(--primary); color: var(--white); }

/* ── PAGE HERO (inner pages) ──────────────────────────── */
.page-hero {
  height: 380px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 1.5rem; position: relative; margin-top: 0;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,18,40,.55), rgba(10,18,40,.45));
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .tag {
  display: inline-block; color: var(--primary); font-size: .75rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(0,180,160,.15); border: 1px solid rgba(0,180,160,.3);
  padding: .3rem 1rem; border-radius: 50px; margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: var(--white); letter-spacing: -.5px; line-height: 1.15; margin-bottom: .7rem;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: .95rem; max-width: 500px; }

/* ── BREADCRUMB ───────────────────────────────────────── */
.breadcrumb {
  background: var(--light); border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.breadcrumb .container { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--gray-lt); }
.breadcrumb .current { color: var(--gray); }

/* ── CARD SHARED ──────────────────────────────────────── */
.card-img-wrap { position: relative; overflow: hidden; }
.card-img-wrap img { width: 100%; object-fit: cover; transition: transform .5s; display: block; }
.card-hover { transition: transform .3s, box-shadow .3s; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-hover:hover .card-img-wrap img { transform: scale(1.06); }

/* ── BADGE ────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .22rem .7rem; border-radius: 50px; text-transform: uppercase; letter-spacing: .4px;
}
.badge-primary { background: var(--primary); color: var(--white); }
.badge-accent  { background: var(--accent);  color: var(--white); }
.badge-light   { background: var(--white);   color: var(--primary); box-shadow: var(--shadow); }

/* ── FILTER BAR ───────────────────────────────────────── */
.filter-bar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.filter-bar label { font-size: .78rem; font-weight: 700; color: var(--gray); white-space: nowrap; }
.filter-select {
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: .45rem .9rem; font-size: .85rem; font-family: inherit;
  color: var(--text); background: var(--white); outline: none;
  transition: border .2s; cursor: pointer;
}
.filter-select:focus { border-color: var(--primary); }
.filter-search {
  flex: 1; min-width: 180px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: .45rem 1rem; font-size: .85rem; font-family: inherit;
  color: var(--text); background: var(--white); outline: none;
  transition: border .2s;
}
.filter-search:focus { border-color: var(--primary); }
.btn-filter {
  background: var(--primary); color: var(--white); border: none;
  padding: .5rem 1.3rem; border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 700; transition: background .2s;
  display: flex; align-items: center; gap: .4rem;
}
.btn-filter:hover { background: var(--primary-d); }

/* ── PILL TABS ────────────────────────────────────────── */
.pill-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pill-tab {
  padding: .45rem 1.1rem; border-radius: 50px; font-size: .83rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--gray); background: var(--white);
  cursor: pointer; transition: all .2s;
}
.pill-tab:hover   { border-color: var(--primary); color: var(--primary); }
.pill-tab.active  { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ── FEATURES STRIP ───────────────────────────────────── */
.features { background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.features .container { display: flex; }
.feat-item { flex: 1; display: flex; align-items: center; gap: 1rem; padding: 1.6rem 2rem; }
.feat-item + .feat-item { border-left: 1px solid var(--border); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: #e6f8f5; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1.15rem; color: var(--primary);
}
.feat-text strong { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .15rem; }
.feat-text span   { font-size: .78rem; color: var(--gray); }

/* ── NEWSLETTER ───────────────────────────────────────── */
/* Fondo full-width en el section, contenido al 80% via .container */
.newsletter-section {
  background: linear-gradient(135deg, #0f2c3f 0%, #1a1a2e 100%);
  padding: 5rem 0;
}
.newsletter {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.news-left { display: flex; flex-direction: column; }
.news-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,180,160,.18); border: 1px solid rgba(0,180,160,.3);
  color: var(--primary); font-size: .75rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 50px; margin-bottom: 1.2rem; align-self: flex-start;
}
.news-left h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--white); line-height: 1.2; letter-spacing: -.3px; margin-bottom: .8rem;
}
.news-left h2 em { font-style: normal; color: var(--primary); }
.news-left p { color: rgba(255,255,255,.60); font-size: .88rem; line-height: 1.7; margin-bottom: 1.8rem; }
.news-form-row { display: flex; gap: .7rem; margin-bottom: .9rem; }
.news-input {
  flex: 1; padding: .75rem 1.1rem;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm); color: var(--white);
  font-size: .88rem; font-family: inherit; outline: none; transition: border .2s;
}
.news-input::placeholder { color: rgba(255,255,255,.4); }
.news-input:focus { border-color: var(--primary); }
.btn-subscribe {
  background: var(--primary); color: var(--white); border: none;
  padding: .75rem 1.6rem; border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 700; transition: background .2s; white-space: nowrap;
}
.btn-subscribe:hover { background: var(--primary-d); }
.news-perks { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.news-perk  { color: rgba(255,255,255,.55); font-size: .78rem; display: flex; align-items: center; gap: .35rem; }
.news-perk i { color: var(--primary); }
/* Foto derecha — contenida en el 80% con bordes redondeados */
.news-right {
  border-radius: var(--r-lg); overflow: hidden;
  height: 340px; box-shadow: 0 16px 48px rgba(0,0,0,.35);
}
.news-right img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ── FOOTER ───────────────────────────────────────────── */
footer { background: #111827; color: rgba(255,255,255,.6); padding: 4rem 0 1.8rem; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.f-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -.4px; color: var(--white); display: inline-block; margin-bottom: .9rem; }
.f-logo span { color: var(--primary); }
.f-brand p { font-size: .83rem; line-height: 1.8; max-width: 270px; }
.f-socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.f-social {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font-size: .82rem; transition: all .2s;
}
.f-social:hover { background: var(--primary); color: var(--white); }
.f-col h5 { color: var(--white); font-size: .88rem; font-weight: 700; margin-bottom: 1.1rem; }
.f-col li + li { margin-top: .55rem; }
.f-col a { color: rgba(255,255,255,.5); font-size: .83rem; transition: color .2s; }
.f-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; flex-wrap: wrap; gap: .8rem; margin-top: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); margin-left: 1rem; transition: color .2s; }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom .made-by { color: rgba(255,255,255,.35); }
.footer-bottom .made-by a { color: var(--primary); margin-left: 0; font-weight: 700; }

/* ── BACK TO TOP ──────────────────────────────────────── */
#btt {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 800;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: var(--white); border: none; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,180,160,.35);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
#btt.show { opacity: 1; pointer-events: auto; }
#btt:hover { background: var(--primary-d); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .container, .nav-inner { width: 90%; }
}
@media (max-width: 900px) {
  .features .container { flex-direction: column; }
  .feat-item + .feat-item { border-left: none; border-top: 1px solid var(--border); }
  .newsletter { grid-template-columns: 1fr; }
  .news-right { display: none; }
  .newsletter-section { padding: 3.5rem 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links  { display: none; }
  .container, .nav-inner { width: 92%; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .torisoftt-bar .left { display: none; }
}
