/* 
  SigTech - Style Guide & Design System
  Built for SigTech SpA Corporate Website
*/

:root {
  /* Colors */
  --color-primary: #0a1c3e;
  --color-primary-light: #153163;
  --color-accent: #3b82f6;
  --color-text-main: #1f2937;
  --color-text-muted: #6b7280;
  --color-white: #ffffff;
  --color-bg-light: #f8fafc;
  --color-border: #e5e7eb;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --space-unit: 1rem;
  --section-padding: 5rem 0;
  
  /* Transition */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .heading-xl, .logo-text {
  font-weight: 700;
  line-height: 1.2;
}

.heading-xl { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

/* Structural Components */
.page-wrapper {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container-main {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding { padding: var(--section-padding); }

/* Buttons */
.button-primary, .button-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px; /* Suave pero institucional */
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.button-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.button-primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

.button-secondary {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  background-color: transparent;
}

.button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Navigation */
.nav-header {
  background: rgba(10, 28, 62, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.nav-link:hover { opacity: 1; }

/* Hero */
.section-hero {
  background: linear-gradient(135deg, rgba(10, 28, 62, 0.92) 0%, rgba(10, 28, 62, 0.8) 50%, rgba(10, 28, 62, 0.95) 100%), url('../img/agis-emergency-map-es.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  padding: 12rem 0 10rem;
  position: relative;
  overflow: hidden;
}

.section-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--color-white), transparent);
  pointer-events: none;
}

/* Cards */
.card-solution {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.card-solution:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Utilities */
.text-center { text-align: center; }
.bg-light { background-color: var(--color-bg-light); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(10, 28, 62, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.card-solution:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-accent);
}

/* Responsive */
@media (max-width: 991px) {
  .heading-xl { font-size: 2.75rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .nav-menu { display: none; } /* En Webflow esto se manejaría con un menu de hamburguesa */
}

@media (max-width: 479px) {
  .heading-xl { font-size: 2.25rem; }
  .section-padding { padding: 3rem 0; }
}
