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

:root {
  --primary-color: #55aee2;
  --primary-dark: #2a5893;
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --bg-light: #f3f4f6;
  --bg-white: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
  
  
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Navbar */ .navbar {
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav-container {
 max-width: 1500px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  gap: 10px;
}

.nav-logo img {
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 20px 15px;
  transition: 0.3s ease-in-out;
}

.nav-links li {
  list-style: none;
}

.nav-links li a {
  position: relative;
  color: var(--primary-color);
  font-size: 1rem;
  padding: 6px 0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  display: inline-block;
  width: 100%;
}

.nav-links li a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--primary-color);
  border-radius: 12px;
  transition: all 0.4s ease;
}

.nav-links li a:hover:before {
  width: 100%;
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  background-color: var(--primary-color);
  height: 3px;
  width: 28px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Animación del botón hamburguesa */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Estilo para cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
}

/* Responsive */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    height: calc(100vh - 60px);
    width: 100%;
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 3px 15px rgb(0 0 0 / 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .service-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .contact-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li a {
    font-size: 1.2rem;
  }
}

/* Header & Sections */

header, section {
  padding: 80px 0;
  background: #ffffff;
  width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px; 
  margin-top: -80px;
}

@media (max-width: 768px) {
  .hero-content  {
  margin-top: auto; 
  }
}

.hero-text {
  flex: 1.6;
  max-width: 900px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.1;
  animation: fadeInUp 1s ease forwards;
  color: var(--primary-dark);
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 500px;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease forwards;
  color: #374151;
}

.hero-img {
  flex: 1 1 450px;
  animation: fadeInRight 1.5s ease forwards;
  display: flex;
  justify-content: flex-end;
}

.hero-img img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block; 
}

/* Botones */

.btn {
  background: white; /* color primario */
  color:   var(--primary-color);
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 2px solid var(--primary-color);
  animation: fadeInUp 1.4s ease forwards;
  text-decoration: none;
}

.btn:hover {
  background: var(--primary-color);
  color: #ffffff; 
  border: none;
}


.about {
  width: 100%;
  background-color: var(--bg-white);
  padding: 80px 20px;
  text-align: start;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  animation: fadeInUp 1s ease forwards;
  text-align: start;
  text-align: start; /* Se alinea al centro para que se vea como los demas H2 */
  margin-left: auto;
  margin-right: auto;
  width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

.about-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px;
  flex-wrap: wrap; /* Para que en pantallas pequeñas se acomode */
}

.about-text {
  flex: 1 1 500px;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeInUp 1.2s ease forwards;
  text-align: justify;
  max-width: 700px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #374151;
}

.about-img {
  flex: 1 1 450px;
  animation: fadeInRight 1.5s ease forwards;
  display: flex;
  justify-content: flex-end;
  max-width: 600px;
}

.about-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .about h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 0 10px;
  }

  .about-container h2 { /* Alinea el h2 dentro del contenedor en pantallas pequeñas */
    text-align: center;
  }

  .about-text {
    text-align: center;
    max-width: 100%;
  }

  .about-img {
    justify-content: center;
    max-width: 100%;
  }
}


/* Servicios */

.services {
  text-align: start;
  width: 100%;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 700;
  color: var(--primary-dark);
  animation: fadeInUp 1s ease forwards;
   
}


@media (max-width: 768px) {
  .services h2 {
    text-align: center;
    margin-left: 0;
    font-size: 2rem;
  }
}
  
.services-content {
  width: 100%;
 max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center; 
  gap: 40px;
  padding: 0 20px; 
  margin-top: -80px;
  display: grid;
}


.service-grid {  
  display: grid;
    grid-template-columns: repeat(3, 1fr);
 
}

.service-box {
  /* background: #f3f4f6; */
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1.2s ease forwards;
}


 
.service-box h3 {
  font-size: 1.6rem;
  margin: 20px 0 15px;
  color: var(--primary-color);
}

.service-box p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Iconos grandes para servicios */
.icon {
  font-size: 3.5rem;
  color: #3c70b6; /* color primario */
  user-select: none;
  transition: color 0.35s ease;
}

 

/* Contacto */
.contact {
  width: 100%;
}

.contact-container {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 0 20px;
  animation: fadeInUp 1s ease forwards;
}

.contact-form h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-dark) 
}

.contact-form p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: var(--text-secondary);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(60,112,182,0.1);
}

@media (max-width: 768px) {
  .contact h2 {
    text-align: center;
    margin-left: 0;
   font-size: 2rem;
  }
}


/* Social Media */
.social-media {
  margin-top: 40px;
  text-align: start;
}

.social-media h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: start;
  gap: 25px;
  padding: 0;
}

.social-links li a {
  display: inline-block;
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.social-links li a:hover {
  transform: scale(1.2);
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}


.map-section {
  max-width: 1500px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
  text-align: start;
}

.map-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
}

 
.toast {
  visibility: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 90%;
  padding: 16px 24px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  font-weight: 300;
  color: black;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease, top 0.4s ease;
  background-color: #ffffff; 
}

.toast.show {
  visibility: visible;
  opacity: 1;
  top: 40px;
}

/* Estados */

/* .toast.success {
  background-color: #ffffff;  
}

.toast.error {
  background-color: #ef4444;  
}

.toast.loading {
  background-color: #facc15;  
  color: #1f2937;
} */

/* Íconos SVG */
.toast svg {
  width: 20px;
  height: 20px;
}
