/* ============================================================
   DETALLADO GONZÁLEZ – style.css
   ============================================================ */

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

:root {
  --primary:    #0d6efd;
  --primary-dk: #0a58ca;
  --accent:     #ff6b2b;
  --dark:       #0e1624;
  --dark2:      #162032;
  --text:       #1e293b;
  --muted:      #64748b;
  --light:      #f0f6ff;
  --white:      #ffffff;
  --radius:     14px;
  --shadow:     0 8px 32px rgba(13,110,253,.15);
  --trans:      all .28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(14,22,36,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: var(--trans);
  overflow: visible;        /* permite que el logo se desborde */
}
.navbar.scrolled { background: rgba(14,22,36,.97); }

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: visible;        /* permite que el logo se desborde */
}

/* ---- Brand / Logo ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
  overflow: visible; /* permite que el logo se desborde sin cortarse */
}

.brand-logo {
  height: 130px;
  width:  130px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.60);
  flex-shrink: 0;
  position: relative;
  z-index: 1000;
  /* baja el logo para que se desborde hacia abajo de la barra */
  margin-top: 65px;
}

.logo-entrance {
  animation: logo-blur-in 1.6s cubic-bezier(.4,0,.2,1) both;
}

@keyframes logo-blur-in {
  0%   { filter: blur(22px); opacity: 0; transform: scale(.84); }
  60%  { filter: blur(6px);  opacity: .8; transform: scale(.97); }
  100% { filter: blur(0);    opacity: 1;  transform: scale(1);   }
}

.brand:hover .brand-logo {
  animation: logo-shake 0.5s ease-in-out infinite;
}

@keyframes logo-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20%  { transform: rotate(-3deg) scale(1.05); }
  40%  { transform: rotate(3deg)  scale(1.05); }
  60%  { transform: rotate(-3deg) scale(1.05); }
  80%  { transform: rotate(3deg)  scale(1.05); }
}

.no-scroll { overflow: hidden; }
.brand-name    { display: block; font-weight: 800; font-size: 1.45rem; color: var(--white); line-height: 1.1; }
.brand-tagline { display: block; font-size: .9rem; color: #94a3b8; font-weight: 400; letter-spacing: .04em; }

/* ---- Nav links (desktop) ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
}

.nav-links .mobile-only { display: none; }   /* ocultar ítem "Llamar" dentro del menú en desktop */

.nav-links a {
  color: #cbd5e1;
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: var(--trans);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }

/* ---- CTA button (desktop) ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--accent), #ff3d00);
  color: var(--white);
  font-weight: 700;
  font-size: .88rem;
  padding: 9px 18px;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: var(--trans);
  box-shadow: 0 4px 18px rgba(255,107,43,.35);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,43,.45); }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 12px;
  flex-shrink: 0;
  z-index: 1001;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* X-Animation when active */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: url('assets/hero.jpg') center/cover no-repeat;
  background-color: var(--dark);
  padding-top: 68px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(14,22,36,.92) 0%, rgba(14,22,36,.6) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1160px; margin: 0 auto; padding: 80px 24px;
}
.hero-eyebrow {
  font-size: .9rem; font-weight: 600; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 16px;
  animation: hero-fade-up .7s ease both;
  animation-delay: .15s;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
  animation: hero-fade-up .7s ease both;
  animation-delay: .35s;
}
.highlight {
  background: linear-gradient(90deg, #2196f3, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.05rem; color: #94a3b8; max-width: 520px;
  line-height: 1.7; margin-bottom: 36px;
  animation: hero-fade-up .7s ease both;
  animation-delay: .55s;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: hero-fade-up .7s ease both;
  animation-delay: .75s;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), #1565c0);
  color: var(--white); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(13,110,253,.4);
  transition: var(--trans);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(13,110,253,.5); }
.btn-primary.large { font-size: 1.1rem; padding: 16px 36px; }

