*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3eee8;
  color: #2e2e2e;
}

button {
  font-family: inherit;
}

/* NAV */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e2e2;
  z-index: 20;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo-octo {
  color: #1f3b57;
}

.logo-octo.big {
  animation: octo-breathe 3s ease-in-out infinite;
}

@keyframes octo-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.nav-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f3b57;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  color: #555;
  padding: 0.25rem 0.5rem;
}

.nav-links button:hover {
  color: #54c2c3;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
}

/* MOBILE MENU */

.nav-menu {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1rem;
  gap: 0.5rem;
  border-top: 1px solid #e2e2e2;
  background: rgba(255, 255, 255, 0.98);
}

.nav-menu button {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  cursor: pointer;
  color: #444;
}

.nav-menu button:hover {
  color: #54c2c3;
}

/* SECTIONS */

main {
  padding-top: 70px;
}

.section {
  padding: 4.5rem 1.5rem;
}

.section-light {
  background: rgba(255, 255, 255, 0.9);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  color: #1f3b57;
}

.section-intro {
  text-align: center;
  color: #5a5a5a;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* HERO */

.hero {
  position: relative;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(84, 194, 195, 0.4);
  background: rgba(255, 255, 255, 0.85);
  color: #1f3b57;
  margin-bottom: 0.75rem;
}

.badge-icon {
  font-size: 0.9rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: #1f3b57;
}

.hero-text {
  font-size: 1.1rem;
  color: #5a5a5a;
  max-width: 700px;
  margin: 0 auto 1.8rem;
}

.btn-primary {
  background: linear-gradient(135deg, #1F3B57, #54C2C3);
  color: white;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: 200% auto;
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(31, 59, 87, 0.25);
}

.btn-primary.full {
  width: 100%;
}

/* CARDS */

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.7rem 1.6rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.04);
  border: 1px solid #ece3da;
}

.card-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3eee8;
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #1f3b57;
}

.card p {
  margin: 0;
  color: #5a5a5a;
  font-size: 0.97rem;
}

/* SOLUTIONS */

.solutions-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.solution-item {
  display: flex;
  gap: 0.8rem;
}

.solution-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f3b57, #54c2c3);
  color: #fff;
  font-size: 1.3rem;
}

.solution-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  color: #1f3b57;
}

.solution-item p {
  margin: 0;
  color: #5a5a5a;
  font-size: 0.96rem;
}

/* OCTO CARD */

.octo-card {
  background: linear-gradient(145deg, #faf7f4, #e6e0d7);
  border-radius: 1.7rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e1d6c9;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.octo-card h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  color: #1f3b57;
}

.octo-card p {
  margin: 0;
  color: #5a5a5a;
  font-size: 0.97rem;
}

/* EJEMPLOS */

.examples-grid .card h3 {
  margin-bottom: 0.7rem;
}

.examples-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #5a5a5a;
  font-size: 0.95rem;
}

/* PROPUESTA */

.proposal {
  text-align: center;
  max-width: 800px;
}

.proposal p {
  margin-bottom: 0.9rem;
  color: #5a5a5a;
  font-size: 1rem;
}

.proposal-highlight {
  margin-top: 1.2rem;
  font-weight: 600;
  color: #f17865;
  font-size: 1.1rem;
}

/* CONTACTO */

.contact {
  max-width: 600px;
  text-align: center;
}

.contact-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid #ddd0c4;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #54c2c3;
  box-shadow: 0 0 0 2px rgba(84, 194, 195, 0.2);
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2rem;
  color: #1f7a4a;
}

/* FOOTER */

.footer {
  background: linear-gradient(135deg, #1f3b57, #54c2c3);
  color: #fff;
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-title {
  margin: 0.7rem 0 0.2rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-sub {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: #e1f2f2;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: #d7e7e7;
}

/* POPUP */

.popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

.popup.active {
  display: flex;
}

.popup-content {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  animation: slideUp 0.3s ease;
}

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

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

/* RESPONSIVE */

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .solutions-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}
