/* ==========================================================================
   LANDING PAGE CSS - AIGS SEGUROS (Premium & Modern Aesthetic)
   ========================================================================= */

:root {
  /* Colors */
  --bg-primary: #0f172a;       /* Deep Slate Blue (Main Dark Background) */
  --bg-secondary: #1e293b;     /* Slate Blue for Cards/Nav */
  --bg-light: #f8fafc;         /* Off-white for light sections */
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dark: #1e293b;
  --text-dark-muted: #64748b;
  
  --color-primary: #2563eb;       /* Electric Blue */
  --color-primary-hover: #1d4ed8;
  --color-success: #10b981;       /* Emerald Green (WhatsApp) */
  --color-success-hover: #059669;
  --color-accent: #38bdf8;        /* Light Cyan Accent */
  
  /* Fonts & Shadows */
  --font-main: 'Outfit', sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 16px -2px rgba(15, 23, 42, 0.15), 0 4px 8px -2px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.25), 0 10px 10px -5px rgba(15, 23, 42, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

/* Utility Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  padding: 12px 0;
  background: #0f172a;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 44px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 500;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav ul a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  font-size: 15px;
}

nav ul a:hover {
  color: #ffffff;
}

.cta-header {
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-primary), #3b82f6);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.cta-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

/* Mobile Menu Button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content h2 {
  font-size: 52px;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-content h2 span {
  background: linear-gradient(120deg, #38bdf8, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #1d4ed8);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--color-success), #059669);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Features / Benefits Section */
.benefits-section {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 16px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.benefit-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

/* Coverages Section (Light Section for visual hierarchy) */
.coverages-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.coverages-section .section-header h2 {
  color: var(--text-dark);
}

.coverages-section .section-header p {
  color: var(--text-dark-muted);
}

.coverages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.coverage-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.coverage-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.coverage-icon-wrap {
  padding: 32px 32px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coverage-icon {
  font-size: 36px;
  color: var(--color-primary);
}

.coverage-arrow {
  color: #cbd5e1;
  font-size: 18px;
  transition: var(--transition);
}

.coverage-card:hover .coverage-arrow {
  transform: translateX(5px);
  color: var(--color-primary);
}

.coverage-body {
  padding: 0 32px 32px;
  flex-grow: 1;
}

.coverage-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.coverage-body p {
  color: var(--text-dark-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.btn-card-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-success);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.btn-card-whatsapp:hover {
  color: var(--color-success-hover);
}

/* Quote Section */
.quote-section {
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

.quote-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.quote-info h2 {
  font-size: 38px;
  margin-bottom: 20px;
  color: #ffffff;
}

.quote-info p {
  font-size: 16px;
  margin-bottom: 30px;
}

.contact-bullets {
  list-style: none;
}

.contact-bullets li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 16px;
}

.contact-bullets i {
  color: var(--color-accent);
  font-size: 20px;
}

.quote-form-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.quote-form-card h3 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #ffffff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

select.form-control option {
  background-color: var(--bg-secondary);
  color: #ffffff;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--color-success);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--color-success-hover);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Footer */
footer {
  background-color: #020617;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin: 16px 0 24px;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links ul a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content h2 {
    font-size: 40px;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .quote-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  nav {
    display: none; /* Can expand with JavaScript on click */
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-container .cta-header {
    display: none; /* Hide header CTA on mobile, rely on WhatsApp float or hero buttons */
  }
}
