/* ============================================================
   HOLANDES HERRANTE — CSS Responsive Optimizado
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-0: #140F0B;
  --bg-1: #1a1410;
  --bg-2: #2C2520;
  --bg-3: #2C2520;
  --bg-card: #2C2520;
  --bg-footer: #0f0f0f;

  --green:  #22c55e;
  --green-h:#16a34a;
  --accent: #FF2E00;

  --white: #ffffff;
  --gray-1: #d1d5db;
  --gray-2: #9ca3af;
  --gray-3: #6b7280;
  --gray-4: #4b5563;
  --gray-num: #847C7D;

  --border: rgba(255,255,255,0.08);

  --r-sm:  8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font-logo: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  --shadow-card: 0 4px 32px rgba(0,0,0,0.5);
  --shadow-btn:  0 4px 16px rgba(34,197,94,0.25);

  /* Spacing tokens */
  --px: 48px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-0);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; padding: 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  padding-bottom: 4px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--gray-2); }
.nav-link.active { color: var(--accent); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-0);
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px var(--px);
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.hero-left {
  flex: 1 1 50%;
  max-width: 580px;
}

.hero-title {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-1);
  margin-bottom: 36px;
}

.hero-subtitle strong { color: var(--white); font-weight: 700; }

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-btn);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-whatsapp i { font-size: 18px; }
.btn-whatsapp:hover { background: var(--green-h); color: var(--white); }
.btn-whatsapp:active { transform: scale(0.97); }

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline-hero:hover { background: var(--white); color: var(--bg-0); }

/* HERO CAROUSEL */
.hero-right {
  flex: 1 1 45%;
  max-width: 620px;
}

.hero-carousel-outer {
  position: relative;
  padding: 0 28px;
}

.hero-carousel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  width: 100%;
}

.hero-carousel-inner {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

.hero-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--r-xl);
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #111;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  z-index: 10;
  transition: background 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  -webkit-tap-highlight-color: transparent;
}
.carousel-arrow:hover { background: var(--white); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.hero-badge {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(8,8,8,0.88);
  border-radius: var(--r-md);
  padding: 16px 22px;
  text-align: center;
}

.badge-num { display: block; font-size: 36px; font-weight: 900; line-height: 1; color: var(--white); }
.badge-txt { display: block; font-size: 12px; color: var(--gray-2); margin-top: 4px; font-weight: 400; }

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features-section {
  padding: 40px var(--px) 60px;
}

.features-container { max-width: 1440px; margin: 0 auto; }

.features-card {
  background: var(--bg-2);
  border-radius: var(--r-xl);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 0;
}

.feature-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  position: relative;
}

.feature-item + .feature-item::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.feature-icon-box {
  width: 52px; height: 52px; min-width: 52px;
  border: 2px solid var(--gray-4);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.material-symbols-outlined {
  font-size: 22px !important;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.feature-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.feature-desc { font-size: 12px; color: var(--gray-2); line-height: 1.45; margin: 0; }

.features-socials {
  display: flex;
  gap: 36px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.features-socials a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: opacity 0.2s;
}
.features-socials a:hover { opacity: 0.7; }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-size: 44px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 44px;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { padding: 72px 0; background: var(--bg-0); }

.services-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--px);
}

.services-grid { display: flex; gap: 48px; align-items: flex-start; }
.service-cards { display: flex; gap: 20px; flex: 0 0 62%; }

.service-card {
  flex: 1;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

.service-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 55%, transparent 100%);
  padding: 28px 20px 24px;
}

.service-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.service-num { font-size: 16px; font-weight: 700; color: var(--gray-2); }
.service-name { font-size: 22px; font-weight: 800; color: var(--white); line-height: 1.2; }
.service-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.s-tag { font-size: 12px; color: var(--gray-1); }
.s-sep { font-size: 12px; color: var(--gray-3); margin: 0 2px; }

.steps-col { flex: 1; padding-top: 16px; }
.step-item { display: flex; align-items: flex-start; gap: 18px; }

.step-num {
  font-size: 80px;
  font-weight: 900;
  line-height: 0.85;
  color: var(--gray-num);
  min-width: 64px;
  text-align: left;
  font-family: var(--font-body);
  letter-spacing: -2px;
  padding-top: 4px;
}
.step-num-4 { color: #6a5f5c; font-size: 92px; }

.step-body { flex: 1; padding-top: 8px; }
.step-icon { font-size: 17px; color: var(--white); margin-bottom: 5px; opacity: 0.85; }
.step-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.step-desc { font-size: 13px; color: var(--gray-2); margin: 0; }
.step-line { height: 1px; background: var(--border); margin: 20px 0; }

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.portfolio-section { padding: 72px 0; background: var(--bg-0); }

.portfolio-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--px);
}

