html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f9fbfd;
  color: #082A3A;
  line-height: 1.6;
}

/* HEADER */
header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0px 40px;
}

.logo {
  justify-self: start;
}

.logo img {
  height: 70px;
}

.desktop-links {
  justify-self: center;
  display: flex;
  gap: 30px;
}

.desktop-cta {
  justify-self: end;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: #082A3A;
  font-weight: 500;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s, text-decoration 0.3s;
}

nav a:hover {
  color: #F7931E;
  text-decoration: underline;
}

.cta {
  background: #082A3A;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.cta:hover {
  background: #0a3c55;
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
	justify-self: end; /* Force it to the right */

}

/* ----------- HERO ----------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 100px 60px;
  background: #082A3A;
  color: white;
}

.hero-text {
  max-width: 600px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  line-height: 1.2;
  margin: 0 0 20px;
}

.hero h1 .highlight-blue {
  color: #4FC3F7;
}

.hero h1 .highlight-orange {
  color: #F7931E;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #E6E6E6;
}

.btn-hero {
  display: inline-block;
  background: white;
  color: #082A3A;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: #F7931E;
  color: white;
}

.hero-img {
  text-align: right;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

/* ----------- SECTION TITLES ----------- */
section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #082A3A;
  text-align: center;
}

/* ----------- ¿QUÉ HACEMOS ----------- */
.blocks {
  padding: 60px 40px;
  background: #f5f7fa;
  text-align: center;
}

.block-grid {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.block {
  flex: 1;
  max-width: 320px;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  background: white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.block .icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: white;
}

.purple .icon { background: #A368D5; }
.orange .icon { background: #F7931E; }
.blue .icon { background: #6DD5FA; }

.block.purple { background: #f4e9fb; }
.block.orange { background: #fff2e3; }
.block.blue { background: #e6f9ff; }

/* ----------- QUÉ OFRECEMOS ----------- */
.offers {
  padding: 60px 40px;
  background: #fff;
  text-align: center;
}

.offers h2 {
  margin-bottom: 10px;
}

.offers p {
  color: #555;
  margin-bottom: 30px;
}

/* Tab buttons */
#que-ofrecemos {
  text-align: center; /* center the tab container */
}

.tab-buttons {
  display: inline-flex; /* shrink to content */
  justify-content: center;
  gap: 10px;
  background: #f7f8fa;
  padding: 10px 15px;
  border-radius: 25px;
  margin: 0 auto 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-buttons button {
  padding: 12px 28px;
  border: none;
  border-radius: 22px;
  background: transparent;
  color: #082A3A;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-buttons button.active.purple {
  background: #A368D5;
  color: #fff;
  box-shadow: 0px 3px 10px rgba(160, 115, 224, 0.3);
}

.tab-buttons button.active.orange {
  background: #F7931E;
  color: #fff;
  box-shadow: 0px 3px 10px rgba(249, 161, 60, 0.3);
}

.tab-buttons button.active.blue {
  background: #6DD5FA;
  color: #fff;
  box-shadow: 0px 3px 10px rgba(109, 213, 250, 0.3);
}

.tab-buttons button:hover {
  text-decoration: underline;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
}

.tab-content li {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  width: 280px;
  min-height: 260px; /* equal height */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab-content li:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Icon inside cards */
.tab-content li .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 15px;
  color: inherit;
}

/* Background tint per active tab */
.purple-bg li { background: #f4e9fb; }
.orange-bg li { background: #fff2e3; }
.blue-bg li { background: #e6f9ff; }

.icon.purple { background: #A368D5; }
.icon.orange { background: #F7931E; }
.icon.blue { background: #6DD5FA; }

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------- LÍDERES ----------- */
.leaders {
  padding: 60px 40px;
  text-align: center;
}

.leader-grid {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.leader {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.leader:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.leader img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.leader h3 {
  margin: 15px 0 5px;
  font-size: 1.2em;
}

.leader p {
  font-size: 0.95em;
  color: #555;
}

.leader::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  top: 20px;
  right: 20px;
}

.leader.orange::after { background: #F7931E; }
.leader.purple::after { background: #A368D5; }
.leader.blue::after { background: #6DD5FA; }

/* ----------- PROYECTOS LIDERADOS ----------- */
.projects {
  padding: 60px 40px;
  background: #fff;
  text-align: center;
}

.projects h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #082A3A;
}

.projects p {
  color: #667;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.project-category {
  background: #f4e9fb; /* fallback, you’ll set per color */
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.project-category h3 {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #082A3A;
}

.project-category h3 .dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 12px;
}

/* Category colors */
.project-category.purple { background: #f4e9fb; }
.project-category.purple .dot { background: #A368D5; }

.project-category.orange { background: #fff2e3; }
.project-category.orange .dot { background: #F7931E; }

.project-category.blue { background: #e6f9ff; }
.project-category.blue .dot { background: #6DD5FA; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.project-grid div {
  background: #fff;
  padding: 10px 10px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  font-weight: 500;
  color: #082A3A;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
/* ----------- CONTACT FORM ----------- */

.contact {
  padding: 80px 40px;
  background: #f5f7fa;
  text-align: center;
}

.contact-subtitle {
  margin-bottom: 40px;
  font-size: 1.1em;
  color: #555;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1em;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.contact-form button {
  padding: 14px;
  background: #082A3A;
  color: white;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}


/* ----------- FOOTER ----------- */
footer {
  background: #082A3A;
  color: #fff;
  padding: 40px 20px;
}

/* Top row */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.footer-logo {
  width: 80px;
}

.footer-left img {
  width: 50px;
}

.footer-center {
  display: flex;
  gap: 30px;
}

.footer-center a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-center a:hover {
  color: #F7931E;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s;
}

.footer-right a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.footer-right img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Bottom row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

.footer-bottom .footer-left,
.footer-bottom .footer-right {
  flex: 1;
}

.footer-bottom .footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-bottom p {
  font-size: 0.9em;
  color: #ccc;
  margin: 0;
}

/* ------ MOBILE MENU ------*/
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 20px;
  background: #f9fbfd;
  padding: 20px;
  position: absolute;
  top: 100%;  /* directly below nav */
  left: 0;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 2000;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 500;
  color: #082A3A;
  text-decoration: none;
}

.mobile-menu .cta {
  background: #082A3A;
  color: white;
  border-radius: 10px;
  text-align: center;
  width: 100%;
  max-width: 85%;
	  justify-self: end;

}


/* ----------- RESPONSIVE ----------- */

@media (min-width: 769px) {
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-img { text-align: center; }
  .hero-text { margin: 0 auto; }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

	.desktop-links,
  .desktop-cta {
    display: none;
  }

	.hamburger {
    display: block;
    grid-column: 3; /* explicitly place in right column */
  }

	.mobile-menu {
    display: none;
    position: fixed;
    top: 70px; /* just under header */
    left: 0;
    width: 100%;
    background: #f9fbfd;
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    z-index: 2000;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu .cta {
    margin-top: 20px;
    background: #082A3A;
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
  }

	.footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-center {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-right {
    justify-content: center;
  }

  .block, .tab-content li, .leader {
    max-width: 100%;
    width: 100%;
  }
}