/* ============================================
   ALBARIZA DIGITAL — Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:    #1a3353;
  --navy2:   #0f1f33;
  --coral:   #ff5c35;
  --teal:    #00c2a8;
  --sky:     #38bdf8;
  --light:   #f4f8ff;
  --white:   #ffffff;
  --gray:    #64748b;
  --gray-l:  #e8eef7;
  --text:    #1a2030;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(26,51,83,0.10);
  --shadow-l:0 2px 10px rgba(26,51,83,0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1,h2,h3,h4 { font-family: 'Sora', sans-serif; line-height: 1.2; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

/* ── NAV ──────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-l);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--coral); }

.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 500; color: var(--gray);
  transition: all .2s;
}
.nav-links a:hover { background: var(--light); color: var(--navy); }

.nav-cta {
  background: var(--coral) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
}
.nav-cta:hover { background: #e8421e !important; transform: translateY(-1px); }

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

/* ── HERO ─────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 60%, #1a4a6e 100%);
  color: white;
  padding: 100px 5% 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,194,168,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -20%; left: 20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,92,53,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: .5px;
  margin-bottom: 24px;
}
.hero-badge::before { content: '●'; color: var(--teal); font-size: 8px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { color: var(--coral); font-style: normal; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 560px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--coral); color: white;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: all .2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #e8421e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,92,53,.4); }
.btn-outline {
  background: transparent; color: white;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all .2s; cursor: pointer;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap;
}
.stat { border-left: 3px solid var(--teal); padding-left: 16px; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800; color: white; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ── SECTIONS ─────────────────────────────── */
section { padding: 80px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: var(--light); color: var(--navy);
  padding: 4px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 14px; color: var(--navy); }
.section-sub { color: var(--gray); font-size: 1.05rem; max-width: 600px; margin-bottom: 48px; }

/* ── SERVICE BLOCKS ───────────────────────── */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; margin-top: 12px;
}

.block-card {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-l);
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--gray-l);
}
.block-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.block-header {
  padding: 28px 28px 20px;
  display: flex; align-items: center; gap: 14px;
}
.block-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.block-title { font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 700; }
.block-desc { font-size: 0.88rem; color: var(--gray); margin-top: 2px; }

.block-services { padding: 0 28px 28px; }
.block-services li {
  list-style: none; padding: 9px 0;
  border-bottom: 1px solid var(--gray-l);
  font-size: 0.9rem; display: flex; align-items: center; gap: 8px; color: var(--text);
}
.block-services li:last-child { border-bottom: none; }
.block-services li::before { content: '→'; color: var(--coral); font-weight: 700; flex-shrink: 0; }
.block-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 10px 20px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600;
  transition: all .2s;
}

