:root {
  color-scheme: light;
  
  /* Brand Colors */
  --red-primary: #c40000;
  --red-hover: #a30000;
  --graphite: #3a3a3a;
  --graphite-dark: #191919;
  
  /* Modern Colors */
  --blue-accent: #0f4c81; /* Classic Trust Blue */
  --blue-light: #e6f0fa;
  --gold-accent: #d4af37;
  
  /* Neutrals */
  --paper: #f8f9fa;
  --white: #ffffff;
  --muted: #6c757d;
  --line: #e9ecef;
  
  /* Utilities */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 45px rgba(25, 25, 25, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: var(--paper);
  color: var(--graphite-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--graphite-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  color: var(--red-primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--gold-accent); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--red-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(196, 0, 0, 0.3);
}
.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 0, 0, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--graphite-dark);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--graphite);
  transform: translateY(-2px);
}

.btn-primary-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--red-primary);
  color: var(--red-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary-outline:hover {
  background: var(--red-primary);
  color: var(--white);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1.5rem 0;
  background: transparent;
}
.site-header.scrolled {
  padding: 0.8rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  width: 100%;
}

.brand {
  width: 180px;
  z-index: 110;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a:not(.btn-primary-outline) {
  font-weight: 500;
  color: var(--graphite);
  position: relative;
}
.nav a:not(.btn-primary-outline)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transition: width 0.3s ease;
}
.nav a:not(.btn-primary-outline):hover::after {
  width: 100%;
}
.nav a:not(.btn-primary-outline):hover {
  color: var(--red-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--graphite-dark);
  z-index: 110;
  outline: none;
}
.mobile-menu-toggle svg {
  transition: transform 0.3s ease;
}
.mobile-menu-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
.mobile-menu-toggle[aria-expanded="true"] .line-mid { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .line-top { transform: translateY(6px) rotate(45deg); transform-origin: 12px 6px; }
.mobile-menu-toggle[aria-expanded="true"] .line-bottom { transform: translateY(-6px) rotate(-45deg); transform-origin: 12px 18px; }

/* Sections Base */
.section {
  padding: 6rem 0;
}
.section-header {
  max-width: 600px;
  margin: 0 auto 4rem;
}
.text-center { text-align: center; }
.section-header p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2f6 100%);
}

.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}
.shape-1 {
  top: -10%; right: -5%;
  width: 500px; height: 500px;
  background: rgba(196, 0, 0, 0.08);
}
.shape-2 {
  bottom: -20%; left: -10%;
  width: 600px; height: 600px;
  background: rgba(15, 76, 129, 0.05);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 1.5rem 0 2.5rem;
  max-width: 90%;
}

.hero-content h1 span {
  color: var(--red-primary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-partners {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-partners span {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--graphite);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.partner-badge:hover:not(.no-link) {
  border-color: var(--red-primary);
  color: var(--red-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-image {
  position: relative;
}

.hero-mark {
  width: 100%;
  opacity: 0.15;
  transform: scale(1.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.floating-card {
  position: absolute;
  bottom: 15%;
  left: -10%;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
  max-width: 280px;
}
.card-icon {
  font-size: 2rem;
}
.card-text {
  display: flex;
  flex-direction: column;
}
.card-text strong {
  font-size: 0.95rem;
  color: var(--graphite-dark);
}
.card-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

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

/* Services Grid & Cards */
.consorcios-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}
.services-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-md);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--red-primary);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: bottom;
}
.service-card:hover {
  background: var(--white);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.service-card:hover::before {
  transform: scaleY(1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-card h3 { 
  margin-bottom: 1rem; 
  font-size: 1.6rem;
}
.service-card p {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  flex-grow: 1;
  line-height: 1.7;
}

.service-link {
  font-weight: 700;
  color: var(--red-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-top: auto;
}
.service-link span { transition: transform 0.3s ease; }
.service-card:hover .service-link span { transform: translateX(6px); }

/* Partners Section */
.partners-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partners-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
a.partner-card:hover {
  border-color: var(--red-primary);
}

.partner-logo-container {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 100%;
}
.partner-brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-accent);
}
.partner-logo-img {
  max-height: 60px;
  object-fit: contain;
}

.partner-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.partner-action-link {
  color: var(--red-primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.partner-status {
  background: #f1f3f5;
  color: #495057;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Seguros Section */
.seguros-section {
  background: var(--white);
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, var(--white) 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
}

.about-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
}
.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.about-mark {
  width: 100%;
  opacity: 0.12;
}

.experience-badge {
  position: absolute;
  bottom: 10%;
  right: -5%;
  background: var(--red-primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.experience-badge .text {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 0.25rem;
  line-height: 1.3;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}
.about-content p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.features-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.features-list li {
  font-weight: 600;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

/* Contact/CTA Section */
.contact-section {
  background: var(--graphite-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-section h2 { color: var(--white); margin-bottom: 1.5rem; }
.contact-section p { color: #a0aab2; font-size: 1.1rem; margin-bottom: 2.5rem; }

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}
.contact-card.wh-link:hover {
  border-color: #25D366;
}
.contact-card.wh-link:hover .contact-icon {
  color: #25D366;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.contact-card strong { display: block; margin-bottom: 0.25rem; font-size: 1.1rem; }
.contact-card span { color: #a0aab2; font-size: 0.95rem; white-space: nowrap; }

.contact-form-container {
  background: var(--white);
  color: var(--graphite-dark);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form-container h3 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--graphite);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--paper);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(196, 0, 0, 0.1);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
}

.full-width { width: 100%; }

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background: #111111;
  color: var(--white);
  padding: 5rem 0 0;
  border-top: 1px solid #222222;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  width: 160px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: #888888;
  max-width: 350px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--white);
  font-family: var(--font-heading);
}

.footer-links a {
  display: block;
  color: #888888;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--red-primary);
  transform: translateX(3px);
}

.footer-contact p {
  color: #888888;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.footer-wh-link {
  color: #25D366;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}
.footer-wh-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding: 1.5rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  color: #666666;
  font-size: 0.875rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: #20ba59;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Animations */
.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) backwards;
}
.fade-in {
  animation: fadeIn 1s ease backwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive (Mobile First / Tablet Adaptations) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
  .about-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
    padding-top: 4rem;
  }
  
  .hero-content p {
    margin: 1.5rem auto 2.5rem;
    max-width: 600px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-partners {
    align-items: center;
  }
  
  .partners-logos {
    justify-content: center;
  }

  .floating-card {
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-image {
    order: 2;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Sticky header adaptations for mobile menu */
  .site-header {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Responsive Navigation Menu Overlay */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 7rem 2.5rem 3rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    gap: 1.75rem;
  }
  .nav.active {
    right: 0;
  }
  
  .nav a {
    width: 100%;
    font-size: 1.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
  }
  .nav a:not(.btn-primary-outline)::after {
    display: none;
  }
  .nav .btn-primary-outline {
    margin-top: 1rem;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-actions .button {
    width: 100%;
  }
  
  .experience-badge {
    width: 120px;
    height: 120px;
    right: 0;
    bottom: 5%;
  }
  .experience-badge .number { font-size: 1.8rem; }
  .experience-badge .text { font-size: 0.7rem; }
}
