/* VARIABLES Y RESET */
:root {
  --blue-dark: #072339;
  --blue-primary: #0d2b47;
  --gray-text: #575755;
  --gray-light: #f4f6f8;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 50px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--gray-text);
  line-height: 1.6;
  background-color: var(--white);
}

/*UTILIDADES Y CONTENEDORES (MIN/MAX WIDTH) */
.container {
  width: 100%;
  max-width: 1200px;
  min-width: 320px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

h1,
h2,
h3 {
  color: var(--blue-dark);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 40px;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px auto;
  font-size: 17.6px;
  color: var(--gray-text);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--blue-primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--blue-primary);
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background-color: transparent;
  color: var(--blue-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--blue-dark);
}
/*HEADER / NAVEGACIÓN*/
header {
  background-color: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 15.2px;
}

.nav-links a:hover {
  color: var(--white);
}

/*BOTÓN HAMBURGUESA (oculto en desktop)*/
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  position: absolute;
  left: 7px;
}

.hamburger-line:nth-child(1) {
  top: 10px;
}
.hamburger-line:nth-child(2) {
  top: 19px;
}
.hamburger-line:nth-child(3) {
  top: 28px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/*SECCIÓN INICIO (HERO)*/
#inicio {
  background-image: linear-gradient(
      135deg,
      rgba(7, 35, 57, 0.85) 0%,
      rgba(13, 43, 71, 0.75) 100%
    ),
    url("img/bannerprincipal.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: var(--white);
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

#inicio h1 {
  color: var(--white);
  font-size: 56px;
  margin-bottom: 24px;
}

#inicio p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/*SECCIÓN NOSOTROS*/
#nosotros {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 28.8px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--blue-primary);
}

.about-text p {
  margin-bottom: 24px;
  text-align: justify;
  font-size: 16.8px;
}

.about-image {
  background-color: var(--gray-light);
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 35, 57, 0.15);
  transition: var(--transition);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* SECCIÓN SERVICIOS  */
#servicios {
  background-color: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  text-align: center;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  border-top: 4px solid var(--blue-primary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(7, 35, 57, 0.1);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--blue-primary);
}

.service-card h3 {
  font-size: 20.8px;
  margin-bottom: 15px;
}

/* SECCIÓN PROCESO*/
#proceso {
  background-color: var(--white);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  height: 3px;
  background-color: #e2e8f0;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  padding: 0 15px;
}

.step-number {
  width: 80px;
  height: 80px;
  background-color: var(--blue-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px auto;
  border: 4px solid var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step h4 {
  color: var(--blue-primary);
  font-size: 19.2px;
  margin-bottom: 10px;
}

/*SECCIÓN CONTACTO */
#contacto {
  background-color: var(--blue-dark);
  color: var(--white);
}

#contacto h2,
#contacto .section-subtitle {
  color: var(--white);
}

#contacto .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  transition: var(--transition);
  color: var(--gray-text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(13, 43, 71, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  background-color: var(--blue-primary);
  color: var(--white);
  padding: 16px;
  border: none;
  border-radius: 6px;
  font-size: 17.6px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--blue-dark);
}

/* FOOTER*/
footer {
  background-color: #051a2b;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 30px 0;
  font-size: 16px;
}

/* MEDIAS QUERYS */

@media (max-width: 1024px) {
  #inicio {
    background-attachment: scroll;
    background-position: center center;
  }

  #inicio h1 {
    font-size: 50px;
  }

  #inicio p {
    font-size: 25px;
  }

  #nosotros h2 {
    font-size: 35px;
  }

  #nosotros h3 {
    font-size: 30px;
    text-align: center;
  }

  #nosotros p {
    font-size: 21px;
    text-align: justify;
  }

  #nosotros .btn {
    width: 35%;
    text-align: center;
    display: block;
    margin: 0 auto;
  }

  #servicios h2 {
    font-size: 35px;
  }

  #servicios p {
    font-size: 21px;
  }

  #servicios h3 {
    font-size: 25px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  #proceso h2 {
    font-size: 35px;
  }
  #proceso p {
    font-size: 21px;
  }
  #proceso h4 {
    font-size: 24px;
  }

  #contacto h2 {
    font-size: 35px;
  }

  #contacto p {
    font-size: 21px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-image {
    height: 300px;
  }
}

