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

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999; width: 0%;
  background: linear-gradient(to right, var(--brown), var(--gold));
  box-shadow: 0 0 10px rgba(245,158,11,.6);
  transition: width .08s linear;
  pointer-events: none;
}

/* ─── PAGE LOAD FADE ─── */
body { animation: pageFadeIn .45s ease both; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── HERO STAGGER (home & interior pages) ─── */
.hero-badge       { animation: fadeUp .6s .1s  both; }
.hero h1          { animation: fadeUp .6s .25s both; }
.hero p           { animation: fadeUp .6s .4s  both; }
.hero-btns        { animation: fadeUp .6s .55s both; }
.hero-circle      { animation: fadeRight .7s .3s both; }
.hero-float       { animation: fadeUp .6s .7s  both; }
.page-hero .section-label { animation: fadeUp .5s .05s both; }
.page-hero h1     { animation: fadeUp .6s .15s both; }
.page-hero p      { animation: fadeUp .6s .3s  both; }
@keyframes fadeUp    { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
@keyframes fadeRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:none; } }

/* ─── RIPPLE KEYFRAME ─── */
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ─── ENHANCED CARD HOVER ─── */
.product-card {
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s !important;
}
.product-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 48px rgba(14,45,92,.18) !important;
  border-color: rgba(30,92,158,.3) !important;
}
.value-card, .team-card {
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s !important;
}
.value-card:hover, .team-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 14px 36px rgba(14,45,92,.14) !important;
}
.sector-card { transition: transform .25s ease, box-shadow .25s !important; }
.sector-card:hover { transform: translateX(8px) !important; }
.contact-method { transition: transform .25s ease, box-shadow .25s, background .2s !important; }
.use-case { transition: transform .25s ease, box-shadow .25s !important; }

/* ─── BUTTON MICRO-INTERACTIONS ─── */
.btn-primary, .btn-secondary, .btn-accent { transition: background .2s, transform .18s, box-shadow .2s !important; }
.btn-primary:active, .btn-accent:active, .checkout-btn:active { transform: scale(.97) !important; }

/* ─── NAV LOGO HOVER ─── */
.nav-logo img { transition: opacity .2s, transform .25s ease; }
.nav-logo:hover img { opacity: .85; transform: scale(.96); }

/* ─── TICKER PAUSE ON HOVER ─── */
.ticker:hover .ticker-inner { animation-play-state: paused; }

/* ─── FAQ OPEN HIGHLIGHT ─── */
.faq-item { transition: box-shadow .25s; }
.faq-item.open { box-shadow: 0 8px 28px rgba(14,45,92,.12); }

/* ─── CART PANEL SPRING ─── */
.cart-panel { transition: transform .38s cubic-bezier(.34,1.3,.64,1) !important; }

/* ─── FORM INPUT FOCUS GLOW ─── */
.form-group input, .form-group select, .form-group textarea {
  transition: border-color .2s, box-shadow .2s, background .2s;
}

/* ─── FILTER BUTTONS ─── */
.filter-btn { transition: background .2s, border-color .2s, color .2s, transform .15s; }
.filter-btn:active { transform: scale(.96); }

/* ─── STAT NUMBER PULSE (on counter finish) ─── */
@keyframes statPop { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.08); } }
.stat-pop { animation: statPop .35s ease; }