.btn-ghost {
  display: inline-flex; align-items: center;
  border: 2px solid rgba(255,255,255,.3); color: var(--white);
  font-weight: 600; font-size: 1rem;
  padding: 12px 26px; border-radius: var(--radius);
  transition: var(--trans);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

.hero-badge {
  position: absolute; right: 80px; bottom: 80px; z-index: 2;
  background: linear-gradient(135deg, var(--accent), #ff3d00);
  color: var(--white); border-radius: 50%;
  width: 110px; height: 110px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(255,107,43,.5);
  animation: pulse 2.5s ease-in-out infinite;
}
.badge-number { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.badge-text   { font-size: .6rem; font-weight: 600; text-align: center; margin-top: 4px; line-height: 1.3; }

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 100px 0; }
.section-dark {
  background: var(--dark);
}

.section-eyebrow {
  font-size: .85rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-eyebrow.light { color: #60a5fa; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.15; color: var(--text); margin-bottom: 14px;
}
.section-title.light { color: var(--white); }

.section-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 560px; line-height: 1.7; margin-bottom: 56px;
}
.section-sub.light { color: #94a3b8; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
#servicios {
  background-color: var(--white);
  background-image: 
    linear-gradient(rgba(13, 110, 253, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 110, 253, 0.015) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg width='240' height='240' viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230d6efd' stroke-width='1.5' stroke-opacity='0.03'%3E%3Cpath d='M30 30 L50 50 M45 35 L35 45'/%3E%3Cpath d='M160 40 L185 40 L172.5 25 Z M160 40 L160 60 L185 60 L185 40'/%3E%3Ccircle cx='40' cy='180' r='10'/%3E%3Cpath d='M40 165 L40 170 M40 190 L40 195 M25 180 L30 180 M50 180 L55 180'/%3E%3Cpath d='M180 160 L170 190 L195 190 L185 220'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px, 60px 60px, 240px 240px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: var(--trans);
  cursor: default;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent, #2196f3);
  z-index: 2;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  border-color: transparent;
}

/* Imagen */
.service-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.service-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.service-card:hover .service-img {
  transform: scale(1.06);
}
.service-badge {
  position: absolute;
  bottom: 12px; right: 14px;
  font-size: 2rem;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* Body */
.service-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; flex: 1;
}
.service-body h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 8px;
  color: var(--text);
}
.service-body p {
  font-size: .92rem; color: var(--muted); line-height: 1.6;
  margin-bottom: 18px; flex: 1;
}
.service-cta {
  font-size: .9rem; font-weight: 700;
  color: var(--accent, #2196f3);
  transition: var(--trans);
  align-self: flex-start;
}
.service-cta:hover { letter-spacing: .04em; }

/* ============================================================
   PROMOTIONS
   ============================================================ */
.section-light { background: #f8fafc; }

.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.promo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: var(--trans);
  position: relative;
  border: 1px solid #e2e8f0;
}

.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13,110,253,.12);
  border-color: var(--primary);
}

.promo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(255,107,43,.3);
}

.promo-img-wrap {
  height: 220px;
  overflow: hidden;
}

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

.promo-card:hover .promo-img {
  transform: scale(1.1);
}