/* Celulares y pantallas pequeñas (Max Width) */
@media (max-width: 768px) {
  #inicio {
    background-attachment: scroll;
    background-position: center center;
  }

  .section-padding {
    padding: 60px 0;
  }

  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* Menú móvil: oculto por defecto */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed; /* Fijo para que cubra toda la pantalla */
    top: 0;
    right: -100%; /* Oculto fuera de la pantalla a la derecha */
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--blue-dark);
    padding: 100px 30px 30px 30px;
    gap: 25px;
    align-items: flex-start;
    text-align: left;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease-in-out; /* Animación suave de deslizamiento */
    overflow-y: auto;
  }

  /* Cuando el menú está ACTIVO (abierto) */
  .nav-links.active {
    right: 0; /* Se desliza hacia adentro */
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    font-size: 17.6px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav-links a.btn {
    margin-top: 15px;
    text-align: center;
    border-bottom: none;
  }

  /* Overlay oscuro de fondo cuando el menú está abierto */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  #inicio h1 {
    font-size: 25px;
  }
  #inicio p {
    font-size: 17px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 75%;
    text-align: center;
    margin: 0 auto;
    display: block;
  }

  #nosotros h2 {
    font-size: 25px;
  }

  #nosotros h3 {
    font-size: 20px;
    text-align: center;
  }

  #nosotros p {
    font-size: 16px;
    text-align: justify;
  }
  #nosotros .btn {
    width: 75%;
    text-align: center;
    display: block;
    margin: 0 auto;
  }

  #servicios h2 {
    font-size: 25px;
  }

  #servicios p {
    font-size: 16px;
  }
  #servicios h3 {
    font-size: 22px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  #proceso h2 {
    font-size: 25px;
  }

  #proceso p {
    font-size: 16px;
  }

  #proceso h4 {
    font-size: 20px;
  }

  #proceso p {
    font-size: 15px;
  }

  #contacto h2 {
    font-size: 25px;
  }

  #contacto p {
    font-size: 16px;
  }
  .process-steps {
    flex-direction: column;
    gap: 30px;
  }
  .process-steps::before {
    width: 0px;
  }
  .step-number {
    margin: 0 auto 15px auto;
  }

  .contact-wrapper {
    padding: 25px;
  }
}

/* Pantallas muy grandes (Min Width) */
@media (min-width: 1025px) {
  #inicio {
    background-attachment: scroll; /* En móvil quitamos el parallax para mejor rendimiento */
    background-position: center center;
  }
  .container {
    max-width: 1320px;
  }
  #inicio h1 {
    font-size: 64px;
  }
}

/* Contenedor principal del footer */
.cvts-footer-wrapper {
  background-color: #f8f9fa;
  color: #000000;
  font-family: "Opens sans", sans-serif;
  padding-top: 40px;
}

/* Contenedor de ancho máximo */
.cvts-inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.cvts-layout-main {
  display: grid;

  grid-template-columns: 30% 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.cvts-img-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
}

.cvts-slogan-text {
  color: #000000;
  font-size: 16px;
  line-height: 1.5;
}

.cvts-contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.cvts-info-block h4 {
  font-size: 16px;
  color: #00356b;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cvts-info-block p {
  margin: 8px 0;
  color: #000000;
}

.cvts-info-block a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s;
}

.cvts-info-block a:hover {
  color: #003bfe;
}

/* Estilo de botones para Redes Sociales */
.cvts-social-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cvts-btn-social {
  width: 200px;
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
  padding: 5px 16px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cvts-btn-social:hover {
  background-color: #10003f;
  color: #ffffff !important;
  border-color: #0a0046;
}

.cvts-bottom-bar {
  background-color: #eeeeee;
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}

.cvts-bottom-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cvts-bottom-layout p {
  margin: 0;
}

.cvts-legal-nav a {
  color: #666;
  text-decoration: none;
}

.cvts-legal-nav a:hover {
  text-decoration: underline;
}

.cvts-divider {
  margin: 0 10px;
  color: #ccc;
}

.cvts-layout-main {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.cvts-contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 1024px) {
  .cvts-layout-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cvts-bottom-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .cvts-bottom-layout p {
    margin: 0;
  }
}
@media (max-width: 767px) {
  .cvts-contact-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .cvts-brand-section,
  .cvts-info-block {
    text-align: center;
  }

  .cvts-img-logo {
    margin: 0 auto 15px auto;
  }

  .cvts-social-wrapper {
    align-items: center;
  }
}
