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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

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

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo-img {
  height: 32px;
  width: auto;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.contact-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.contact-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #111827;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 18px;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #dbeafe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #1e40af;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Customization Section */
.customization {
  padding: 80px 0;
  background: #f8fafc;
}

.customization h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: #111827;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 60px;
}

.process-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.flow-step {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  min-width: 160px;
  flex: 1;
  max-width: 200px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.flow-step:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.flow-icon {
  width: 40px;
  height: 40px;
  background: #dbeafe;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #1e40af;
}

.flow-step h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 14px;
  color: #6b7280;
}

.levels {
  margin-top: 12px;
}

.levels span {
  font-size: 12px;
  color: #6b7280;
  display: block;
  margin-bottom: 8px;
}

.level-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.level-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.flow-arrow {
  font-size: 20px;
  color: #9ca3af;
  font-weight: bold;
}

.inheritance-note {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* Tooltip Styles */
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 300px;
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
}

.flow-step:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Responsive tooltip adjustments */
@media (max-width: 768px) {
  .tooltip {
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 280px;
    margin-bottom: 0;
  }
  
  .tooltip::after {
    display: none;
  }
}

/* CTA Section */
.cta {
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
}

.cta p {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.email-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}

.email-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  min-width: 200px;
}

.email-input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-color: #3b82f6;
}

.submit-btn {
  background: #111827;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.submit-btn:hover {
  background: #1f2937;
}

