/* ============================================================
   CONSULTORA GUALCO — Estilos globales
   ============================================================ */

/* === VARIABLES === */
:root {
  --dark-blue: #1F3864;
  --mid-blue: #2E5F9E;
  --light-blue: #D6E4F0;
  --accent-blue: #EBF4FD;
  --green: #1A7A4A;
  --light-green: #E8F5EE;
  --gold: #856404;
  --gray: #6C6C6C;
  --light-gray: #F7F9FC;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --nav-h: 72px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mid-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--dark-blue); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { color: var(--gray); line-height: 1.75; }
.lead { font-size: 1.15rem; color: var(--gray); max-width: 640px; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid-blue);
  background: var(--accent-blue);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* === LAYOUT === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.text-center { text-align: center; }
.text-center .lead { margin: 0 auto; }
.bg-light { background: var(--light-gray); }
.bg-dark { background: var(--dark-blue); }
.bg-dark h2, .bg-dark h3, .bg-dark p { color: rgba(255,255,255,0.9); }

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-icon { width: 38px; height: 38px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text .brand-main {
  font-size: 1.05rem; font-weight: 700; color: var(--dark-blue); letter-spacing: 0.5px;
}
.nav-logo-text .brand-sub {
  font-size: 0.65rem; color: var(--mid-blue); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--gray); font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--dark-blue); background: var(--accent-blue); text-decoration: none;
}
.nav-cta {
  background: var(--green); color: var(--white) !important;
  padding: 9px 20px !important; border-radius: 8px !important;
  font-weight: 600 !important; font-size: 0.875rem !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: #145e38 !important; }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 6px; color: var(--dark-blue);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: currentColor;
  margin: 4px 0; transition: 0.2s;
}
.nav-mobile {
  display: none; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px; gap: 4px;
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text); font-size: 1rem; font-weight: 500;
  padding: 12px 16px; border-radius: 8px; display: block;
  transition: background 0.15s;
}
.nav-mobile a:hover { background: var(--accent-blue); text-decoration: none; }
.nav-mobile .nav-cta {
  background: var(--green) !important; color: var(--white) !important;
  text-align: center; margin-top: 8px;
}
.page-top { padding-top: var(--nav-h); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 9px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: #145e38; border-color: #145e38; color: var(--white); }
.btn-secondary { background: transparent; color: var(--dark-blue); border-color: var(--dark-blue); }
.btn-secondary:hover { background: var(--dark-blue); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--dark-blue) 0%, #2a4d8e 100%);
  padding: calc(var(--nav-h) + 64px) 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9);
  padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
}
.hero-badge::before { content: '✓'; color: #6FCF97; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 32px; max-width: 360px; width: 100%;
  backdrop-filter: blur(8px);
}
.hero-card-title {
  color: rgba(255,255,255,0.6); font-size: 0.75rem; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 20px;
}
.hero-stat { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-stat:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.hero-stat-num { font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* === STATS BAR === */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border);
}
.stat-item {
  text-align: center; padding: 8px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--dark-blue); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }

