:root {
  --primary-color: #009b89;
  --secondary-color: #03ab91;
  --primary-dark: #007a6c;
  --white: #ffffff;
  --black: #000000;
  --bg-gray-light: #e0e0e0;
  --bg-gray-medium: #e3e3e3;
  --border-gray: #707070;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

section[id] {
  scroll-margin-top: 130px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.txt-center {
  text-align: center;
}

.mg-tp {
  margin-top: 6%;
}

.txt-green {
  color: var(--secondary-color);
}

.mar-reg {
  font-size: 0.98rem;
  vertical-align: super;
  line-height: 0;
}

/* --- HEADER SUPERIOR --- */
.top-header {
  background-color: var(--white);
  padding: 10px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100px;
  transition: all 0.3s ease;
}

.header-info {
  display: flex;
  gap: 40px;
  margin-right: 5%;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 30px;
}

.info-item img {
  max-height: 60px;
  width: auto;
}

.info-item a {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

/* --- BARRA DE NAVEGACIÓN --- */
.nav-bar {
  background-color: var(--primary-color);
  width: 100%;
  position: relative;
}

.nav-bar ul {
  list-style: none;
  text-align: center;
  padding: 9px 0;
  margin: 0;
}

.nav-bar li {
  display: inline-block;
  margin: 0 2%;
}

.nav-bar a {
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 10px;
  transition: 0.3s;
  display: block;
}

/* Botón Hamburguesa*/
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 20px;
  position: absolute;
  right: 10px;
}

/* --- CONTENIDO PRINCIPAL --- */
.top-banner {
  background-image: url("/Imagenes/foto_principal_head.png");
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding-left: 10%;
  padding-right: 10%;
  margin-top: 160px;
  background-repeat: no-repeat;
}

.top-banner-title {
  flex: 3;
  display: flex;
  justify-content: center;
}

/* --- SERVICIOS --- */
.service-container {
  display: flex;
  width: 100%;
  background-color: var(--bg-gray-light);
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.service-card {
  flex: 1;
  height: 300px;
  background-color: var(--bg-gray-medium);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
}

.service-img {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.service-img img {
  max-width: 90%;
  object-fit: contain;
}

.serv-btn {
  background-color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  min-width: 160px;
  position: absolute;
  bottom: -20px;
  text-align: center;
  z-index: 2;
}

.serv-btn a {
  text-decoration: none;
  color: var(--white);
}

/* ---INFORMACIÓN --- */
.info-section {
  display: flex;
  padding: 50px 0 0;
  align-items: stretch;
  flex-wrap: wrap;
  min-width: 750px;
}

.info-txt {
  flex: 1;
  flex-basis: 500px;
  background-color: var(--bg-gray-medium);
  padding: 40px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-txt h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.info-txt h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.info-txt p {
  line-height: 1.6;
  font-size: 1.3rem;
  font-weight: 600;
}

.info-image {
  flex: 1;
  flex-basis: 500px;
  position: relative;
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- INTRO --- */
.section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 10%;
  gap: 40px;
  flex-wrap: wrap;
}

.intro-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  padding: 0;
  min-height: 150px;
  margin: -25px auto;
}

.intro-text,
.intro-img {
  flex-grow: 1;
  flex-shrink: 0;
}

.intro-text h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  color: var(--black);
}

.intro-img img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* --- PRODUCTOS --- */
.category-bar {
  background-color: var(--bg-gray-medium);
  padding: 15px 5%;
  display: flex;
  align-items: center;
  margin: 25px 5% 5px 5%;
}

.category-bar h1 {
  font-size: 2rem;
  font-weight: 900;
}

.category-bar span {
  color: var(--secondary-color);
}

.cards-container {
  display: flex;
  justify-content: center;
  padding: 20px 5%;
  gap: 25px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  border: 1px solid var(--border-gray);
  background-color: var(--white);
  min-height: 540px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-bottom: 30px;
}

.prod-name {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 10px 15px;
  border-radius: 70px;
  font-weight: bold;
  font-size: 1.5rem;
  text-transform: capitalize;
  position: absolute;
  bottom: -23px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 80%;
}

.prod-name a {
  text-decoration: none;
  color: var(--white);
}

/* --- TECNOLOGÍA --- */
.tech-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  flex-basis: 500px;
}

.tech-txt-box {
  padding: 40px 50px 40px 10%;
  background-color: var(--white);
}

.tech-txt-box ul {
  padding-left: 3%;
}

.tech-txt-box li {
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 15px;
}

.tech-img-box {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.tech-img-box img {
  height: 500px;
  width: 100%;
}

/* --- SOLUCIONES --- */
.solution-container {
  display: flex;
  width: 100%;
  gap: 20px;
  padding-bottom: 50px;
  flex-wrap: wrap;
}

.solution-card {
  flex: 1;
  min-width: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
}

.solution-img {
  height: 300px;
  width: 100%;
  overflow: hidden;
}

.solution-img img {
  height: 300px;
}

.solution-txt {
  line-height: 1.4;
  padding: 15px 8px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* --- PILARES --- */
.pillars-grid {
  display: flex;
  justify-content: center;
  padding: 20px 5% 80px 5%;
  gap: 42px;
  flex-wrap: wrap;
}

.pillar-item {
  flex: 1;
  min-width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
}

.pillar-item h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.pillar-item p {
  font-size: 1.125rem;
  font-weight: 600;
}

.pillar-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
}

/* --- FORMULARIO Y FOOTER --- */
.form-title {
  text-align: center;
  font-size: 2rem;
}

.form-title h2 {
  font-weight: 900;
}

.form-title h3 {
  font-weight: 800;
}

.contact-form-section {
  padding: 60px 5%;
  background-color: var(--white);
}

.contact-form-container {
  max-width: 70%;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 250px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-gray);
  font-size: 1rem;
}

input::placeholder {
  color: var(--primary-color);
}

textarea::placeholder {
  color: var(--primary-color);
}

.banner {
  padding: 50px 5%;
}

footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 5% 40px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25%;
}

.footer-col {
  flex: 1;
  min-width: 280px;
}

.footer-col h3 {
  font-weight: 600;
}

.footer-info {
  font-weight: 800;
  font-size: 1.1rem !important;
}

.big-title {
  font-size: 2.3rem;
}

.biggest-title {
  font-size: 3rem;
}

.medium-title {
  font-size: 2.5rem;
  color: var(--white);
}

.huge-title {
  font-size: 3.5rem;
}

.subtitle {
  font-size: 3.5rem;
}

.disclaimer {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
}

.btnSubmit {
  cursor: pointer;
  align-content: center;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 5px;
  width: calc(100% - 40px);
  margin: 0px auto;
  border: 0px none;
  border-radius: 25px;
  font-size: 1.2rem;
}

.btnSubmit:hover {
  background-color: var(--primary-dark);
}

.thankyou-wrapper {
  min-height: 100vh;
  background-color: var(--bg-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
}

.thankyou-card {
  background-color: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  padding: 40px 35px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo-thnks {
  height: 90px;
  width: 50%;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  font-weight: bold;
}

.thankyou-card h1 {
  font-size: 2.4rem;
  color: var(--primary-color);
  font-weight: 900;
  margin-bottom: 10px;
}

.thankyou-card p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 35px;
  line-height: 1.6;
}

.back-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
}

.back-btn:hover {
  background-color: var(--primary-dark);
}

.social-icon {
  text-decoration: none;
}

.social-icon svg {
  width: 40px;
  height: 30px;
}

@media (min-width: 1900px) {
  .nav-bar a {
    font-size: 1.375rem;
  }

  .serv-btn {
    font-size: 1.5rem;
  }

  .info-txt h2 {
    font-size: 2.813rem;
  }

  .info-txt h3 {
    font-size: 3.125rem;
  }

  .info-txt p {
    font-size: 2rem;
  }

  .category-bar h1 {
    font-size: 2.813rem;
  }

  .prod-name {
    font-size: 2.125rem;
  }

  .card {
    max-width: 525px;
  }

  .huge-title {
    font-size: 5.313rem;
  }

  .subtitle {
    font-size: 4.375rem;
  }

  .biggest-title {
    font-size: 5rem;
  }

  .big-title {
    font-size: 3rem;
  }

  .medium-title {
    font-size: 3.75rem;
  }

  .tech-txt-box li {
    font-size: 2rem;
  }

  .solution-txt {
    font-size: 1.875rem;
  }

  .intro-text h2 {
    font-size: 3rem;
  }

  .pillar-item h3 {
    font-size: 1.875rem;
  }

  .pillar-item p {
    font-size: 1.875rem;
  }

  .form-title h2,
  h3 {
    font-size: 3.125rem;
  }

  .footer-col p {
    font-size: 1.5rem;
  }

  .footer-col h2 {
    font-size: 2.188rem;
  }

  .footer-col h3 {
    font-size: 1.8rem;
  }

  .form-control {
    font-size: 1.25rem;
  }

  .intro-img img {
    width: auto;
  }

  .tech-img-box,
  .tech-img-box img {
    height: 700px;
  }

  .social-icon {
    text-decoration: none;
  }

  .social-icon svg {
    width: 65px;
    height: 50px;
  }

}

@media (min-width: 1400px) {
  .width-100 {
    width: 100%;
  }
  .logo img {
    height: 60px;
    width: auto;
  }
  .info-item img {
    max-height: 50px;
  }
  .button-toggle {
    width: 50px !important;
    height: 50px !important;
  }
  .nav-bar ul {
    padding: 3px 0;
  }
  .top-banner{
    margin-top: 140px;
  }
  .card {
    min-height: auto;
  }
  .card img{
    max-height: 300px;
  }
}

@media(max-width: 1400px) {
  .serv-btn {
    font-size: 0.8rem;
  }

  .intro-img,
  .intro-text {
    flex-shrink: 1;
  }

}

@media (max-width: 1024px) {
  .header-info {
    gap: 20px;
  }

  .info-item img {
    height: 43px;
  }
  .button-toggle {
    width: 43px !important;
    height: 43px !important;
  }

  @media(max-width: 1000px) {
    .serv-btn {
      font-size: 1rem;
    }
  }

  .info-item {
    gap: 15px;
  }

  .footer-info {
    font-size: 0.9rem !important;
  }
}

@media (min-width: 769px) and (max-width: 1150px) {
  .logowidth {
    width: 30%;
  }
}

@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 90px;
  }

  .mg-tp {
    margin-top: 10%;
  }

  .top-banner {
    background-image: url("/Imagenes/foto_principal_head_cel.png");
  }

  .top-header {
    flex-wrap: wrap;
    padding: 10px 20px;
  }

  .logo {
    flex: 0 1 auto;
    max-width: 75%;
  }

  .logo img {
    max-height: 50px;
    width: auto;
  }

  .menu-toggle {
    display: block;
    position: relative;
    margin: 0;
    flex: 0 0 auto;
  }

  .header-info {
    width: 100%;
    justify-content: center;
    margin-top: 15px;
    order: 3;
  }

  .info-item {
    gap: 22px;
  }

  .info-item img {
    height: 39px;
  }
  .button-toggle {
    width: 39px !important;
    height: 39px !important;
  }

  .menu-toggle {
    display: block;
  }

  .nav-bar ul {
    display: none;
    flex-direction: column;
    background-color: var(--primary-dark);
    position: absolute;
    width: 100%;
    z-index: 999;
    padding: 0;
  }

  .nav-bar ul.active {
    display: flex;
  }

  .nav-bar li {
    display: block;
    margin: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .top-banner {
    margin-top: 0;
    padding: 20px;
    min-height: 450px;
  }

  .service-container {
    flex-direction: column;
  }

  .service-card {
    width: 100%;
  }

  .info-section {
    flex-direction: column;
    min-width: auto;
    display: block;
  }

  .info-txt,
  .tech-info {
    flex-basis: auto;
  }

  .info-txt h2 {
    font-size: 2rem;
  }

  .info-txt h3 {
    font-size: 1.5rem;
  }

  .info-txt p {
    font-size: 1rem;
  }

  .tech-img-box {
    height: auto;
  }

  .tech-img-box img {
    height: auto;
  }

  .big-title {
    font-size: 1.8rem !important;
  }

  .huge-title {
    font-size: 2.5rem !important;
  }

  .subtitle {
    font-size: 2.5rem !important;
  }

  .intro-text h2 {
    font-size: 1.2rem;
  }

  .intro-wrapper {
    height: auto !important;
    margin: 40px auto !important;
    text-align: center;
    padding: 20px 20px 0 20px
  }

  .category-bar h1 {
    font-size: 1.5rem;
  }

  .card {
    margin-bottom: 40px;
    max-width: 330px;
  }

  .footer-container {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .footer-col {
    max-width: unset !important;
  }

}

@media (max-width: 550px) {

  .logo img {
    height: 50px;
    width: auto;
  }

  .footer-container {
    flex-direction: column;
    gap: 35px;
  }

  .medium-title {
    font-size: 1.5rem;
  }

  .pillar-icon {
    width: 100px;
  }

  .tech-txt-box,
  .info-txt {
    padding: 30px 20px;
  }

  .card,
  .footer-col {
    width: 100%;
  }

  .card {
    min-height: auto;
  }
  .card img{
    max-height: 300px;
    width: auto;
  }

  .disclaimer {
    font-size: 1rem;
  }

  .footer-col h2 {
    font-size: 1.125rem;
  }

  .footer-col h3 {
    font-size: 1rem;
  }

  * {
    max-width: 100vw;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  .top-header {
    padding: 10px 15px;
    width: 100%;
  }

  main,
  .service-container,
  .info-section {
    width: 100%;
    max-width: 100%;
  }

  .info-section {
    min-width: 0 !important;
    width: 100%;
  }

  .contact-form-container {
    max-width: 95%;
  }

  .category-bar {
    margin: 25px 15px;
    padding: 15px 20px;
  }

  .top-banner {
    padding-left: 5%;
    padding-right: 5%;
    margin-top: 120px;
  }

  .menu-toggle {
    padding: 0;
  }

  .info-item img {
    max-width: 23vw; 
    margin-left: 8px;
    height: auto;
  }
  .button-toggle {
    width: 30px !important;
    height: 30px !important;
  }
  #language {
    font-size: 9px !important;
  }
  #flag {
    width: 9px !important;
    height: auto !important;
  }

  .no-margin-left {
    margin-left: 0 !important;
  }

  @media (max-width: 425px) {
    .info-item {
      gap: 8px;
    }
  }
}

@media (max-width: 400px) {
  .top-header {
    padding: 10px 10px;
  }

  .header-info {
    margin-right: 0;
  }

  .info-item {
    /* flex-direction: column; */
    gap: 6px;
  }

  .info-item img {
    max-width: 23vw; 
    margin-right: 8px;
    height: auto;
  }

  .no-margin-right {
    margin-right: 0 !important;
  }

  .cards-container {
    padding: 20px 10px;
  }

  .category-bar {
    margin: 20px 10px;
    padding: 15px 15px;
  }

  .biggest-title {
    font-size: 2.3rem;
  }
}

.button-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #009b89;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#toggleLang {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

#language {
  margin: 0;
  font-size: 12px;
  line-height: 1;
}

#flag {
  width: 16px;
  height: auto;
}

@media (min-width: 989px) and (max-width: 1328px) {
  .large-button {
    width: 95% !important;
  }
}