/*
 * Neurobot - Static Website Stylesheet
 * Migrated from neurobot-mx React & LESS sources
 */

/* Root Variables */
:root {
  --width-desktop: 1280px;
  --tone1: #00B2ED;
  --tone2: #00A7E1;
  --tone3: #0095C7;
  --tone4: #0078A1;
  --tone5: #004961;
  --color-primary: #00A7E1;
  --color-text: #404040;
  --triad2: #E0164B;
  --compdoble2: #E04216;
  --gradient5-color1: #6681EA;
  --gradient5-color2: #7E43AA;
}

/* Base HTML & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 4.5rem 0 0 0;
  color: var(--color-text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  padding: 0;
  font-weight: 800;
  line-height: 100%;
}

h1 { font-size: 3.0rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.0rem; }

a {
  text-decoration: none;
  color: var(--gradient5-color1);
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

p {
  margin: 0 0 1rem 0;
  padding: 0;
  line-height: 150%;
}

img {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 100%;
  border: none;
  outline: none;
}

/* Fixed Header */
.header-outer {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.2);
  background: #ffffff;
  z-index: 1000;
}

.header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--width-desktop);
  height: 4rem;
  margin: 0 auto;
  padding: 0;
}

.header-left {
  flex-grow: 1;
}

.header-left a {
  display: inline-block;
}

.header-logo {
  display: block;
  height: 3rem;
  margin: 0;
  padding: 0;
  border: none;
  line-height: 100%;
}

.header-right {
  flex-grow: 1;
}

/* Header Menu (Mobile First) */
.header-menu {
  position: fixed;
  top: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 999999;
}

.header-menu li {
  display: none;
  margin: 0 0 2rem 0;
  padding: 0;
}

.header-menu li:first-child {
  display: flex;
}

.header-menu li a {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
}