:root {
  --cream:   #f0f5fa;
  --warm:    #dde8f2;
  --brown:   #1e5c9e;
  --brown-l: #2d7dd2;
  --brown-d: #0d2d5c;
  --gold:    #f59e0b;
  --text:    #1a2436;
  --gray:    #4a607c;
  --white:   #ffffff;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(14,45,92,.12);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(240,245,250,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30,92,158,.15);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: var(--shadow); }

.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { display: block; height: 52px; width: auto; max-width: 210px; object-fit: contain; }
@media (max-width: 768px) { .nav-logo img { height: 38px; max-width: 160px; } }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--gray);
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--brown); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover { color: var(--brown); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brown); }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.cart-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--brown); color: #fff; border: none; cursor: pointer;
  padding: .5rem 1.1rem; border-radius: 50px; font-size: .85rem; font-weight: 500;
  transition: background .2s, transform .15s;
}
.cart-btn:hover { background: var(--brown-l); transform: translateY(-1px); }
.cart-btn svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: var(--cream); flex-direction: column; align-items: center;
  justify-content: center; gap: 2rem;
  display: flex;
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a { font-size: 1.4rem; font-weight: 600; color: var(--brown); text-decoration: none; }

/* ─── SHARED SECTION STYLES ─── */
.section-label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--brown-d); line-height: 1.2; margin-bottom: 1rem; }
.section-sub { font-size: 1rem; color: var(--gray); line-height: 1.7; max-width: 520px; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--brown); color: #fff; text-decoration: none;
  padding: .85rem 1.8rem; border-radius: 50px; font-weight: 600; font-size: .95rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(30,92,158,.3); border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--brown-l); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30,92,158,.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 2px solid var(--brown); color: var(--brown); text-decoration: none;
  padding: .83rem 1.8rem; border-radius: 50px; font-weight: 600; font-size: .95rem;
  background: transparent; transition: .2s;
}
.btn-secondary:hover { background: var(--brown); color: #fff; }
.btn-accent {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--gold); color: var(--brown-d); text-decoration: none;
  padding: .85rem 1.8rem; border-radius: 50px; font-weight: 700; font-size: .95rem;
  transition: background .2s, transform .15s; border: none; cursor: pointer;
}
.btn-accent:hover { background: #e08e00; transform: translateY(-2px); }

/* ─── PAGE HERO BANNER (interior pages) ─── */
.page-hero {
  padding: 120px 5% 60px;
  background: linear-gradient(135deg, #0d2d5c 0%, #1e5c9e 60%, #2d7dd2 100%);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(245,158,11,.12) 0%, transparent 70%);
}
.page-hero .section-label { color: var(--gold); }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff; margin-bottom: .8rem; position: relative;
}
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto; line-height: 1.7; position: relative; }

/* ─── TICKER ─── */
.ticker { background: var(--brown-d); color: var(--white); overflow: hidden; padding: 12px 0; }
.ticker-inner { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: .5rem; white-space: nowrap; padding: 0 2.5rem; font-size: .85rem; font-weight: 500; }
.ticker-item::before { content: '⚙'; color: var(--gold); }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ─── SERVICE CARDS ─── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 320px)); gap: 1.5rem; justify-content: center; max-width: 1100px; margin: 0 auto; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s; cursor: default;
  border: 1px solid rgba(30,92,158,.12);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(14,45,92,.15); }
.product-img-wrap { overflow: hidden; position: relative; }
.product-img {
  width: 100%; aspect-ratio: 16/9;
  display: block; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #dde8f2, #b8cfe8);
  transition: transform .3s;
}
.product-card:hover .product-img { transform: scale(1.04); }

/* Foto real del servicio */
.product-img .card-photo {
  width: 100%; height: 100%; object-fit: cover;
  display: block; position: absolute; inset: 0;
  transition: transform .4s ease;
}
.product-card:hover .card-photo { transform: scale(1.06); }

