/* =====================================================
   VIRTEK AI — Global Design System v2
   Inspired by: cocktailmarketing.com.mx
   Style: Dark hero + white alternating sections
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
  /* Backgrounds */
  --bg-dark:       #0a0a0f;
  --bg-dark-2:     #0f0f1a;
  --bg-white:      #ffffff;
  --bg-light:      #F7F8FC;
  --bg-light-2:    #EFF1F8;

  /* Brand from logo — navy base */
  --navy:          #1E2A6E;
  --navy-dark:     #131c4e;
  --navy-light:    #2A3D99;

  /* Accent colors */
  --blue:          #1A6FFF;
  --blue-light:    #5095FF;
  --violet:        #7B2FFF;
  --gold:          #F59E0B;

  /* Text on dark backgrounds */
  --text-on-dark:          #FFFFFF;
  --text-secondary-dark:   rgba(255,255,255,0.65);
  --text-muted-dark:       rgba(255,255,255,0.4);

  /* Text on light backgrounds */
  --text-on-light:         #0a0a0f;
  --text-secondary-light:  #4A5568;
  --text-muted-light:      #94A3B8;

  /* Borders */
  --border-dark:   rgba(255,255,255,0.08);
  --border-light:  #E2E8F0;
  --border-navy:   rgba(26,111,255,0.2);

  /* Gradients */
  --grad-blue:     linear-gradient(135deg, var(--blue), var(--violet));
  --grad-navy:     linear-gradient(135deg, var(--navy), var(--navy-light));
  --grad-gold:     linear-gradient(135deg, var(--gold), #E07B00);

  /* Typography */
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', sans-serif;

  /* Spacing */
  --section-py:    100px;
  --container:     1200px;

  /* Radius */
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-pill:   100px;
}

