/* --- VARIABLES Y RESET --- */
:root {
  --primary: #11294a;
  --secondary: #1a3c66;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --bg-grey: #e0e0e0;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 80px;
}

body {
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  padding-top: 80px;
}

body.menu-open {
  overflow: hidden;
}

p {
  text-align: left;
}


a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- CLASES DE UTILIDAD --- */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 10px 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: black;
}

/* --- HEADER & NAV --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 80px;
  background-color: var(--bg-white);

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

.logo img {
  width: 100px;
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 50px;
  align-items: center;
}

.nav-links .nav__link {
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-links .nav__link:hover {
  color: var(--primary);
}

.nav-links .nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links .nav__link:hover::after {
  width: 100%;
}

.nav__link-contact {
  display: none;
}

.btn-link a {
  color: white;
  gap: 10px;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
}

.overlay.active {
  display: block;
}

/* --- HERO SECTION --- */
#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 22px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(887px - 80px);
  padding: 20px 7px;
  overflow: hidden;
  background:
    linear-gradient(rgba(17, 41, 74, 0.8), rgba(17, 41, 74, 0.6)),
    url("../img/ImagenFondo-Hero.png");
    
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 30px;
  margin-bottom: 20px;
}

.btn-white {
  background-color: white;
  color: var(--primary);
  border: 2px solid white;
}

.btn-white:hover {
  background-color: transparent;
  color: white;
}

.carrusel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carrusel {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.group-carrusel {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: scroll-infinito 20s linear infinite;
}

.card {
  list-style-type: none;
  flex: 0 0 305px;
  height: 257px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

@keyframes scroll-infinito {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 10px));
  }
}


/* --- ABOUT US --- */
#nosotros {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.values-box {
  background: var(--bg-light);
  padding: 20px;
  border-left: 4px solid var(--primary);
  margin-top: 20px;
}

.values-box p {
  font-size: 0.9rem;
  margin-top: 5px;
}

.about-img {
  width: 100%;
  height: 400px;
  background-color: #ccc;
  border-radius: 10px;
  background-image: url("../img/foto\ editada\ 10.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 45px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat__number {
  display: block;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/*--- LOGOS ---*/

#company-logos {
    height: auto;
    padding: 20px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch;
}

#group-company {
    animation: none; 
    width: max-content;
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
}

.logos {
    flex: 0 0 300px; 
    height: 250px;
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logos:hover {
    transform: scale(0.98);
}

/* --- SCROLLBAR MINIMALISTA GEOMÉTRICO --- */
#company-logos::-webkit-scrollbar {
    height: 8px; 
}

#company-logos::-webkit-scrollbar-track {
    background: var(--bg-grey);
    border-radius: 0px; 
}

#company-logos::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0px; 
    border: 2px solid var(--bg-grey); 
}

#company-logos::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* --- BOTONES DE SCROLL MINIMALISTAS --- */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.scroll-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.scroll-left { left: 10px; }
.scroll-right { right: 10px; }

/* --- MODAL DE IMAGEN (LIGHTBOX) --- */
.image-modal {
    display: none; 
    position: fixed;
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

/* --- SERVICES (ANIMATED CARDS) --- */
#servicios {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  cursor: default;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(17, 41, 74, 0.15);
  border-bottom: 5px solid var(--primary);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- CONTACT (LEAD FORM) --- */
#contact {
  padding: 80px 0;
  background: var(--bg-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

.contact-info {
  background: var(--primary);
  color: white;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.form-box {
  padding: 50px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {         
max-width: 100%;        
    box-sizing: border-box; 
     padding: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.input-correct{
    border: 2px solid green;
}
.input-incorrect{
    border: 3px solid red;
}

.input-group{
  border: 1px solid #ddd;
}

.form-group input,
.form-group select {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: white;
}

.form-datalist {
  width: 100%;
  border-radius: 4px;
}

.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--secondary);
}

/* --- FOOTER --- */
footer {
  background: #111;
  color: white;
  padding: 40px 0;
  text-align: center;
}

footer p {
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.copyright {
  color: #888;
  font-size: 0.9rem;
  margin-top: 20px;
}

/* --- ANIMATION CLASSES (JS TRIGGER) --- */
.reveal {
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.4s ease-out;
}

.reveal.active {
  opacity: 1;
}

/* --- RESPONSIVE --- */
/* Tablet / Menú Móvil (Break point del diseño de navegación) */
@media (max-width: 820px) {

  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    height: 100vh;
    background: white;
    flex-direction: column;
    width: 65%;
    padding: 20px;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: none;
    z-index: 1001;
  }

  .nav__link-contact {
    display: block;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(-20px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.2s;
  }

  .nav-links.active li:nth-child(2) {
    transition-delay: 0.3s;
  }

  .nav-links.active li:nth-child(3) {
    transition-delay: 0.4s;
  }

  .nav-links.active li:nth-child(4) {
    transition-delay: 0.5s;
  }

  .nav-links.active li:nth-child(5) {
    transition-delay: 0.6s;
  }

  .nav-links.active li:nth-child(6) {
    transition-delay: 0.7s;
  }

  .btn-link {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

}

/* Tablet Vertical / Celulares Grandes */
@media (max-width: 768px) {

  #home {
    padding: 20px 7px;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .card {
    flex: 0 0 220px;
    height: 200px;
  }

  .about-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    gap: 0;
  }

  .contact-info{
    padding: 30px 20px; 
    width: 100%;
    box-sizing: border-box;
  }
  .form-group {
      width: 100%;
      margin-bottom: 15px;
  }

  .form-group input, 
  .form-group select {
      width: 100%;
      min-width: 0;
      font-size: 16px;
  }

  .about-img {
    height: 300px;
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .form-box {
    padding: 30px 20px;
  }
}

/* Celulares */
@media (max-width: 480px) {
  /* Ajustes del Header */
  .logo {
    font-size: 1.1rem;
  }

  .logo img {
    width: 75px;
    height: 38px;
  }

  .nav-links {
    width: 85%;
  }

  /* Ajustes de Títulos */
  .section-title {
    font-size: 1.75rem;
  }

  /* Ajustes del Formulario y Contacto */
  .contact-info {
    padding: 25px 15px;
  }

  .contact-info h3 {
    font-size: 1.5rem;
  }

  .form-box {
    padding: 20px 10px;
  }

  .form-group input,
  .form-group select {
    font-size: 16px;
  }
}