@import url("../fonts.css");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Fuentes cargadas previamente: “Montserrat-Bold” y “Poppins-Regular” */
  --color-principal: #143da5;
  --color-texto: #333333;

  /* Fondos de secciones: las puedes ajustar o usar otras clases */
  --bg-odd: #ffffff;
  --bg-even: #ededed;
  /* Si deseas colores más vivos o personalizar: define aquí y asigna a .bg-odd/.bg-even o nuevas clases */

  --padding-vertical: 60px;
  --padding-horizontal: 20px;
  --gap: 40px;
  --max-content-width: 1440px;
  --border-radius-img: 12px;
}

/* Tipografías */

/* Sección Parallax */
.parallax {
  background-image: url("../../Images/ParallaxExample.webp");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-content {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
  padding: 2rem 3rem;
  border-radius: 1rem;
  text-align: center;
  color: #fefefe;
  width: 80%;
  min-width: 400px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.parallax-content h2 {
  font-family: "Montserrat-Bold";
}

.parallax-content p {
  font-family: "Poppins-Regular";
}

.parallax-content a {
  font-family: "Poppins-Bold";
  font-size: 16px;
}

/* Botones */
.btn-contacto {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #fefefe;
  color: #143da5;
  font-weight: 400;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.3s ease;
  max-width: 200px;
}

.btn-contacto:hover {
  background: #143da5;
  color: #fefefe;
}

/* Sección Servicios */
.servicios {
  background-color: white;
  padding: 0px 30px 50px;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.servicios h2 {
  text-align: center;
  font-family: "Montserrat-Bold";
  font-size: 2rem;
  color: var(--color-principal);
  margin-bottom: 1rem;
  padding: 30px 0px;
}

.contenedor-servicios {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.servicio {
  width: 260px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: translateY(-5px);
}

.servicio svg {
  height: 60px;
  width: 60px;
  fill: #143da5;
  position: relative;
  top: 10px;
}

.servicio h3 {
  font-family: "Montserrat-Regular";
  font-weight: 900;
  margin: 10px 0;
  font-size: 1.2em;
  color: #333;
}

.servicio p {
  font-family: "Poppins-Regular";
  font-size: 0.95em;
  color: #555;
  line-height: 1.4;
}

/* Sección Proyectos - Carrusel */
.proyectos-section {
  background: #ededed;
  padding: 0px 40px 50px;
  font-family: "Montserrat-Bold";
}

.proyectos-section h2 {
  text-align: center;
  font-family: "Montserrat-Bold";
  font-size: 2rem;
  color: var(--color-principal);
  margin-bottom: 1rem;
  padding: 30px 0px;
}

.proyectos-section h2 strong {
  font-weight: bold;
}

/* Carrusel mejorado con scroll snapping */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.carousel {
  display: flex;
  gap: 40px;
  overflow-x: hidden; /* evita scroll libre */
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  position: relative;
}

.carousel.dragging {
  cursor: grabbing;
  user-select: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.card {
  background: #f8f8f8;
  border-radius: 12px;
  min-width: 340px;
  max-width: 340px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.card-link {
  text-decoration: none;
  -webkit-user-drag: none;
}

.card.in-view {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.card.out-of-view {
  opacity: 0.3;
  transform: scale(0.9);
  z-index: 0;
}

.card img {
  -webkit-user-drag: none;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.card-content {
  padding: 15px;
  font-size: 14px;
  color: #444;
}

.card-content h3 {
  font-family: "Montserrat-Bold";
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.card-content .location {
  font-family: "Poppins-Regular";
  color: #666;
  font-size: 16px;
  margin-bottom: 10px;
}

.card-content .note {
  font-family: "Poppins-Regular";
  font-size: 0.95em;
  color: #555;
  line-height: 1.4;
}

.price {
  font-family: "Poppins-Bold";
  font-size: 14px;
  color: #003366;
  margin: 5px 0;
}

.price span {
  font-family: "Poppins-Bold";
  font-size: 18px;
  color: #003366;
  margin: 5px 0;
}

.carousel-btn {
  background: #fff;
  border: 2px solid #143da5;
  color: #143da5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-btn:hover {
  background: #143da5;
  opacity: 1;
}

.carousel-btn:hover svg path {
  fill: #fff;
}

.carousel-btn.left {
  left: calc(50% - 600px);
  z-index: 2;
}

.carousel-btn.left svg {
  fill: #143da5;
  width: 25px;
  transform: rotate(90deg);
}

.carousel-btn.right {
  right: calc(50% - 600px);
  z-index: 2;
}

.carousel-btn.right svg {
  fill: #143da5;
  width: 25px;
  transform: rotate(-90deg);
}

#aliados {
  background-color: white;
  padding: 60px 20px;
  text-align: center;
}

#aliados h2 {
  text-align: center;
  font-family: "Montserrat-Bold";
  font-size: 2rem;
  color: var(--color-principal);
}

.aliados-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.aliado {
  flex: 1 1 150px;
  max-width: 150px;
  height: 150px; /* Altura fija */
  display: flex;
  align-items: center;
  justify-content: center;
}

.aliado img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  background: #ededed;
  padding: 40px;
  font-family: Arial, sans-serif;
  gap: 40px;
  justify-content: center;
  text-align: center;
}

.contact-info,
.contact-form {
  flex: 1 1 400px;
  max-width: 500px;
}

.contact-form h2 {
  font-family: "Montserrat-Bold";
  color: #f9f9f9;
  margin-bottom: 10px;
}

.contact-info h2 {
  font-family: "Montserrat-Bold";
  color: #143da5;
  margin-bottom: 10px;
}

.contact-info h3 {
  font-family: "Montserrat-Bold";
}

.contact-info p {
  font-family: "Poppins-Regular";
  color: #555;
  margin: 10px 0;
}

.contact-image {
  width: 100%;
  height: 250px;
  margin: 20px 0;
  border-radius: 8px;
  object-fit: cover;
}

.contact-methods p {
  margin: 10px 0;
  font-size: 16px;
}

.contact-methods svg {
  width: 20px;
  position: relative;
  top: 5px;
  margin-right: 10px;
  fill: #143da5;
}

.social-icons {
  margin-top: 20px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.social-icons a {
  height: 100%;
  width: fit-content;
  color: #143da5;
  text-decoration: none;
  justify-content: center;
  align-items: center;
}

.social-icons a svg {
  margin: 0 10px;
  fill: #143da5;
  height: 100%;
  transition: 0.3s;
}

.social-icons a svg:hover {
  fill: #555;
}

.contact-form {
  background: #143da5;
  padding: 30px;
  border-radius: 10px;
}

.contact-form p {
  font-family: "Poppins-Regular";
  color: #f9f9f9;
  margin-bottom: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form input {
  font-family: "Poppins-Regular";
  font-size: 16px;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  width: 100%;
  max-width: 400px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  color: #f9f9f9;
  max-width: 100%;
}

.checkbox label {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "Poppins-Regular";
  line-height: normal; /* ✅ Define line-height primero */ /* 1lh = 1.5em (asumiendo font-size: 1em) */
}

.checkbox label a {
  color: white; /* 1lh = 1.5em (asumiendo font-size: 1em) */
}

.checkbox label a:hover {
  color: #cccccc; /* 1lh = 1.5em (asumiendo font-size: 1em) */
}

.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  transform: translateY(0.1em);
  margin: 0;
  padding: 0;
}

.privacy-link {
  color: #f9f9f9;
  text-decoration: underline;
  margin-left: 4px;
}

.privacy-link:hover {
  color: #dddddd;
}

#SubmitBtn[type="submit"] {
  font-family: "Poppins-Regular";
  padding: 12px 50px;
  max-width: 80%;
  width: fit-content;
  background: #444;
  color: #f9f9f9;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#SubmitBtn[type="submit"]:hover {
  background: #333;
  font-family: "Poppins-Bold";
}

#SubmitBtn[style*="none"] {
  display: none !important;
}

.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fade-in {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: white;
  color: #10338a;
  text-align: center;
  min-height: 500px;
}

#faq h2 {
  font-family: "Montserrat-Bold";
  font-size: 32px;
  margin-bottom: 30px;
}

#faq h2 span {
  color: #10338a;
  font-style: italic;
}

.faq-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.faq-image {
  text-align: center;
}

.faq-image img {
  position: relative;
  top: -10px;
  right: -10px;
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  -webkit-user-drag: none;
}

.faq-container {
  flex: 1 1 5px;
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  margin-left: auto;
  text-align: left;
}

.faq-container h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  color: #10338a;
}

.faq-item {
  background: #10338a;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  font-family: "Poppins-Regular";
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 20px;
  color: white;
  font-size: 18px;
  display: flex;
  text-align: left;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.faq-question .icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-answer {
  font-family: "Poppins-Regular";
  background: white;
  color: #333;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  font-size: 16px;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 20px;
}

.faq-item.active .icon {
  transform: rotate(45deg);
}

.alert-success {
  z-index: 1;
  background: #143da5;
  color: #fff;
  font-size: 1.2rem;
  padding: 20px 40px;
  min-width: 420px;
  position: fixed;
  font-family: "Montserrat-Bold";
  right: 0;
  top: 110px;
  border-radius: 5px;
  border: 2px solid #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
    /* Sombra exterior */ inset 0 0 0 1px rgba(255, 255, 255, 0.2); /* Borde interior sutil */
}

.alert-error {
  z-index: 1;
  background: #143da5;
  color: #fff;
  font-size: 1.2rem;
  padding: 20px 40px;
  min-width: 420px;
  position: fixed;
  font-family: "Montserrat-Bold";
  right: 0;
  top: 90px;
  border-radius: 5px;
  max-width: 100vw;
  border: 2px solid #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
    /* Sombra exterior */ inset 0 0 0 1px rgba(255, 255, 255, 0.2); /* Borde interior sutil */
}

/* Media Queries */
@media (max-width: 1280px) {
  .carousel-btn.left {
    left: 20px;
  }
  .carousel-btn.right {
    right: 20px;
  }
}

@media (max-width: 1024px) {
  .contact-section {
    padding: 30px;
  }
}

@media (max-width: 992px) {
  .card {
    min-width: 300px;
    max-width: 300px;
  }
}

@media (max-width: 900px) {
  .alert-success,
  .alert-error {
    font-size: 0.9rem;
    min-width: auto;
    padding: 15px 25px;
    left: 0;
    right: 0;
    top: 80px;
    margin: 0 auto;
    text-align: center;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  #HideMobile {
    display: none;
  }

  .checkbox label {
    font-family: "Poppins-Regular";
    line-height: normal; /* ✅ Define line-height primero */
    margin-block: none; /* 1lh = 1.5em (asumiendo font-size: 1em) */
    padding: 0;
    margin: 0;
    width: fit-content;
  }

  .checkbox label a {
    font-family: "Poppins-Regular";
    line-height: normal; /* ✅ Define line-height primero */
    margin-block: none; /* 1lh = 1.5em (asumiendo font-size: 1em) */
    padding: 0;
    margin: 0;
  }

  .contenedor-servicios {
    width: 100%;
    gap: 30px;
  }

  .servicio {
    width: 160px;
    padding: 10px;
  }

  .servicios h3 {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

  #faq {
    padding: 40px 20px;
  }

  .faq-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .faq-container {
    margin: 0 auto;
    width: 100%;
  }

  .faq-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .faq-question {
    font-size: 16px;
  }

  .faq-answer {
    font-size: 14px;
  }

  .faq-image img {
    top: 0;
    margin-bottom: 20px;
  }

  .aliados-container {
    gap: 20px;
  }

  .contact-section {
    flex-direction: column;
    padding: 20px;
    justify-content: center;
    align-items: center;
    padding-bottom: 40px;
  }

  .contact-info,
  .contact-form {
    max-width: 400px;
  }

  .contact-form {
    padding: 20px;
  }

  .parallax {
    height: 450px;
  }

  .parallax-content {
    min-width: 300px;
    min-height: 200px;
  }

  .carousel-btn.left {
    left: 10px;
  }

  .carousel-btn.right {
    right: 10px;
  }

  .card {
    min-width: 280px;
    max-width: 280px;
  }

  .card img {
    height: 300px;
  }

  .carousel {
    gap: 30px;
  }

  .proyectos-section {
    padding: 30px 15px;
  }

  .card {
    min-width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    margin: 0 20px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .contact-info h2,
  .contact-form h2 {
    font-size: 24px;
  }

  .contact-form p {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 20px;
  }

  #SubmitBtn[type="submit"] {
    font-size: 14px;
  }

  .servicios {
    padding: 0px 10px 50px;
  }

  .servicio {
    width: 100%;
    max-width: 160px;
    padding: 20px;
  }

  .servicio svg {
    height: 40px;
    width: 40px;
    fill: #143da5;
    position: relative;
    top: 10px;
  }

  .servicio h3 {
    font-family: "Montserrat-Regular";
    font-weight: 900;
    margin: 10px 0;
    font-size: 1em;
    color: #333;
    text-align: center;
  }

  .servicio p {
    font-family: "Poppins-Regular";
    font-size: 0.95em;
    color: #555;
    line-height: 1.4;
  }

  .card {
    min-width: calc(100% - 5px);
    max-width: calc(100% - 5px);
    margin: 0 0px;
  }

  .card img {
    height: 250px;
  }

  .card-content {
    padding: 12px;
  }

  .carousel-btn {
    position: static;
    z-index: 5;
  }

  .carousel-btn.left {
    left: -10px;
  }

  .carousel-btn.right {
    right: -10px;
  }
}