.header-menu.header-menu-show {
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.header-menu.header-menu-show li {
  display: block;
}

.header-menu.header-menu-show li:first-child {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.header-menu-button-show {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 0 1rem 0;
  color: #ffffff;
  border: solid 1px #ffffff;
  border-radius: 0.2rem;
  background: var(--color-primary);
  cursor: pointer;
}

.header-menu-button-show a {
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.header-menu-button-social {
  font-size: 2.0rem;
}

/* Header Menu (Desktop) */
@media (min-width: 1024px) {
  .header-menu {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    z-index: auto;
    background: none;
    padding: 0;
  }

  .header-menu li {
    display: block;
    margin: 0;
    padding: 0;
  }

  .header-menu li:first-child {
    display: none;
  }

  .header-menu li a {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 500;
  }

  .header-menu li a:hover {
    color: var(--tone4);
  }

  .header-menu-button-show {
    display: none;
  }
}

/* Main Cover / Hero */
.coverx {
  width: 100%;
  background-size: cover;
  background-position: center;
  background-image: url("../static/images/02.jpg");
}

.covery-bg {
  background: rgba(196, 22, 224, 0.5);
  background: linear-gradient(135deg, rgba(196, 22, 224, 0.5), rgba(0, 178, 237, 1));
}

.covery {
  width: 100%;
  max-width: var(--width-desktop);
  height: calc(100vh - 4.5rem);
  min-height: 38rem;
  max-height: 56rem;
  margin: auto;
  padding: 2rem 1rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.covery > * {
  text-align: center;
}

.covery h1 {
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 120%;
  margin-top: 1.5rem;
}

.covery p {
  max-width: 100%;
  font-size: 1.4rem;
  line-height: 150%;
  margin-top: 1rem;
}

.covery img {
  display: inline-block;
  height: 8rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .covery > * {
    margin: 0 0 0 36rem;
    text-align: right;
  }
}

@media (max-width: 768px) {
  .covery h1 {
    font-size: 2.1rem;
  }
  .covery p {
    font-size: 1.1rem;
  }
  .covery img {
    height: 6rem;
  }
}

/* Containers and Blocks */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.block {
  width: 100%;
  max-width: var(--width-desktop);
  margin: 3.5rem auto;
  padding: 0 1rem;
}

/* Anchor smooth scrolling offset */
#about-us, #location {
  scroll-margin-top: 5.5rem;
  display: block;
}

.title {
  text-transform: uppercase;
  display: block;
  line-height: 120%;
  font-size: 1.8rem;
}

.title h2 {
  display: inline;
  font-size: inherit;
  font-weight: 800;
  color: var(--color-primary);
}

.about-us {
  line-height: 160%;
  text-align: justify;
  font-size: 1.15rem;
  margin-top: 1rem;
}

.contactanos {
  display: table;
  margin: 1.5rem auto;
  padding: 0.6rem 2rem;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  line-height: 100%;
  border-radius: 2rem;
  background: var(--color-primary);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contactanos:hover {
  background: var(--tone3);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Diferencial Section */
.diferencial {
  text-align: center;
}

.diferencial img {
  width: 100%;
  max-width: 32rem;
  margin: 1rem auto;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
}

.diferencial p {
  font-size: 1.4rem;
  margin: 1.5rem 0;
  text-align: center;
  line-height: 160%;
}

@media (max-width: 768px) {
  .diferencial p {
    font-size: 1.15rem;
  }
}

/* Servicios Section */
.servicios {
  display: block;
  margin-top: 2rem;
}

.servicio {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
  background: #ffffff;
  text-align: center;
}

.servicio img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.servicio h3 {
  margin: 1.5rem 0 1rem 0;
  text-transform: uppercase;
  font-size: 1.5rem;
}

.servicio .contactanos {
  margin: 1rem auto 0 auto;
}

@media (min-width: 1024px) {
  .servicios {
    display: flex;
    gap: 2rem;
  }

  .servicio {
    flex: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
}

/* Fases Section */
.fases {
  display: block;
  margin-top: 2rem;
}

.fase {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
  background: #ffffff;
  text-align: center;
}

.fase img {
  width: 100%;
  border-radius: 0.5rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.fase h4 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .fases {
    display: flex;
    gap: 1.5rem;
  }

  .fase {
    flex: 1;
    margin: 0;
    padding: 1.5rem;
  }

  .fase h4 {
    font-size: 1.15rem;
  }
}

/* Location Section */
.location {
  width: 100%;
  max-width: var(--width-desktop);
  margin: 3.5rem auto;
  padding: 0 1rem;
}

.location h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.ubicacion {
  display: block;
}

.location-maps {
  width: 100%;
  height: 340px;
  margin: 0 auto 1rem auto;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
  border: 0;
}

.location-info {
  padding: 0.5rem 0;
}

.location-info strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  color: #111111;
}

.location-info strong:first-child {
  margin-top: 0;
}

.location-info p {
  font-size: 1.05rem;
  margin: 0.3rem 0;
  color: #404040;
}

.location-info p i {
  width: 1.5rem;
  color: var(--color-primary);
}

.location-info p a {
  color: var(--color-primary);
  font-weight: 500;
}

.location-info p a:hover {
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .ubicacion {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }

  .ubicacion > * {
    width: 50%;
  }
}

/* Footer */
.footer-container {
  background: var(--tone3);
  margin-top: 4rem;
}

.footer {
  width: 100%;
  max-width: var(--width-desktop);
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.footer-social {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.footer-social li a {
  color: #ffffff;
  font-size: 2.0rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social li a:hover {
  opacity: 0.85;
  transform: scale(1.1);
}

.footer-copyright {
  margin: 0.5rem 0;
  color: #ffffff;
  text-align: center;
  line-height: 150%;
  font-size: 0.95rem;
}

.footer-contact {
  margin: 1rem 0 0 0;
  color: #ffffff;
  text-align: center;
  line-height: 150%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact a {
  color: #ffffff;
  font-weight: bold;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact i {
  font-size: 1.2rem;
}
