@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-page: #f6f9fc;
  --bg-hero: linear-gradient(180deg, #d8e8f6 0%, #e8f1f8 100%);
  --bg-card-blue: #dceaf5;
  --bg-white: #ffffff;
  
  --border-light: #cde0f0;
  --border-darker: #b9d3ea;
  
  --text-main: #1e3a5f;
  --text-muted: #4a6583;
  --text-blue: #306a9c;
  
  --btn-primary: #1f5782;
  --btn-primary-hover: #154163;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .badge, .logo-text, .btn-primary {
  font-family: 'Outfit', sans-serif;
}

.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Language Swapping Logic */
html[lang="en"] [lang="es"] { display: none !important; }
html[lang="es"] [lang="en"] { display: none !important; }

/* Top Bar */
.top-bar {
  display: flex;
  margin-bottom: 20px;
}

.lang-switcher {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lang-btn:hover {
  background: #f0f4f8;
}

.lang-btn.active {
  background: var(--btn-primary);
  color: #fff;
  border-color: var(--btn-primary);
}

/* Hero Section */
.hero-card {
  position: relative;
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(216, 232, 246, 0.85) 0%, rgba(232, 241, 248, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 25px;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
}

.logo-text::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%231f5782"><path d="M400 256c0 23.9-12.8 44.8-31.9 55.4l11.1 55.6c23-5.2 43.1-18.7 58.1-37.4 20-25.1 32-57.1 32-91.6 0-79.5-64.5-144-144-144h-5.2l-37.8 75.6H310.6c39 0 71.4 31.4 71.4 71.4zm-288 0c0-23.9 12.8-44.8 31.9-55.4L132.8 145c-23 5.2-43.1 18.7-58.1 37.4-20 25.1-32 57.1-32 91.6 0 79.5 64.5 144 144 144h5.2l37.8-75.6H183.4c-39 0-71.4-31.4-71.4-71.4zM256 160c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 160c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"/></svg>') no-repeat center;
  margin-right: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-darker);
  color: var(--text-blue);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-card h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.hero-card h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc p {
  display: inline;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-primary);
  color: #fff;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

/* Differentiators Section */
.differentiators {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.diff-card {
  flex: 1;
  background: var(--bg-card-blue);
  border: 1px solid var(--border-darker);
  border-radius: 12px;
  padding: 25px 30px;
}

.diff-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.diff-icon {
  font-size: 1.3rem;
  color: var(--text-blue);
}

.diff-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.diff-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Section Titles */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-left: 5px;
}

/* Services Section */
.services {
  margin-bottom: 40px;
}

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

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 25px;
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card h4 i {
  color: var(--text-blue);
  font-size: 1.1rem;
}

.service-card ul {
  list-style: none;
}

.service-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--text-blue);
  font-size: 0.8rem;
}

/* Why Choose Us */
.why-us {
  margin-bottom: 40px;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 15px 20px;
}

.why-icon {
  font-size: 1.3rem;
  color: var(--text-blue);
  flex-shrink: 0;
}

.why-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.why-text p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* CTA Section */
.cta-section {
  background: var(--bg-card-blue);
  border: 1px solid var(--border-darker);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
  .differentiators { flex-direction: column; }
  .hero-card h1 { font-size: 1.8rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .why-list { grid-template-columns: 1fr; }
}
