/* ═══════════════════════════════════════════
   Pensiones Global México – Main Stylesheet
   Paleta:
     Verde oscuro:   #70acb1
     Gris verdoso:   #9bc5c8
     Verde claro:    #d7f5ee
     Verde cristal:  #c6f1e7
     Gris oscuro:    #59606d
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #70acb1;
  --teal-light:  #9bc5c8;
  --mint:        #d7f5ee;
  --crystal:     #c6f1e7;
  --dark:        #59606d;
  --dark-deep:   #1a1f26;
  --white:       #ffffff;
  --text:        #2d3340;
  --text-muted:  #6b7280;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(0,0,0,.10);
  --transition:  .3s ease;
  --font-body:   'Montserrat', sans-serif;
  --font-display:'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover { background: #5a9ba0; border-color: #5a9ba0; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-nav {
  background: var(--teal);
  color: var(--white) !important;
  padding: .5rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-nav:hover { background: #5a9ba0; }

.btn-lg { padding: 1rem 2.6rem; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; }

/* ── Section helpers ── */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-tag {
  display: inline-block;
  background: var(--mint);
  color: var(--teal);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--dark-deep);
  margin-bottom: .8rem;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(26, 31, 38, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  padding: .7rem 0;
}
.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img { height: 42px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .93rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--teal-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,31,38,.55) 0%,
    rgba(26,31,38,.70) 60%,
    rgba(26,31,38,.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeUp .9s ease both;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal-light);
  background: rgba(112,172,177,.15);
  border: 1px solid rgba(112,172,177,.35);
  padding: .3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-title em { color: var(--teal-light); font-style: normal; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 2.4rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::before {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease infinite;
}

/* ══════════════════════════════════════════
   TRUST BAND
══════════════════════════════════════════ */
.trust-band {
  background: var(--dark-deep);
  padding: 1.6rem 0;
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
}
.trust-icon {
  color: var(--teal);
  font-size: 1rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services { background: #f7fdfc; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(112,172,177,.12);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(112,172,177,.2);
  border-color: var(--teal-light);
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-deep);
  margin-bottom: .6rem;
}
.service-card p { color: var(--text-muted); font-size: .95rem; }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about { background: var(--white); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  position: relative;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--teal);
  border-radius: calc(var(--radius) + 12px);
  z-index: -1;
}
.about-img-wrap img { width: 100%; height: 480px; object-fit: cover; }

.about-content .section-tag { margin-bottom: 1rem; }
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark-deep);
  margin-bottom: 1.2rem;
  line-height: 1.25;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: .97rem;
}
.about-content strong { color: var(--dark-deep); }
.about-list {
  margin: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
}
.about-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
}

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
.cta-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
}
.cta-banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,31,38,.85) 0%, rgba(112,172,177,.55) 100%);
}
.cta-banner-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
  width: 100%;
}
.cta-banner-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.cta-banner-content p {
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,.85);
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact { background: #f7fdfc; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.contact-info .section-tag { margin-bottom: 1rem; }
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark-deep);
  margin-bottom: 1rem;
}
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon { font-size: 1.4rem; margin-top: .1rem; }
.contact-detail-item strong { font-size: .9rem; color: var(--dark-deep); font-weight: 700; }
.contact-detail-item p { color: var(--text-muted); font-size: .9rem; margin-top: .2rem; }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(112,172,177,.12);
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(112,172,177,.2);
}
.form-note {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .8rem;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--dark-deep);
  color: rgba(255,255,255,.75);
}
.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}
.footer-logo { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); }
.footer-links h4,
.footer-contact h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }
.footer-contact p { font-size: .88rem; line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 0;
}
.footer-bottom p {
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  80%  { opacity: 0; transform: translateX(-50%) translateY(14px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   WHATSAPP FAB
══════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: waPulse 2.4s ease infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,.65);
  animation: none;
}
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #1a1f26;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.whatsapp-fab:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.75); }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap img { height: 340px; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .footer-layout { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1.2rem;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,31,38,.97);
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 1001; }

  .section { padding: 70px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .footer-layout { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .contact-form { padding: 1.5rem; }
}