/* ---- RESET ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body { font-family:var(--font-sans); background:var(--bg-white); color:var(--text-on-light); line-height:1.7; overflow-x:hidden; }
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; transition:color 0.3s; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
ul { list-style:none; }

/* ---- CONTAINER ---- */
.container { width:100%; max-width:var(--container); margin:0 auto; padding:0 28px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family:var(--font-serif); line-height:1.2; font-weight:600; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { line-height:1.8; }

/* Italic accent in headings */
.italic { font-style:italic; }

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SECTION BACKGROUNDS ---- */
.section-dark  { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark  p { color: var(--text-secondary-dark); }
.section-navy  { background: var(--navy); color: var(--text-on-dark); }
.section-navy  p { color: rgba(255,255,255,0.75); }
.section-white { background: var(--bg-white); color: var(--text-on-light); }
.section-white p { color: var(--text-secondary-light); }
.section-light { background: var(--bg-light); color: var(--text-on-light); }
.section-light p { color: var(--text-secondary-light); }

/* ---- SECTION SHARED ---- */
section { padding: var(--section-py) 0; position:relative; }
.section-header { text-align:center; margin-bottom:64px; }
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-label-dark { color: var(--blue-light); }
.section-header p { font-size:1.05rem; max-width:580px; margin:16px auto 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-dark); transform:translateY(-2px); box-shadow:0 8px 28px rgba(30,42,110,0.35); }

.btn-primary-blue {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,111,255,0.3);
}
.btn-primary-blue:hover { transform:translateY(-2px); box-shadow:0 8px 32px rgba(26,111,255,0.45); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { border-color:#fff; background:rgba(255,255,255,0.08); transform:translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  color: var(--text-on-light);
  border: 1.5px solid var(--border-light);
}
.btn-outline-dark:hover { border-color:var(--navy); color:var(--navy); transform:translateY(-2px); }

.btn-lg { padding: 17px 38px; font-size: 0.95rem; }
.btn-text {
  display:inline-flex; align-items:center; gap:6px;
  font-weight:600; font-size:0.9rem;
  color:var(--navy); padding:0;
  transition:gap 0.2s;
}
.btn-text:hover { gap:10px; }
.btn-text-light { color:#fff; }
.btn-text-blue { color:var(--blue); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}
.navbar.dark-nav { color: #fff; }
.navbar.light-nav { color: var(--text-on-light); }

.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar.scrolled .nav-links a { color: var(--text-secondary-light); }
.navbar.scrolled .nav-links a:hover { color: var(--navy); }
.navbar.scrolled .nav-logo img { filter: none; }
.navbar.scrolled .nav-hamburger span { background: var(--text-on-light); }
.navbar.scrolled .nav-cta a.btn-text-light { color: var(--navy); }
.navbar.scrolled .nav-cta a.btn-outline-white {
  color: var(--navy);
  border-color: var(--navy);
}
.navbar.scrolled .nav-cta a.btn-outline-white:hover {
  background: var(--navy);
  color: #fff;
}

.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:40px; }
.nav-logo { display:flex; align-items:center; flex-shrink:0; }
.nav-logo img { height:36px; width:auto; filter:brightness(0) invert(1); transition:filter 0.4s; }

.nav-links { display:flex; align-items:center; gap:4px; }
.nav-links a {
  padding:8px 16px; border-radius:var(--radius-pill);
  font-size:0.88rem; font-weight:500;
  color:rgba(255,255,255,0.8);
  transition:all 0.3s;
}
.nav-links a:hover, .nav-links a.active { color:#fff; background:rgba(255,255,255,0.1); }

.nav-cta { display:flex; align-items:center; gap:12px; }

.nav-hamburger { display:none; flex-direction:column; gap:5px; padding:8px; cursor:pointer; }
.nav-hamburger span { display:block; width:24px; height:2px; background:#fff; border-radius:2px; transition:all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity:0; }
.nav-hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

.nav-mobile {
  display:none; position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(10,10,15,0.98); backdrop-filter:blur(24px);
  z-index:999; flex-direction:column; align-items:center; justify-content:center; gap:28px;
}
.nav-mobile.open { display:flex; }
.nav-mobile a { font-family:var(--font-serif); font-size:1.8rem; font-weight:600; color:rgba(255,255,255,0.7); transition:color 0.3s; }
.nav-mobile a:hover { color:#fff; }
.nav-mobile-close { display:none; }

/* ---- HERO GLOWS ---- */
.hero-flare {
  position:absolute; border-radius:50%; filter:blur(100px); pointer-events:none; z-index:0;
}

/* ---- IMAGE FRAME ---- */
.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
}
.img-frame img { width:100%; height:100%; object-fit:cover; display:block; }
.img-placeholder {
  width:100%; aspect-ratio:4/3;
  background: linear-gradient(135deg, #EDF2F7, #E2E8F0);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; color:var(--text-muted-light); font-size:0.85rem; font-weight:500;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-light);
  transition: all 0.3s;
}
.img-placeholder:hover { border-color:var(--blue); }
.img-placeholder-icon { font-size:2.5rem; opacity:0.4; }
.img-placeholder-text { font-size:0.8rem; color:var(--text-muted-light); text-align:center; }

/* Dark version */
.img-placeholder-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
}
.img-placeholder-dark:hover { border-color:rgba(255,255,255,0.25); }

/* ---- SERVICE CARD ---- */
.service-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.service-card:hover { transform:translateY(-4px); box-shadow:0 12px 40px rgba(30,42,110,0.1); border-color:rgba(26,111,255,0.25); }
.service-card-icon {
  width: 56px; height:56px; border-radius: var(--radius-md);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.4rem; margin-bottom:20px;
}
.service-card h3 { font-size:1.25rem; margin-bottom:12px; color:var(--text-on-light); }
.service-card p { font-size:0.9rem; margin-bottom:20px; }

/* ---- STATS ---- */
.stat-big {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight:700;
}

/* ---- DIVIDER ---- */
.divider { width:48px; height:3px; border-radius:2px; margin:16px 0; }
.divider-blue { background: var(--grad-blue); }
.divider-white { background: rgba(255,255,255,0.3); }
.divider-center { margin:16px auto; }

/* ---- SCROLL ANIMATIONS ---- */
.fade-up { opacity:0; transform:translateY(32px); transition:opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }
.fade-in { opacity:0; transition:opacity 0.8s ease; }
.fade-in.visible { opacity:1; }
.slide-left { opacity:0; transform:translateX(-32px); transition:opacity 0.7s ease, transform 0.7s ease; }
.slide-left.visible { opacity:1; transform:translateX(0); }
.slide-right { opacity:0; transform:translateX(32px); transition:opacity 0.7s ease, transform 0.7s ease; }
.slide-right.visible { opacity:1; transform:translateX(0); }

/* ---- GRIDS ---- */
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position:fixed; bottom:32px; right:32px; z-index:999;
  width:58px; height:58px; background:#25D366; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 20px rgba(37,211,102,0.45);
  transition:all 0.3s ease;
  animation: float-bounce 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform:scale(1.1); box-shadow:0 8px 28px rgba(37,211,102,0.6); }
.whatsapp-float svg { width:28px; height:28px; fill:#fff; }
@keyframes float-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ---- FOOTER ---- */
.footer { padding:72px 0 32px; border-top:1px solid var(--border-light); background:var(--bg-white); }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-logo img { height:32px; }
.footer-brand p { margin:16px 0; font-size:0.88rem; color:var(--text-secondary-light); max-width:260px; }
.footer-col h5 { font-family:var(--font-sans); font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.12em; color:var(--text-muted-light); margin-bottom:20px; }
.footer-col ul li { margin-bottom:10px; }
.footer-col ul li a { color:var(--text-secondary-light); font-size:0.88rem; transition:color 0.3s; }
.footer-col ul li a:hover { color:var(--navy); }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; padding-top:28px; border-top:1px solid var(--border-light); font-size:0.82rem; color:var(--text-muted-light); }

/* ---- FORM ---- */
.form-group { margin-bottom:18px; }
.form-group label { display:block; font-size:0.82rem; font-weight:600; color:var(--text-secondary-light); margin-bottom:7px; text-transform:uppercase; letter-spacing:0.06em; }
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:13px 18px;
  background:#fff; border:1.5px solid var(--border-light);
  border-radius:var(--radius-sm); color:var(--text-on-light);
  font-family:var(--font-sans); font-size:0.94rem;
  transition:all 0.3s; outline:none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color:var(--navy); box-shadow:0 0 0 3px rgba(30,42,110,0.08);
}
.form-group textarea { resize:vertical; min-height:120px; }
.form-group select option { background:#fff; }

/* Dark form inputs */
.form-dark .form-group label { color:rgba(255,255,255,0.7); }
.form-dark .form-group input,
.form-dark .form-group select,
.form-dark .form-group textarea {
  background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.12); color:#fff;
}
.form-dark .form-group input::placeholder,
.form-dark .form-group textarea::placeholder { color:rgba(255,255,255,0.35); }
.form-dark .form-group input:focus,
.form-dark .form-group select:focus,
.form-dark .form-group textarea:focus {
  border-color:rgba(255,255,255,0.4); box-shadow:0 0 0 3px rgba(255,255,255,0.06);
}

/* ---- TOAST ---- */
.toast {
  position:fixed; bottom:110px; right:32px;
  background:rgba(34,197,94,0.12); border:1px solid rgba(34,197,94,0.35);
  border-radius:var(--radius-md); padding:16px 22px;
  display:flex; align-items:center; gap:10px;
  font-weight:600; color:#16A34A; backdrop-filter:blur(20px);
  z-index:9999; transform:translateX(200%); transition:transform 0.4s ease;
}
.toast.show { transform:translateX(0); }

/* ---- RESPONSIVE ---- */
@media(max-width:1024px){
  :root{ --section-py:80px; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:768px){
  :root{ --section-py:64px; }
  .grid-2,.grid-3{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns:1fr; }
  .nav-links,.nav-cta{ display:none; }
  .nav-hamburger{ display:flex; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .footer-bottom{ flex-direction:column; gap:10px; text-align:center; }
}