/* === CARDS === */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.4rem;
}
.card-icon-blue { background: var(--accent-blue); }
.card-icon-green { background: var(--light-green); }
.card-icon-gold { background: #FFF8E1; }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { font-size: 0.9rem; }
.card-price {
  display: inline-block; margin-top: 16px; padding: 5px 14px;
  background: var(--light-green); color: var(--green);
  border-radius: 20px; font-size: 0.8rem; font-weight: 700;
}
.card-tag {
  display: inline-block; padding: 3px 10px;
  background: var(--accent-blue); color: var(--mid-blue);
  border-radius: 4px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 12px;
}

/* === HOW IT WORKS === */
.steps { position: relative; }
.step { display: flex; gap: 24px; margin-bottom: 40px; }
.step:last-child { margin-bottom: 0; }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 50%; background: var(--dark-blue);
  color: var(--white); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-content h3 { margin-bottom: 6px; }

/* === SERVICES PAGE === */
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card h3 { color: var(--dark-blue); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; flex-grow: 1; }
.service-includes {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--gray);
}
.service-includes li { padding: 4px 0; display: flex; gap: 8px; align-items: flex-start; }
.service-includes li::before { content: '→'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.service-price-badge {
  margin-top: 18px; padding: 8px 14px;
  background: var(--accent-blue); border-radius: 8px;
  font-size: 0.82rem; color: var(--mid-blue); font-weight: 600;
}
.service-free-badge {
  background: var(--light-green); color: var(--green);
}

/* === ABOUT PAGE === */
.about-photo-placeholder {
  background: var(--accent-blue); border-radius: var(--radius-lg);
  aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--mid-blue);
}
.value-item { display: flex; gap: 16px; margin-bottom: 28px; }
.value-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--accent-blue); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1.2rem;
}
.value-item h4 { color: var(--dark-blue); margin-bottom: 4px; }
.value-item p { font-size: 0.88rem; }

/* === CONTACT / FORM === */
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--dark-blue); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.9rem; color: var(--text);
  background: var(--white); transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mid-blue); box-shadow: 0 0 0 3px rgba(46,95,158,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group.required label::after { content: ' *'; color: #E53E3E; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none; background: var(--light-green); border: 1px solid var(--green);
  border-radius: 8px; padding: 16px 20px; color: var(--green);
  font-weight: 500; text-align: center; margin-top: 16px;
}
.contact-info { padding: 32px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-item-icon {
  width: 44px; height: 44px; background: var(--accent-blue);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item h4 { font-size: 0.85rem; color: var(--gray); margin-bottom: 2px; }
.contact-item p { font-size: 0.95rem; color: var(--dark-blue); font-weight: 500; }
.wa-button {
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white) !important;
  padding: 14px 24px; border-radius: 10px; font-weight: 700;
  transition: background 0.15s; text-decoration: none;
  justify-content: center; margin-top: 8px;
}
.wa-button:hover { background: #1da851; text-decoration: none; }

/* === BLOG === */
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-thumb {
  aspect-ratio: 16/9; background: var(--accent-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.blog-body { padding: 24px; }
.blog-meta { font-size: 0.78rem; color: var(--gray); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card p { font-size: 0.87rem; }
.blog-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--mid-blue); font-size: 0.85rem; font-weight: 600;
  margin-top: 14px;
}
.coming-soon-banner {
  background: var(--light-gold, #FFF8E1); border: 1px solid #F6CC6D;
  border-radius: var(--radius); padding: 16px 24px;
  color: var(--gold); font-weight: 500; text-align: center;
  margin-bottom: 40px;
}

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(135deg, var(--dark-blue) 0%, #2a4d8e 100%);
  padding: calc(var(--nav-h) + 48px) 0 56px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.78); max-width: 560px; }

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--dark-blue), #2a4d8e);
  padding: 72px 0; text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.78); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* === TESTIMONIAL === */
.testimonial {
  background: var(--accent-blue); border-radius: var(--radius-lg);
  padding: 36px; border-left: 4px solid var(--mid-blue);
}
.testimonial-text { font-size: 1.1rem; color: var(--dark-blue); font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { font-weight: 700; color: var(--dark-blue); font-size: 0.9rem; }
.testimonial-role { font-size: 0.82rem; color: var(--gray); }

/* === FOOTER === */
.footer {
  background: var(--dark-blue); padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 0.88rem; margin-top: 14px; max-width: 260px; }
.footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.62); font-size: 0.88rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 700;
  transition: background 0.15s;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); text-decoration: none; color: var(--white); }

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: var(--accent-blue); border: 1px solid var(--light-blue);
  border-left: 4px solid var(--mid-blue);
  border-radius: var(--radius); padding: 24px 28px;
}
.highlight-box h4 { color: var(--dark-blue); margin-bottom: 8px; }
.highlight-box p { font-size: 0.9rem; }

/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; flex-direction: column; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 56px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}
