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

:root {
  --navy: #07143f;
  --navy-light: #101f54;
  --turquoise: #25a8b0;
  --turquoise-light: #55c8cd;
  --cream: #e8e5d9;
  --white: #ffffff;
  --text: #20242d;
  --muted: #687080;
  --border: #e4e6ea;
  --shadow: 0 18px 50px rgba(7, 20, 63, 0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

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

.logo {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--turquoise);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--turquoise);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 11px 18px;
  border-radius: 7px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 1.7rem;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg {
  position: absolute;
  width: 650px;
  height: 650px;
  right: -160px;
  top: 80px;
  border-radius: 50%;
  background: rgba(37, 168, 176, .13);
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -230px;
  top: 230px;
  border-radius: 50%;
  background: rgba(7, 20, 63, .07);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 80px;
  align-items: center;
  padding-top: 70px;
}

.eyebrow {
  color: var(--turquoise);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -2px;
  margin-bottom: 25px;
}

.hero h1 span,
.section-heading h2 span,
.about h2 span {
  color: var(--turquoise);
}

.hero-description {
  max-width: 650px;
  font-size: 1.04rem;
  color: #505866;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 10px 25px rgba(7, 20, 63, .18);
}

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

.btn-secondary {
  color: var(--navy);
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(7,20,63,.13);
}

/* SECCIONES GENERALES */
.section {
  padding: 105px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 55px;
}

.section-heading h2,
.about h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 15px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

/* INTENT SELECTOR */
.intent-selector {
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.intent-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.intent-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 168, 176, 0.4);
  box-shadow: var(--shadow);
}

.intent-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.intent-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.intent-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.intent-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--turquoise);
}

/* SERVICIOS */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37,168,176,.35);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 1.65rem;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--navy);
  font-size: 1.08rem;
  margin-bottom: 9px;
}

.service-card p {
  color: var(--muted);
  font-size: .9rem;
}

/* PORTFOLIO */
.portfolio {
  background: #f6f7f8;
}

.portfolio-heading { margin-bottom: 35px; }

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}

.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform .45s ease;
  will-change: transform;
}

.project-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(7, 20, 63, .06);
  display: flex;
  flex-direction: column;
}

.project-logo {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  border-bottom: 1px solid var(--border);
}

.project-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 15px;
}

.project-info { 
  padding: 22px; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-type {
  color: var(--turquoise);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.project-info h3 { color: var(--navy); margin: 7px 0; font-size: 1.05rem; }
.project-info p { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-bottom: 15px; }

.btn-project {
  display: inline-block;
  margin-top: auto;
  padding: 0.5rem 1rem;
  background: var(--cream);
  color: var(--navy);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  align-self: flex-start;
  transition: background 0.2s;
}

.btn-project:hover {
  background: var(--turquoise);
  color: var(--white);
}

.badge-status {
  display: inline-block;
  margin-top: auto;
  padding: 0.4rem 0.8rem;
  background: #f0f0f0;
  color: #777;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  align-self: flex-start;
}

.carousel-btn {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(7,20,63,.08);
  transition: .2s ease;
}
.carousel-btn:hover { color: var(--white); background: var(--navy); }

.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 22px; }
.carousel-dot {
  width: 7px; height: 7px; border: 0; border-radius: 50%;
  background: #cbd0d6; cursor: pointer;
}
.carousel-dot.active { width: 20px; border-radius: 10px; background: var(--turquoise); }

/* NOSOTROS */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 100px;
}

.about-copy > p {
  color: #525a67;
  margin-bottom: 18px;
}

.features {
  margin-top: 35px;
  display: grid;
  gap: 14px;
}

.features div {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.features strong {
  color: var(--turquoise);
  font-size: .8rem;
}

.features span {
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
}

/* PROCESO */
.process {
  background: #f6f7f8;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.process-step {
  position: relative;
  padding: 10px 45px 10px 0;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px;
  right: 25px;
  width: 45px;
  height: 1px;
  background: var(--border);
}

.process-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.process-step h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.process-step p {
  color: var(--muted);
  font-size: .9rem;
}

/* CONTACTO (FORMULARIO CORREGIDO) */
.contact {
  padding-top: 20px;
}

.contact-box {
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-header {
  max-width: 750px;
  margin-bottom: 35px;
}

.contact-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  color: var(--white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 680px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #2a3c74;
  background: var(--navy-light);
  color: var(--white);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8fa0c6;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--turquoise);
}

.contact-form select {
  cursor: pointer;
}

.contact-form select option {
  background: var(--navy);
  color: var(--white);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--turquoise);
  color: var(--white);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--turquoise-light);
}

.whatsapp-direct {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.whatsapp-direct p {
  color: #bfc7da;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

/* FOOTER */
.footer {
  background: #050e2c;
  color: var(--white);
  padding: 55px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 45px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-content p {
  color: #9da8c1;
  font-size: .8rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .83rem;
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--turquoise-light);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  color: #79849e;
  font-size: .7rem;
}

/* MEDIA QUERIES (RESPONSIVE) */
@media (max-width: 850px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    right: 4%;
    width: 220px;
    padding: 20px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 125px 0 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .intent-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .project-card {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}

@media (max-width: 580px) {
  .section {
    padding: 75px 0;
  }

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

  .hero-text {
    width: 100%;
    padding: 0 15px;
  }

  .hero-description {
    width: 100%;
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .intent-grid,
  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex: 0 0 100%;
  }

  .process-step {
    padding: 10px 0 35px;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .contact-box {
    padding: 40px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

  .hero-image img {
    width: 90%;
    max-width: 340px;
  }
}