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

/* === Variables === */
:root {
  --orange: #FF6B00;
  --navy: #1d2a63;
  --text-dark: #333;
  --text-gray: #555;
  --bg-light: #f5f5f5;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
}

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

/* === HEADER === */
header {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.head {
  display: flex;
  padding: 1.2rem 10%;
  justify-content: space-between;
  align-items: center;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  gap: 2rem;
}

.logo {
  width: 12vw;
  height: 5vh;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 5;
}

nav a {
  list-style: none;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.btn-menu:hover {
  color: var(--orange);
  background: rgba(255, 107, 0, 0.12);
  font-size: 1rem;
  transform: none;
  cursor: pointer;
}

.btn-contacto {
  background-color: var(--orange);
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
}

.btn-contacto:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
}

button:hover {
  transition: all 0.2s ease;
}

/* === HERO IMAGES === */
.header-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  transform: scaleX(-1);
  position: absolute;
  top: 0; left: 0;
  z-index: -1;
}

.header-image-servicios {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: top;
  position: absolute;
  top: 0; left: 0;
  z-index: -1;
}

.header-image-nosotros {
  width: 100%;
  height: 70vh;
  object-fit: fill;
  object-position: center;
  position: absolute;
  top: 0; left: 0;
  z-index: -1;
}

/* === OVERLAYS === */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
  z-index: -1;
}

.overlay-servicios {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 70vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
  z-index: -1;
}

.overlay-nosotros {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 70vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.25));
  z-index: -1;
}

/* === HERO CONTENT === */
.head-container {
  color: white;
  position: relative;
  padding: 4rem 0 0;
  margin: 0 10%;
  margin-bottom: 5%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 200%;
}

.tittle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.head-container-servicios {
  position: relative;
  top: -8vh;
  width: 100%;
  height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  color: white;
  font-size: 2rem;
  padding-bottom: 3vh;
}

.head-container-nosotros {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 10%;
  padding-right: 10%;
  text-align: left;
  color: white;
  z-index: 2;
}

.tittle-servicios {
  margin: 0 10%;
  padding: 2rem 0;
  font-weight: 700;
}

.tittle-nosotros {
  font-weight: 700;
}

.btn-asesoria {
  display: inline-block;
  margin: 0 10%;
  background-color: var(--orange);
  color: white;
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.85rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.45);
}

.btn-asesoria:hover {
  background-color: #e65c00;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.55);
  color: white;
}

.head-semi-footer {
  margin-bottom: 10%;
}

/* === TEXT SECTION (Servicios header desc) === */
.text {
  display: flex;
  font-size: 1.2rem;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  align-items: center;
  width: 100%;
  height: 30vh;
  margin-top: 5%;
  color: #444;
  padding: 0 15%;
}

/* === VIEWS === */
.servicios-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-size: 2rem;
  width: auto;
}

/* === SERVICE CARDS (Inicio) === */
.servicios {
  margin: 0 5%;
  padding: 5% 8%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  gap: 2rem;
}

.item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
  border-radius: 14px;
  color: #444;
  background-color: #f5f5f5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.item:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 35px rgba(255, 107, 0, 0.18);
  border-color: var(--orange);
}

.item p {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  color: #444;
}

.icon-pin {
  rotate: -45deg;
}

/* === INFO SECTION === */
.info {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 10%;
}

.barra {
  width: 100%;
  background-color: var(--orange);
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4%;
  margin-bottom: 5%;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.p-info {
  margin: 0 5%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-wp {
  margin: 0 5%;
  background-color: #254ed3;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-wp:hover {
  background-color: #1a3db5;
  transform: scale(1.04);
  color: white;
}

/* === MISION VISION (Inicio) === */
.mision-vision {
  width: 100%;
  color: #444;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  margin: 0 5%;
  margin-bottom: 5%;
}

.misionTitle {
  margin: 0.5rem 0 1rem;
  font-size: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  position: relative;
}

.misionTitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.mision-vision-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 1rem;
  gap: 4rem;
  padding-right: 10%;
  margin-top: 1rem;
}

.mision-vision-content div { flex: 1; }

.mision-vision-content > div > p:first-child {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

/* === SERVICIOS INTRO === */
.servicios-intro {
  text-align: center;
  padding: 3.5rem 15% 0;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* === SERVICES PAGE === */
.service {
  color: #444;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: small;
  margin: 4% 5%;
  gap: 3rem;
}

.nosotros-view { top: auto; }

.about-us {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #444;
  font-size: 1.1rem;
  margin: 4rem 5%;
  gap: 3rem;
}

.service img {
  width: 25vw;
  height: 25vw;
  border-radius: 15px;
  object-fit: cover;
}

.mision-img {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-right: 2vw;
}

.vision-img {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-left: 2vw;
}

.mision-img img,
.vision-img img {
  width: 15vw;
  height: 25vw;
  border-radius: 15px;
  object-fit: cover;
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  font-size: 1.1rem;
}

.mision-content {
  width: 35vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  font-size: 1.1rem;
}

.vision-content {
  width: 35vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  font-size: 1.1rem;
}

.service-content h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  align-items: flex-start;
  padding-bottom: 0.4rem;
}

.service-content h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.mision-content h2,
.vision-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mision-content h2::after,
.vision-content h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 0.4rem;
}

.mision-content ul,
.vision-content ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.mision-content ul li,
.vision-content ul li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
  color: #555;
}