/* Block color themes */
.block-marketing .block-header { background: linear-gradient(135deg, #fff5f2, #fff0eb); }
.block-marketing .block-icon { background: rgba(255,92,53,0.12); }
.block-marketing .block-link { background: var(--coral); color: white; }
.block-marketing .block-link:hover { background: #e8421e; }

.block-ia .block-header { background: linear-gradient(135deg, #f0fffe, #e8f9f7); }
.block-ia .block-icon { background: rgba(0,194,168,0.12); }
.block-ia .block-link { background: var(--teal); color: white; }
.block-ia .block-link:hover { background: #009e87; }

.block-consultoria .block-header { background: linear-gradient(135deg, #f0f6ff, #e8eef9); }
.block-consultoria .block-icon { background: rgba(26,51,83,0.1); }
.block-consultoria .block-link { background: var(--navy); color: white; }
.block-consultoria .block-link:hover { background: var(--navy2); }

/* ── ZONES STRIP ──────────────────────────── */
.zones { background: var(--light); }
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-top: 12px;
}
.zone-card {
  background: white; border-radius: var(--radius);
  padding: 22px 20px; text-align: center;
  border: 2px solid transparent;
  transition: all .2s; box-shadow: var(--shadow-l);
}
.zone-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.zone-icon { font-size: 1.8rem; margin-bottom: 8px; }
.zone-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; color: var(--navy); }
.zone-sub { font-size: 0.78rem; color: var(--gray); margin-top: 3px; }

/* ── FREE CONSULT BANNER ──────────────────── */
.consult-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0f3460 100%);
  color: white; border-radius: 20px;
  padding: 50px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  margin: 0 5% 80px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  position: relative; overflow: hidden;
}
.consult-banner::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(0,194,168,0.15); border-radius: 50%;
}
.consult-text { position: relative; z-index: 1; }
.consult-text h2 { font-size: 1.7rem; margin-bottom: 8px; }
.consult-text p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.consult-form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.consult-form input {
  padding: 12px 16px; border-radius: 8px;
  border: none; outline: none; font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}
.consult-form button {
  padding: 13px; background: var(--coral); color: white;
  border: none; border-radius: 8px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; transition: all .2s;
  font-family: 'Sora', sans-serif;
}
.consult-form button:hover { background: #e8421e; }

/* ── CONTACT FORM ─────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start;
}
.contact-info h2 { font-size: 1.8rem; margin-bottom: 16px; color: var(--navy); }
.contact-info p { color: var(--gray); margin-bottom: 32px; }
.contact-detail {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-l);
  font-size: 0.9rem;
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.form-card {
  background: var(--light); border-radius: 20px;
  padding: 40px; box-shadow: var(--shadow-l);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border-radius: 8px;
  border: 2px solid var(--gray-l); background: white;
  font-size: 0.9rem; font-family: 'Inter', sans-serif;
  transition: border-color .2s; outline: none; color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--coral); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; padding: 15px;
  background: var(--coral); color: white;
  border: none; border-radius: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .2s; margin-top: 4px;
}
.form-submit:hover { background: #e8421e; transform: translateY(-2px); }
.form-note { font-size: 0.78rem; color: var(--gray); text-align: center; margin-top: 10px; }
.form-success {
  display: none; background: #e8faf4; border: 2px solid var(--teal);
  border-radius: 10px; padding: 16px; text-align: center;
  color: var(--navy); font-weight: 600; margin-top: 12px;
}

/* ── GEO PAGE SPECIFIC ────────────────────── */
.geo-hero {
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  color: white; padding: 80px 5% 60px;
}
.geo-hero-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  margin-bottom: 16px; display: flex; gap: 6px; align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: white; }
.geo-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.geo-hero h1 em { color: var(--coral); font-style: normal; }
.geo-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 620px; }

.services-list-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 12px;
}
.service-item {
  background: white; border-radius: var(--radius);
  padding: 22px; border: 1px solid var(--gray-l);
  transition: all .2s; box-shadow: var(--shadow-l);
}
.service-item:hover { border-color: var(--coral); transform: translateY(-3px); }
.service-item-icon { font-size: 1.6rem; margin-bottom: 10px; }
.service-item h3 { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.service-item p { font-size: 0.85rem; color: var(--gray); line-height: 1.5; }

/* ── WHY US ───────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center; padding: 32px 20px;
  border-radius: var(--radius); background: var(--light);
}
.why-icon { font-size: 2.2rem; margin-bottom: 12px; }
.why-card h3 { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.why-card p { font-size: 0.85rem; color: var(--gray); }

/* ── FOOTER ───────────────────────────────── */
footer {
  background: var(--navy2); color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-logo {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem;
  color: white; margin-bottom: 12px;
}
.footer-logo span { color: var(--coral); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Sora', sans-serif; color: white;
  font-size: 0.9rem; font-weight: 700; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 0.84rem; padding: 4px 0;
  color: rgba(255,255,255,0.6); transition: color .2s;
}
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem;
}
.footer-zones { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-zone {
  background: rgba(255,255,255,0.07); padding: 3px 10px;
  border-radius: 4px; font-size: 0.75rem;
}

/* ── PAGE HEADER (inner pages) ────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  color: white; padding: 70px 5% 60px; text-align: center;
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── ALERT/SUCCESS ────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: 8px; margin-top: 12px;
  font-size: 0.88rem; font-weight: 500; display: none;
}
.alert-success { background: #e8faf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fff1f0; color: #9b1c1c; border: 1px solid #fecdd3; }

/* ── SIDE DRAWER OVERLAY (mobile) ─────────── */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-card { padding: 22px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group input,
  .form-group select,
  .form-group textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
  .consult-banner { flex-direction: column; text-align: center; }
  .consult-form { width: 100%; min-width: unset; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .zonas-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* ── BASE: prevent overflow ── */
  html { overflow-x: hidden; }
  body { overflow-x: hidden; max-width: 100vw; box-sizing: border-box; }
  *, *::before, *::after { box-sizing: border-box; }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: 60px; padding: 0 4%;
    z-index: 1100;
  }
  .nav-logo img { height: 34px; }
  body { padding-top: 60px; }

  /* ── HAMBURGER ── */
  .hamburger {
    display: flex; z-index: 1101;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    padding: 0;
  }
  .hamburger span { transition: all 0.3s ease; }
  .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); }

  /* ── SIDE DRAWER ── */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 80vw; max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 1099;
    flex-direction: column;
    padding: 80px 0 32px;
    overflow-y: auto;
    gap: 0;
    list-style: none;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    display: flex !important;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 1px solid var(--gray-l);
    border-radius: 0;
    background: none;
    transition: background 0.15s;
  }
  .nav-links a:hover, .nav-links a:active { background: var(--light); }
  .nav-links .nav-cta {
    margin: 20px 20px 0;
    text-align: center;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    background: var(--coral) !important;
    color: white !important;
    border-bottom: none !important;
    font-size: 1rem !important;
    display: block;
  }

  /* ── HERO ── */
  .hero { padding: 40px 5% 36px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); line-height: 1.15; }
  .hero-sub { font-size: 0.92rem; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns a { width: 100%; text-align: center; padding: 15px; font-size: 0.97rem; }
  .hero-stats > div { flex: 1; }

  /* ── SECTIONS ── */
  .section-inner { padding: 40px 5%; }
  .section-title { font-size: clamp(1.35rem, 6vw, 1.8rem); }

  /* ── GRIDS ── */
  .blocks-grid { grid-template-columns: 1fr; gap: 14px; }
  .services-grid { grid-template-columns: 1fr; gap: 10px; }
  .zonas-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .zona-card { padding: 16px 12px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ── CONSULT BANNER ── */
  .consult-banner {
    flex-direction: column; text-align: center;
    padding: 28px 20px; gap: 18px;
    margin: 0 4% 50px;
  }
  .consult-form { width: 100%; min-width: unset; }
  .consult-form input { width: 100%; }
  .consult-form button { width: 100%; }

  /* ── CONTACT & ALL FORMS ── */
  .form-row { grid-template-columns: 1fr; }
  input, select, textarea, button {
    max-width: 100%;
  }
  .contact-form, .consult-form {
    width: 100%;
    overflow: hidden;
  }

  /* ── FOOTER ── */
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  footer { padding: 36px 5% 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; font-size: 0.78rem; }
  .footer-zones { flex-wrap: wrap; gap: 6px; }

  /* ── PAGE HEADER ── */
  .page-header { padding: 40px 5% 32px; }
  .page-header h1 { font-size: clamp(1.35rem, 7vw, 1.9rem); }
  .page-header p { font-size: 0.9rem; }

  /* ── BLOG ── */
  .blog-grid { grid-template-columns: 1fr !important; }
  .article-hero { padding: 40px 5% 32px; }
  .article-cta { padding: 24px 18px; }
}