.promo-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.promo-tag {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.promo-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.promo-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.promo-price-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.price-old {
  font-size: 1.1rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-new {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.promo-footer {
  display: flex;
  gap: 12px;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.btn-works {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: #f8fafc;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--trans);
}

.btn-works:hover {
  background: var(--white);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(255,107,43,0.1);
  transform: translateY(-2px);
}

/* ============================================================
   REASONS
   ============================================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.reason-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--trans);
}
.reason-item:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-4px);
}
.reason-icon { font-size: 2.4rem; margin-bottom: 14px; }
.reason-item h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.reason-item p  { font-size: .88rem; color: #94a3b8; line-height: 1.6; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #0d47a1, #1565c0, var(--primary));
  padding: 60px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-title { font-size: 1.7rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.cta-sub   { color: #bfdbfe; font-size: 1rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  font-size: .98rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 32px;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item  { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon  { font-size: 1.5rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.contact-item a, .contact-item span { font-size: 1rem; font-weight: 600; color: var(--primary); }
.contact-item a:hover { text-decoration: underline; }

/* FORM */
.contact-form {
  background: var(--light);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1.5px solid #e2e8f0;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  margin-bottom: 7px; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--text);
  background: var(--white);
  transition: var(--trans);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,110,253,.12); }
.form-group textarea { resize: vertical; }

.btn-primary.full-width { width: 100%; justify-content: center; margin-top: 4px; border: none; cursor: pointer; }

.form-note {
  text-align: center; margin-top: 14px;
  font-size: .9rem; font-weight: 600; color: #16a34a;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark2);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 24px; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { color: var(--white); }
/* El logo del footer NUNCA debe desbordarse — cancela el margin-top del desktop */
.footer-brand .brand-logo { margin-top: 0 !important; height: 46px; width: 46px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.footer-links a { color: #94a3b8; font-size: .9rem; transition: var(--trans); }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: #64748b; font-size: .85rem; }
.footer-copy a { color: #94a3b8; }
.footer-copy a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-badge { display: none; }
}

@media (max-width: 700px) {
  .nav-links, .cta-btn { display: none; }
  .hamburger { display: flex; }
  .nav-inner  { gap: 0; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 68px 0 0 0;
    background: var(--dark); z-index: 998;
    padding: 32px 24px; gap: 8px;
    align-items: flex-start;
  }
  .nav-links.open a { font-size: 1.2rem; padding: 10px 0; }
  .nav-links.open ~ .cta-btn { display: none; }

  .section { padding: 72px 0; }
  .cta-inner { flex-direction: column; align-items: center; text-align: center; }
  .cta-inner .btn-primary { width: 100%; justify-content: center; max-width: 340px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .promo-footer { flex-direction: column; gap: 10px; }
  .promo-footer .btn-primary,
  .promo-footer .btn-ghost   { width: 100%; justify-content: center; text-align: center; }
}

/* ============================================================
   CASE STUDY / TRABAJOS REALIZADOS
   ============================================================ */
.case-hero {
  padding: 100px 0 30px;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(13,110,253,.2);
}
.case-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--primary) 0%, transparent 70%);
  opacity: .15;
}

.case-category {
  display: inline-block;
  background: rgba(13,110,253,.15);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 30px;
  font-weight: 700;
  font-size: .75rem;
  margin-bottom: 12px;
  position: relative;
}

.case-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  max-width: 850px;
  margin: 0 auto;
  letter-spacing: 0.02em;
  position: relative;
  line-height: 1.5;
}

/* Before & After */
.ba-section {
  padding: 80px 0;
  background: var(--white);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.ba-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ba-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 2;
}
.ba-label.after { background: var(--primary); }

.ba-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

@media (max-width: 850px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-img { height: 350px; }
}

/* History & Testimonial */
.client-section {
  padding: 100px 0;
  background: var(--light);
}

.client-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.history-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.stars {
  color: #ffc107;
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rating-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}
.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: -20px; top: -10px;
  font-size: 4rem; opacity: .1;
  font-family: serif;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.client-avatar {
  width: 50px; height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}

/* Staff Reply */
.staff-reply {
  margin-top: 32px;
  padding: 24px;
  background: #f1f5f9;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  position: relative;
}
.reply-header {
  font-weight: 700;
  font-size: .85rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reply-text {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .client-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Case Carousel Styles */
.case-gallery {
  padding: 80px 0;
  background: #0e1624; /* Dark background to highlight photos */
  border-top: 1px solid rgba(255,255,255,0.05);
}

.carousel-container {
  max-width: 900px;
  margin: 40px auto 0;
}

/* Main Display */
.carousel-main {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 0; /* Removing rounded corners */
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0,0,0,0.5);
  background: var(--white);
  border: 15px solid var(--white); /* White printed margin */
}
.carousel-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .5s ease;
}
.carousel-main img.fade { opacity: 0.3; }

/* Navigation Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  color: var(--dark);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--trans);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.carousel-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* Thumbnails */
.carousel-thumbs {
  display: flex;
  gap: 15px;
  margin-top: 24px;
  justify-content: center;
}
.thumb-item {
  width: 100px;
  height: 65px;
  border-radius: 0; /* Removing rounded corners */
  overflow: hidden;
  cursor: pointer;
  border: 4px solid var(--white); /* White thumb margin */
  transition: var(--trans);
  opacity: 0.7;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item:hover { opacity: 1; }
.thumb-item.active {
  border-color: var(--accent); /* Accent color for the active one */
  opacity: 1;
  transform: scale(1.1) translateY(-4px);
  z-index: 5;
}

@media (max-width: 600px) {
  .carousel-thumbs { gap: 8px; overflow-x: auto; justify-content: flex-start; padding: 4px; }
  .thumb-item { flex-shrink: 0; width: 80px; height: 55px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* ============================================================
   GALLERY / PORTAFOLIO (LIST)
   ============================================================ */
.gallery-section {
  padding: 60px 0 100px;
  background: var(--light);
  min-height: 80vh;
}

/* Filter Panel */
.filter-panel {
  background: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
  margin-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  border: 1px solid #e2e8f0;
}

.search-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
  font-size: .95rem;
  transition: var(--trans);
  outline: none;
}
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,110,253,.1); }
.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-group label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
}
.filter-group select {
  padding: 11px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  background: var(--white);
  cursor: pointer;
  transition: var(--trans);
}
.filter-group select:focus { border-color: var(--primary); }

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: var(--trans);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13,110,253,.12);
}