.mision-content ul li::before,
.vision-content ul li::before {
  content: '▸';
  color: var(--orange);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.service-last {
  background-color: #f0f0f0;
  width: 100vw;
  margin-left: calc(-1 * ((100vw - 98.5%) / 2));
  padding: 3rem 5vw;
  margin-bottom: 0;
}

.btn-Transito {
  display: inline-block;
  background-color: var(--orange);
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border: none;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.btn-Transito:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
  color: white;
}

.service-image {
  display: flex;
  flex-direction: row;
  gap: 1vw;
}

.service-image img {
  border-radius: 15px;
  width: 14vw;
  height: 20.5vw;
  object-fit: cover;
}

.service-subimage {
  display: flex;
  flex-direction: column;
}

.service-subimage img {
  width: 10vw;
  height: 9.5vw;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 0.5vw;
}

/* === RESULTADOS === */
.resultados {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #fff8f3 0%, #ffffff 100%);
  padding: 5rem 3rem;
  margin: 2rem auto 3rem;
  width: 88%;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(255, 107, 0, 0.1);
}

.metricas {
  text-align: center;
  margin-bottom: 3rem;
}

.metricas h2 {
  font-size: 4.5rem;
  color: var(--orange);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.metricas p {
  font-size: 1rem;
  color: #666;
  max-width: 420px;
  line-height: 1.6;
}

.barras {
  width: 100%;
  max-width: 800px;
}

.barra-resultado {
  margin-bottom: 1.8rem;
}

.barra-resultado p {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  font-size: 0.95rem;
}

.barra-externa {
  background-color: #e5e5e5;
  border-radius: 50px;
  overflow: hidden;
  height: 28px;
}

.barra-interna {
  background: linear-gradient(90deg, var(--orange), #ff9240);
  height: 100%;
  color: white;
  font-weight: 700;
  text-align: right;
  padding-right: 12px;
  line-height: 28px;
  border-radius: 50px;
  font-size: 0.9rem;
}

/* === VALORES === */
.valores {
  background-color: #f7f7f7;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.titulo-valores {
  font-size: 2.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.titulo-valores::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.6rem auto 2.5rem;
}

.contenedor-valores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.valor {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  transition: transform 0.3s ease;
  cursor: default;
}

.valor:hover {
  transform: translateY(-6px);
}

.valor img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 1rem;
  border: 3px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.valor:hover img {
  border-color: var(--orange);
  box-shadow: 0 6px 22px rgba(255, 107, 0, 0.25);
}

.valor p {
  font-weight: 700;
  color: #333;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
}

/* === CONTACTO === */
.contacto {
  padding: 5rem 2rem 4rem;
  background-color: #fff;
  text-align: center;
  color: #333;
}

.contacto-titulo {
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #333;
}

.contacto-titulo::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.6rem auto 1.5rem;
}

.contacto-subtitulo {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  color: #666;
}

.contacto-formulario {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fila {
  display: flex;
  gap: 1rem;
  flex-direction: row;
  flex-wrap: wrap;
}

.fila input { flex: 1; }

.contacto-formulario input,
.contacto-formulario textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  background: #fafafa;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
  background: #fff;
}

.contacto-formulario button {
  background-color: var(--orange);
  color: white;
  padding: 1rem;
  font-size: 1.05rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.3);
  letter-spacing: 0.04em;
}

.contacto-formulario button:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);
}

/* === FOOTER === */
footer {
  display: flex;
  background-color: var(--navy);
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  padding: 3.5rem 0 2rem;
  justify-content: center;
}

.footer-content {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2.5rem;
  margin-bottom: 1rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0 4%;
  min-width: 200px;
}

.footer-section h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-section li {
  list-style: none;
  font-size: 0.9rem;
}

.footer-section li a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-section li a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.copy {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* === WHATSAPP FLOATING BUTTON === */
.whatsapp-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.55rem 1.2rem 0.55rem 0.8rem;
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.whatsapp-text {
  font-size: 0.85rem;
  color: #333;
  margin-right: 0.7rem;
  line-height: 1.3;
  font-weight: 500;
}

.whatsapp-icon {
  width: 40px;
  height: 40px;
}

/* === LEGAL PAGES === */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  background-color: var(--navy);
  padding: 1.2rem 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-header .logo {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.legal-header nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.legal-header nav a:hover {
  color: var(--orange);
  background: rgba(255, 107, 0, 0.1);
}

.legal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3e8a 100%);
  color: white;
  padding: 5rem 10%;
  text-align: center;
}

.legal-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.legal-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

.legal-hero .orange-line {
  display: block;
  width: 70px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.legal-content {
  flex: 1;
  max-width: 860px;
  margin: 4rem auto;
  padding: 0 2rem;
  color: #444;
  line-height: 1.8;
  text-align: justify;
}

.legal-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
  padding-left: 1rem;
  border-left: 4px solid var(--orange);
}

.legal-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #555;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: #555;
}

.legal-content ul li {
  margin-bottom: 0.4rem;
}

.legal-content .legal-date {
  display: inline-block;
  background: #fff4ed;
  color: var(--orange);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
}