.portfolio-wrapper { overflow: hidden; position: relative; }

.portfolio-track {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.portfolio-slide { flex-shrink: 0; cursor: pointer; }
.portfolio-active { cursor: pointer; }
.portfolio-peek   { cursor: default; }

.p-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg-2);
}

.p-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.portfolio-active .p-card:hover img { transform: scale(1.02); }
.p-card-peek img { opacity: 0.25; transform: none !important; }

.p-arrow-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
}

.p-arrow-overlay:has(.p-nav-btn-left) {
  background: transparent;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
}

.p-nav-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none; color: #111;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  -webkit-tap-highlight-color: transparent;
}
.p-nav-btn:hover { background: var(--white); transform: scale(1.08); }
.p-nav-btn:active { transform: scale(0.95); }

.p-title { font-size: 14px; font-weight: 800; color: var(--white); margin-bottom: 6px; line-height: 1.3; }
.p-title-active { color: var(--white); }
.p-title-dim { color: var(--gray-3); font-weight: 700; }

.p-desc { font-size: 12px; color: var(--gray-2); line-height: 1.5; margin: 0; }
.p-desc-dim { color: var(--gray-4); }

.portfolio-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.p-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-4); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.p-dot.active { background: var(--white); transform: scale(1.3); }

/* ============================================================
   PORTFOLIO MODAL
   ============================================================ */
.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-modal.pm-open {
  pointer-events: auto;
  opacity: 1;
}

.pm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pm-content {
  position: relative;
  z-index: 1;
  background: #1c1612;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  width: 92%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  margin-top: 5vh;
  padding: 36px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-4) transparent;
  -webkit-overflow-scrolling: touch;
}

.portfolio-modal.pm-open .pm-content { transform: translateY(0); }

.pm-content::-webkit-scrollbar { width: 4px; }
.pm-content::-webkit-scrollbar-track { background: transparent; }
.pm-content::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 3px; }

.pm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.pm-header-text { flex: 1; }

.pm-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.pm-desc {
  font-size: 14px;
  color: var(--gray-2);
  line-height: 1.6;
  margin: 0;
}

.pm-close {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.pm-close:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.35); }

.pm-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.pm-gallery-item {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4/3;
}

.pm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pm-gallery-item:hover img { transform: scale(1.04); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 72px 0 56px;
  background: var(--bg-0);
}

.testimonials-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--px);
}

.testimonials-section .section-title { color: var(--white); }

.testimonials-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
}

