/* ============================================
   index.css — Estilos Corporativos DIP (Light Theme)
   Desarrollo Integral de Proyectos
   Estructuras • Cálculo • Diseño • Consultoría
   ============================================ */

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

:root {
  --color-bg-base: #f8fafc;
  --color-bg-card: #ffffff;
  --color-navy-dark: #071220;
  --color-navy-base: #0a192f;
  --color-navy-card: #0d223d;
  --color-gold-light: #fce08b;
  --color-gold-base: #b38728;
  --color-gold-accent: #c59b27;
  --color-gold-dark: #8c6018;
  --color-border-light: #e2e8f0;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
}

/* Soporte y optimización para iPhone y móviles (iOS Safe Areas & Touch) */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.heading-font {
  font-family: 'Montserrat', sans-serif;
}

.code-font {
  font-family: 'Fira Code', monospace;
}

/* Prevenir auto-zoom de iOS Safari en inputs al hacer focus (font-size >= 16px) */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Trama sutil de ingeniería sobre fondo claro */
.bg-grid-pattern-light {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(10, 25, 47, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 25, 47, 0.04) 1px, transparent 1px);
}

@media (min-width: 768px) {
  .bg-grid-pattern-light {
    background-size: 40px 40px;
  }
}

/* Metallic Gold text y gradientes en fondo claro */
.gold-gradient-text {
  background: linear-gradient(135deg, #c59b27 0%, #b38728 50%, #8c6018 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-btn {
  background: linear-gradient(135deg, #f6d365 0%, #d4af37 50%, #b8860b 100%);
  color: #071220;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(179, 135, 40, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.gold-gradient-btn:active {
  transform: scale(0.98);
  opacity: 0.95;
}

@media (hover: hover) {
  .gold-gradient-btn:hover {
    background: linear-gradient(135deg, #fae294 0%, #e5be48 50%, #ca961b 100%);
    box-shadow: 0 6px 24px rgba(179, 135, 40, 0.35);
    transform: translateY(-2px);
  }
}

/* Tarjetas de servicios en fondo claro */
.service-card-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (hover: hover) {
  .service-card-light:hover {
    border-color: #c59b27;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(10, 25, 47, 0.08);
  }
}

/* Tarjeta Pilar en Light Theme */
.pillar-card-light {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

@media (min-width: 640px) {
  .pillar-card-light {
    padding: 1.75rem;
  }
}

.pillar-card-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b38728, #f6d365, #b38728);
  opacity: 0.8;
}

@media (hover: hover) {
  .pillar-card-light:hover {
    transform: translateY(-4px);
    border-color: #c59b27;
    box-shadow: 0 14px 30px rgba(10, 25, 47, 0.09), 0 0 15px rgba(197, 155, 39, 0.1);
  }
}

/* Marco del Showcase Hero en Fondo Claro */
.hero-banner-frame-light {
  position: relative;
  border-radius: 1.25rem;
  padding: 3px;
  background: linear-gradient(135deg, rgba(197, 155, 39, 0.6) 0%, rgba(10, 25, 47, 0.15) 50%, rgba(197, 155, 39, 0.4) 100%);
  box-shadow: 0 12px 35px rgba(10, 25, 47, 0.1);
}

/* Marco para los Códigos QR */
.qr-frame-light {
  background: #ffffff;
  padding: 0.85rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(10, 25, 47, 0.08);
  border: 2px solid #d4af37;
}

/* Desplazamiento táctil en contenedor de código */
.code-scroll-touch {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Barra de desplazamiento personalizada */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b38728;
}