.work-img-wrap {
  height: 230px;
  position: relative;
  overflow: hidden;
}
.work-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.work-card:hover .work-img { transform: scale(1.08); }

.work-cat-tag {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 2;
}

.work-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}
.work-desc {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.work-rating {
  color: #ffc107;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.work-rating .rating-num {
  font-size: 0.75rem;
  color: var(--muted);
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.btn-view-work {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex; align-items: center; gap: 4px;
}
.btn-view-work:hover { text-decoration: underline; }

@media (max-width: 920px) {
  /* ---- Navbar Mobile ---- */
  .nav-inner { height: 62px; padding: 0 16px; overflow: visible; }

  /* Logo pequeño en móvil: sin desbordamiento */
  .brand-logo { height: 46px; width: 46px; border-radius: 10px; margin-top: 0; box-shadow: 0 4px 14px rgba(0,0,0,.35); }

  /* Ocultar links y CTA de escritorio */
  .nav-links        { display: none !important; }
  .nav-inner > .cta-btn { display: none; }

  /* Mostrar hamburguesa */
  .hamburger { display: flex; }

  /* Menú overlay al activar */
  .nav-links.open {
    display: flex !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(14,22,36,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 80px 24px 40px;
    z-index: 1000;
    animation: menu-in .3s ease both;
  }

  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-links.open li        { width: 100%; text-align: center; }
  .nav-links.open a         { font-size: 1.5rem; padding: 14px 30px; font-weight: 700; color: var(--white); display: block; border-radius: 12px; }
  .nav-links.open a:hover   { background: rgba(255,255,255,.08); }

  /* Ítem "Llamar ahora" dentro del menú móvil */
  .nav-links .mobile-only {
    display: inline-flex !important;
    margin-top: 16px;
    font-size: 1rem !important;
    padding: 14px 32px !important;
  }

  /* Sections Responsiveness */
  .section { padding: 70px 0; }
  .section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }

  /* Hero Responsiveness */
  .hero { padding-top: 62px; min-height: auto; }
  .hero-content { padding: 60px 24px 50px; text-align: center; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.3rem); margin-bottom: 16px; }
  .hero-sub { margin: 0 auto 30px; font-size: .95rem; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost  { width: 100%; max-width: 320px; justify-content: center; text-align: center; }
  .hero-badge { display: none; }

  /* Case Hero adjustment: padding reducido en móvil (no aumentado) */
  .case-hero { padding: 90px 0 30px; }
  .case-title { font-size: clamp(1rem, 4vw, 1.2rem); padding: 0 16px; }

  /* Client grid */
  .client-grid { grid-template-columns: 1fr; gap: 32px; }

  /* CTA banner */
  .cta-inner { flex-direction: column; align-items: center; text-align: center; }
  .cta-inner .btn-primary { width: 100%; max-width: 340px; justify-content: center; }
  .cta-title { font-size: 1.4rem; }

  /* Shared Mobile Tweaks */
  .container { padding: 0 16px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 10px 16px; }
}

@media (max-width: 600px) {
  .filter-panel { padding: 16px; flex-direction: column; }
  .search-wrap { min-width: 100%; }
  .filter-group { width: 100%; }
  .filter-group select { flex: 1; width: 100%; }
}

/* ---- Pantallas muy pequeñas (< 480px) ---- */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.6rem, 8vw, 2rem); }
  .hero-eyebrow { font-size: .8rem; }
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: .95rem; margin-bottom: 36px; }

  .testimonial-quote { font-size: 1.05rem; }
  .testimonial-card { padding: 28px 22px; }

  .btn-primary.large { font-size: 1rem; padding: 14px 24px; }

  .ba-img { height: 220px; }

  .work-body { padding: 18px; }
  .work-footer { flex-direction: column; align-items: flex-start; gap: 10px; }

  .promo-body { padding: 20px; }
  .promo-footer { flex-direction: column; gap: 10px; }
  .promo-footer .btn-primary,
  .promo-footer .btn-ghost   { width: 100%; justify-content: center; text-align: center; }

  .reasons-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .reason-item { padding: 24px 16px; }

  .contact-form { padding: 28px 20px; }

  .carousel-thumbs { gap: 6px; }
  .thumb-item { width: 64px; height: 44px; }
}