.t-stat { display: flex; align-items: center; gap: 10px; }
.t-stat-num { font-size: 40px; font-weight: 900; color: var(--white); line-height: 1; }
.t-stat-lbl { font-size: 13px; color: var(--gray-2); line-height: 1.4; }
.t-stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.18); }
.t-stat-rating { display: flex; align-items: center; gap: 10px; }
.t-star { color: #f59e0b; font-size: 24px; }

.testimonials-carousel-wrap {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.t-card {
  flex-shrink: 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: opacity 0.35s ease, min-width 0.35s ease, height 0.35s ease;
}

.t-card-side    { padding: 22px 20px; }
.t-card-featured { padding: 30px 26px; box-shadow: 0 8px 48px rgba(0,0,0,0.55); }

.t-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.t-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #e8e8e8;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #777; flex-shrink: 0;
}
.t-avatar-person { background: #e8e8e8; overflow: hidden; }
.t-avatar-person i { font-size: 32px; color: #999; margin-top: 6px; }

.t-name { font-size: 14px; font-weight: 700; color: #111; }

.t-text {
  font-size: 13px;
  color: #444;
  line-height: 1.55;
  font-style: italic;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.t-card-featured .t-text {
  font-size: 13.5px;
  -webkit-line-clamp: 6;
  color: #333;
}

.t-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-shrink: 0;
}
.t-footer-featured { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.t-stars { display: flex; gap: 3px; color: #f59e0b; font-size: 14px; }

.t-reel-link, .t-google-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #888; font-style: normal; transition: color 0.2s;
}
.t-reel-link:hover, .t-google-link:hover { color: #333; }

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.t-nav-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.t-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.t-nav-btn:disabled { opacity: 0.25; cursor: default; }

.testimonials-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.t-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gray-4); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.t-dot.active { background: var(--white); transform: scale(1.3); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 96px var(--px);
  text-align: center;
  background: var(--bg-0);
  border-top: 1px solid var(--border);
}

.cta-container { max-width: 800px; margin: 0 auto; }
.cta-title { font-size: 58px; font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 18px; }
.cta-subtitle { font-size: 17px; color: var(--gray-1); margin-bottom: 40px; }
.cta-subtitle strong { color: var(--white); }
.btn-whatsapp-lg { font-size: 17px; padding: 16px 36px; border-radius: var(--r-md); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand-col { flex: 0 0 280px; }

.footer-logo { margin-bottom: 14px; }

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-about { font-size: 14px; color: var(--gray-2); line-height: 1.6; margin-bottom: 22px; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--accent); transition: opacity 0.2s; }
.footer-contact-item i { font-size: 15px; }
.footer-contact-item:hover { opacity: 0.8; }

.footer-nav-col { flex: 1; min-width: 130px; }
.footer-col-heading { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-link-list { display: flex; flex-direction: column; gap: 11px; }
.footer-link-list a { font-size: 13px; color: var(--gray-2); transition: color 0.2s; }
.footer-link-list a:hover { color: var(--white); }

.footer-social-col { min-width: 150px; }
.footer-socials { display: flex; gap: 10px; }

.footer-social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 3px rgba(255,46,0,0.18);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.footer-social-btn:hover {
  background: rgba(255,46,0,0.1);
  box-shadow: inset 0 0 0 3px rgba(255,46,0,0.35);
  transform: scale(1.1);
  color: var(--accent);
}

/* ============================================================
   FOOTER BOTTOM
   ============================================================ */
.footer-bottom {
  margin-top: 40px;
  padding: 20px var(--px) 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-3);
  margin: 0;
  line-height: 1.5;
}

.footer-bottom p a {
  color: var(--gray-2);
  transition: color 0.2s;
}
.footer-bottom p a:hover { color: var(--white); }

.footer-bottom-credit {
  font-size: 13px;
  color: var(--gray-3);
  white-space: nowrap;
}

.footer-bottom-credit a {
  color: var(--gray-2);
  font-weight: 500;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.footer-bottom-credit a:hover { color: var(--white); }

.footer-bottom-divider {
  width: 1px;
  height: 14px;
  background: var(--gray-4);
  flex-shrink: 0;
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.floating-wa {
  position: fixed;
  bottom: 24px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.floating-wa:hover { transform: scale(1.1); background: #22c55e; color: var(--white); }

/* ============================================================
   RESPONSIVE — Tablet 1024px
   ============================================================ */
@media (max-width: 1100px) {
  :root { --px: 32px; }

  .hero-title { font-size: 44px; }
  .section-title { font-size: 38px; }
  .cta-title { font-size: 46px; }
  .step-num { font-size: 68px; }
  .services-grid { gap: 28px; }
  .service-cards { flex: 0 0 58%; }
  .hero-slide img { height: 440px; }
}

/* ============================================================
   RESPONSIVE — Tablet 768–991px
   ============================================================ */
@media (max-width: 991px) {
  :root { --px: 24px; }

  /* Navbar mobile */
  .nav-container { height: 60px; }
  .nav-toggler { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--bg-1);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 24px; font-size: 16px; }
  .nav-link.active::after { display: none; }

  .hero-section { padding-top: 60px; min-height: auto; }
  .hero-container { flex-direction: column; padding: 40px var(--px); gap: 36px; }
  .hero-left { max-width: 100%; }
  .hero-right { max-width: 100%; width: 100%; }
  .hero-title { font-size: 38px; }
  .hero-slide img { height: 360px; }

  .features-section { padding: 0 var(--px) 48px; }
  .features-card { flex-wrap: wrap; padding: 20px; gap: 0; }
  .feature-item { flex: 0 0 50%; padding: 14px; }
  .feature-item + .feature-item::before { display: none; }

  .services-grid { flex-direction: column; }
  .service-cards { flex: unset; width: 100%; }
  .steps-col { width: 100%; }

  /* Testimonials: card única */
  .t-card {
    min-width: calc(82% - 14px) !important;
    width:     calc(82% - 14px) !important;
    height: auto !important;
  }
  .t-card-featured {
    min-width: calc(82% - 14px) !important;
    width:     calc(82% - 14px) !important;
  }

  .cta-section { padding: 72px var(--px); }
  .cta-title { font-size: 36px; }

  .footer-brand-col { flex: 0 0 100%; }

  .pm-content { padding: 28px 22px; width: 96%; }
  .pm-gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ============================================================
   RESPONSIVE — Mobile 480–767px
   ============================================================ */
@media (max-width: 767px) {
  :root { --px: 18px; }

  .hero-title { font-size: 32px; letter-spacing: -0.3px; }
  .hero-subtitle { font-size: 15px; }
  .hero-slide img { height: 280px; }
  .hero-carousel-outer { padding: 0 20px; }

  .hero-buttons { flex-direction: column; }
  .btn-whatsapp,
  .btn-outline-hero { width: 100%; justify-content: center; }

  .section-title { font-size: 28px; margin-bottom: 32px; }

  .features-card { flex-direction: column; border-radius: var(--r-md); }
  .feature-item { flex: 0 0 100%; padding: 12px 14px; }

  .services-section { padding: 56px 0; }
  .service-card img { height: 380px; }
  .service-cards { flex-direction: column; }
  .service-name { font-size: 18px; }

  .step-num { font-size: 56px; min-width: 52px; }
  .step-num-4 { font-size: 64px; }

  /* Portfolio: 1 card activa + peek en mobile */
  .portfolio-section { padding: 56px 0; }
  .p-card img { height: 280px; }
  .p-nav-btn { width: 50px; height: 50px; font-size: 16px; }

  /* Testimonials */
  .testimonials-section { padding: 56px 0 44px; }
  .t-card {
    min-width: calc(88% - 14px) !important;
    width:     calc(88% - 14px) !important;
  }
  .t-card-featured {
    min-width: calc(88% - 14px) !important;
    width:     calc(88% - 14px) !important;
  }
  .t-stat-num { font-size: 34px; }

  .cta-section { padding: 60px var(--px); }
  .cta-title { font-size: 28px; }
  .cta-subtitle { font-size: 14px; }
  .btn-whatsapp-lg { width: 100%; justify-content: center; font-size: 16px; padding: 15px 24px; }

  .footer-container { gap: 28px; }
  .footer-nav-col { flex: 0 0 calc(50% - 14px); }
  .footer-brand-col { flex: 0 0 100%; }

  .pm-content { padding: 20px 16px; margin-top: 2vh; max-height: 96vh; border-radius: var(--r-lg); }
  .pm-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pm-title { font-size: 20px; }
  .pm-desc { font-size: 13px; }

  .features-socials { gap: 22px; flex-wrap: wrap; }

  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-bottom-divider { display: none; }
}

/* ============================================================
   RESPONSIVE — Mobile pequeño < 380px
   ============================================================ */
@media (max-width: 380px) {
  :root { --px: 14px; }

  .hero-title { font-size: 27px; }
  .section-title { font-size: 24px; }
  .hero-slide img { height: 240px; }
  .service-card img { height: 320px; }
  .cta-title { font-size: 24px; }
  .badge-num { font-size: 28px; }
  .badge-txt { font-size: 11px; }
  .hero-badge { padding: 12px 16px; bottom: 10px; right: 10px; }

  .footer-nav-col { flex: 0 0 100%; }

  .pm-gallery { grid-template-columns: 1fr; }
  .t-card {
    min-width: calc(94% - 14px) !important;
    width:     calc(94% - 14px) !important;
  }
  .t-card-featured {
    min-width: calc(94% - 14px) !important;
    width:     calc(94% - 14px) !important;
  }
}

/* ============================================================
   TOUCH: remove hover states on mobile for better perf
   ============================================================ */
@media (hover: none) {
  .portfolio-active .p-card:hover img { transform: none; }
  .pm-gallery-item:hover img { transform: none; }
  .btn-whatsapp:hover { transform: none; }
}









@media (max-width: 768px) {

  .features-card {
    flex-direction: column;
    padding: 20px;
  }

  .feature-item {
    width: 100%;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 52px 1fr; /* MISMO ancho que el icono */
    align-items: center;
    column-gap: 14px;
  }

  /* eliminamos las líneas divisorias verticales en mobile */
  .feature-item + .feature-item::before {
    display: none;
  }

  .feature-icon-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  .feature-title,
  .feature-desc {
    margin: 0;
  }

}