/* Placeholder cuando no hay foto */
.card-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; background: linear-gradient(135deg, #dde8f2, #b8cfe8);
  border: 2.5px dashed rgba(30,92,158,.25);
  color: var(--gray); text-align: center; padding: 1rem;
  pointer-events: none;
}
.card-photo-placeholder .ph-icon   { font-size: 2.2rem; opacity: .6; }
.card-photo-placeholder .ph-label  { font-size: .75rem; font-weight: 700; color: var(--brown); text-transform: uppercase; letter-spacing: .07em; }
.card-photo-placeholder .ph-hint   { font-size: .7rem; color: var(--gray); opacity: .8; word-break: break-all; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--brown-d);
  font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 50px;
  letter-spacing: .05em; text-transform: uppercase;
}
.product-body { padding: 1.3rem; }
.product-name { font-family: 'Playfair Display', serif; font-size: 1.08rem; font-weight: 700; color: var(--brown-d); margin-bottom: .4rem; }
.product-desc { font-size: .84rem; color: var(--gray); margin-bottom: 1rem; line-height: 1.55; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: .8rem; font-weight: 600; color: var(--brown); background: var(--warm); padding: .25rem .7rem; border-radius: 50px; }
.add-cart {
  background: var(--brown); color: #fff; border: none; cursor: pointer;
  height: 34px; padding: 0 .9rem; border-radius: 50px; font-size: .78rem; font-weight: 600;
  display: flex; align-items: center; gap: .35rem;
  transition: background .2s, transform .15s;
}
.add-cart:hover { background: var(--brown-l); transform: scale(1.05); }

/* ─── QUOTE PANEL ─── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100vw;
  background: var(--white); z-index: 201; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 1.5rem;
}
.cart-panel.open { transform: translateX(0); }
.cart-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.cart-panel-header h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--brown-d); }
.cart-panel-header p  { font-size: .82rem; color: var(--gray); margin-bottom: 1.2rem; }
.close-cart { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--gray); align-self: flex-start; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--gray); gap: 1rem; font-size: .95rem; text-align: center; }
.cart-empty .icon { font-size: 3rem; }
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #e4eef8; }
.cart-item-emoji { font-size: 2rem; width: 52px; height: 52px; background: var(--cream); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info strong { display: block; font-size: .9rem; color: var(--brown-d); }
.cart-item-info .price { font-size: .8rem; color: var(--gray); margin-top: .2rem; }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--brown); background: transparent; cursor: pointer; font-size: .9rem; color: var(--brown); display: flex; align-items: center; justify-content: center; transition: .15s; }
.qty-btn:hover { background: var(--brown); color: #fff; }
.cart-item-qty span { font-size: .9rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-footer { border-top: 1px solid #e4eef8; padding-top: 1.2rem; margin-top: .5rem; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; color: var(--brown-d); }
.checkout-btn {
  width: 100%; padding: .9rem; background: var(--brown); color: var(--white);
  border: none; border-radius: 50px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.checkout-btn:hover { background: var(--brown-l); }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--brown-d); color: var(--white);
  padding: .7rem 1.4rem; border-radius: 50px; font-size: .88rem; font-weight: 500;
  z-index: 300; opacity: 0; transition: all .35s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── FOOTER ─── */
footer { background: var(--brown-d); color: rgba(255,255,255,.75); padding: 60px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand .logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); font-weight: 700; line-height: 1.2; }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: .8rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: .04em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-socials { display: flex; gap: .8rem; margin-top: 1.2rem; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-size: 1rem; color: var(--white); transition: background .2s;
}
.social-link svg { width:18px; height:18px; display:block; }
.social-link:hover { background: rgba(255,255,255,.22); }
.social-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color:transparent; }
.social-ig:hover { opacity:.85; background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888) !important; }
.social-wa { background: #25D366; border-color:transparent; }
.social-wa:hover { background:#1da851 !important; }
.social-mail:hover { background: var(--gold) !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }

/* ─── RESPONSIVE ─── */
@media(max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── WHATSAPP FLOATING BUTTON ─── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,.5);
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
  animation: waPulse 2.8s ease-in-out infinite;
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.whatsapp-float:hover {
  transform: scale(1.13);
  box-shadow: 0 6px 28px rgba(37,211,102,.65);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 4px 18px rgba(37,211,102,.5), 0 0 0 10px rgba(37,211,102,.12); }
}
@media(max-width: 600px) {
  .whatsapp-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