.submit-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Server Response Styles */
.server-response {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.server-response.show {
  opacity: 1;
}

.server-response.success {
  color: #10b981;
}

.server-response.error {
  color: #ef4444;
}

/* Popup Styles */
.popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 9999;
  max-width: 400px;
  width: 90%;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.popup {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  animation: popupIn 0.3s ease forwards;
}

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

@keyframes popupIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup h3 {
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.popup p {
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.5;
}

.popup-close-btn {
  background: #111827;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-close-btn:hover {
  background: #1f2937;
}

.popup-close-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading state for submit button */
.submit-btn.loading {
  position: relative;
  color: transparent;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Footer */
.footer {
  background: #111827;
  color: #d1d5db;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-brand {
  max-width: 280px;
  margin-right: 20px;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  display: block;
}

.footer-brand p {
  color: #9ca3af;
  line-height: 1.6;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
}

.company-info p {
  color: #9ca3af;
  margin-bottom: 4px;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 14px;
}

/* Large screens - extra spacing */
@media (min-width: 1400px) {
  .footer-content {
    gap: 80px;
  }
  
  .footer-brand {
    margin-right: 40px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    padding: 12px 20px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .features {
    padding: 60px 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .customization {
    padding: 60px 0;
  }
  
  .customization h2 {
    font-size: 28px;
  }
  
  .process-flow {
    flex-direction: column;
    gap: 16px;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
  
  .flow-step {
    max-width: 100%;
    width: 100%;
  }
  
  .cta {
    padding: 60px 0;
  }
  
  .cta h2 {
    font-size: 28px;
  }
  
  .form-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .email-input {
    min-width: auto;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: left;
  }
  
  .footer-brand {
    max-width: 100%;
    margin-bottom: 30px;
    margin-right: 0;
  }
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  
  .footer-brand {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .customization h2,
  .cta h2 {
    font-size: 24px;
  }
  
  .contact-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .level-tags {
    gap: 2px;
  }
  
  .level-tag {
    font-size: 9px;
    padding: 1px 4px;
  }
}


/* ===== Architecture v2 (responsive + hover tips) ===== */
.architecture2 { padding: 80px 0; background: #fff; }
.architecture2 h2 { text-align:center; font-size: 32px; font-weight: 700; color:#111827; }
.architecture2 .section-subtitle { text-align:center; margin-top:8px; color:#6b7280; }

.arch2-grid{
  margin-top:28px;
  border:1px solid #e5e7eb; border-radius:16px; padding:20px;
  display:grid; gap:16px;
  grid-template-columns: 260px repeat(3, minmax(220px, 1fr));
  background:#ffffff;
}

/* Columna niveles */
.arch2-levels{ display:grid; gap:12px; align-content:start; }
.arch2-level{
  display:flex; align-items:center; justify-content:center;
  height:72px; border:1px solid #e5e7eb; border-radius:12px;
  background:#f8fafc; color:#111827; font-weight:600; cursor:default; position:relative;
}
.arch2-level.primary{ background:#eef2ff; border-color:#c7d2fe; font-weight:700; }
.arch2-level span{ pointer-events:none; }

/* Pilares */
.arch2-pillar{
  border:1px solid #e5e7eb; border-radius:16px; padding:16px; background:#fbfdff;
  min-height: 224px; position:relative; transition: box-shadow .2s ease, transform .2s ease;
}
.arch2-pillar:nth-of-type(1){ background:#ecfeff; border-color:#a5f3fc; }
.arch2-pillar:nth-of-type(2){ background:#f0fdf4; border-color:#86efac; }
.arch2-pillar:nth-of-type(3){ background:#f5f3ff; border-color:#c4b5fd; }
.arch2-pillar:focus{ outline:2px solid #3b82f6; outline-offset:2px; }
.arch2-pillar:hover{ transform: translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.06); }

.pillar-head{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.pill-ico{ width:28px; height:28px; display:grid; place-items:center; font-size:18px; background:#ffffffaa; border-radius:8px; }
.arch2-pillar h3{ font-size:16px; color:#0f172a; font-weight:700; margin:0; }
.pillar-points{ margin:8px 0 0; padding-left:18px; }
.pillar-points li{ color:#334155; line-height:1.5; font-size:14px; }
.pillar-points li.muted{ color:#64748b; font-size:13px; }

/* Chips legend */
.arch2-legend{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  border:1px solid #e5e7eb; border-top:none; border-radius:0 0 16px 16px; padding:12px 16px; background:#f8fafc;
}
.arch2-legend .legend-title{ font-size:12px; color:#6b7280; margin-right:8px; }
.arch2-legend .chip{
  border:1px solid #e5e7eb; background:#fff; color:#374151; border-radius:999px; padding:6px 10px;
  font-size:12px; cursor:pointer; transition:.15s; margin-right:6px;
}
.arch2-legend .chip.primary{ background:#eef2ff; border-color:#c7d2fe; color:#111827; }
.arch2-legend .chip:hover{ transform: translateY(-1px); box-shadow:0 4px 10px rgba(0,0,0,.06); }

/* Tooltips (hover/focus) */
.has-tip .tip{
  position:absolute; left:50%; bottom:100%; transform:translate(-50%, -8px);
  background:#1f2937; color:#fff; padding:10px 12px; border-radius:8px; font-size:13px; line-height:1.4;
  min-width:200px; max-width:280px; text-align:left; box-shadow:0 10px 20px rgba(0,0,0,.15);
  opacity:0; visibility:hidden; transition:opacity .18s ease, transform .18s ease; z-index:20;
}
.has-tip .tip::after{
  content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:6px solid transparent; border-top-color:#1f2937;
}
.has-tip:hover .tip, .has-tip:focus-within .tip{
  opacity:1; visibility:visible; transform:translate(-50%, -12px);
}

/* Responsive layout */
@media (max-width: 1024px){
  .arch2-grid{
    grid-template-columns: 220px 1fr; /* niveles + una columna */
    grid-auto-rows: 1fr;
  }
  .arch2-pillar{ min-height: auto; }
}
@media (max-width: 780px){
  .architecture2{ padding:60px 0; }
  .arch2-grid{
    grid-template-columns: 1fr; gap:12px;
  }
  .arch2-levels{ grid-template-columns: repeat(2, 1fr); }
  .has-tip .tip{
    position: fixed; left:50%; top:52%; bottom:auto; transform:translate(-50%, -50%);
    max-width: 86vw; z-index: 9999;
  }
  .has-tip .tip::after{ display:none; }
}

/* Centrar título de ejemplos */
.examples h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.examples {
  padding: 40px 0; /* Añadir padding consistente */
}

/* Reducir espacio entre secciones */
.features {
  padding: 40px 0; /* Reducido de 80px */
}

.architecture2 {
  padding: 40px 0; /* Reducido de 80px */
}