@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #008e4a;
  --secondary-color: #ff552d;
  --background-color-1: #323b3f;
  --background-color-2: #37383c;
  --background-color-3: #464646;
  --extra-light: #dfdfdf;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 3.25rem;
  text-align: center;
}

.section__description {
  font-size: 1rem;
  color: var(--extra-light);
  line-height: 1.75rem;
  text-align: justify;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  color: var(--white);
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

header {

  background-color: #1d1b26;
  overflow: hidden;
  padding-top: var(--nav-height);
}

nav {
  height: var(--nav-height);
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
}

.nav__header {
  height: var(--nav-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo a img {
  max-width: 150px;
  /*logo*/
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: #008E4A;
  transition: transform 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(100%);
}

.nav__links a {
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

.nav__links .btn {
  padding: 0;
  font-weight: 500;
  background-color: var(--primary-color);
}

.header__container {
  display: grid;
  gap: 2rem;
}

.header__image img {
  max-width: 8 00px;
  margin-inline: auto;
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 4rem;
  text-align: center;
}

.header__content .section__description {
  margin-bottom: 2rem;

}

.header__btn {
  margin-bottom: 2rem;
  text-align: center;
}

.header__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header__stats h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.header__stats p {
  font-size: 0.9rem;
  color: var(--extra-light);
}

.about {
  background-color: var(--background-color-1);
  overflow: hidden;
}

.about__container {
  display: grid;
  gap: 2rem;
}

.about__image img {
  max-width: 500px;
  margin-inline: auto;
  border-radius: 1rem;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.about__content :is(.section__header, .section__description) {
  margin-bottom: 1rem;
}

.about__btn {
  margin-top: 2rem;
  text-align: center;
}

.program {
  background-color: var(--background-color-2);
}

.program__header {
  display: grid;
  gap: 1rem 4rem;
}

.program__grid {
  margin-top: 4rem;
  display: grid;
  gap: 1rem;
}

.program__card {
  padding: 1rem;
  border-radius: 1rem;
  background-color: var(--background-color-3);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.program__card:hover {
  background-color: var(--secondary-color);
}

.program__card img {
  max-width: 75px;
  margin-bottom: 1rem;
}

.program__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.program__card p {
  margin-bottom: 1rem;
  color: var(--extra-light);
  line-height: 1.75rem;
}

.program__card a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--extra-light);
}

.service {
  background-color: var(--background-color-1);
  overflow: hidden;
}

.service__container {
  display: grid;
  gap: 2rem;
  padding-block: 0;
}

.service__image img {
  max-width: 800px;
  margin-inline: auto;
}

.service__content {
  padding-block: 5rem 0;
}

.service__content .section__header {
  margin-bottom: 2rem;
}

.service__content :is(.section__header, .section__description) {
  text-align: justify;
}

.service__list {
  display: grid;
  gap: 1rem;
}

.service__list h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.service__list span {
  margin-right: 10px;
  color: var(--secondary-color);
}

.service__btn {
  margin-top: 2rem;
}

.testimonial {
  background-color: var(--background-color-2);
}

.testimonial__container {
  display: grid;
  gap: 2rem;
}

.testimonial__content .section__header {
  margin-bottom: 1rem;
}

.testimonial__swiper {
  overflow: hidden;
}

.swiper {
  width: 100%;
}

.testimonial__card {
  padding: 1rem;
  border-radius: 1rem;
  background-color: var(--background-color-3);
}

.user__details {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user__details img {
  max-width: 60px;
  border-radius: 100%;
}

.user__details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.user__details h5 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--extra-light);
}

.user__ratings {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: rgb(19, 214, 19);
}

.testimonial__card .section__description {
  text-align: justify;
}

footer {
  background-color: #008E4A;
  /*COLOR DE FOOTER */
}

.footer__container {
  display: grid;
  gap: 1rem 1rem;
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 30px;
  color: var(--white);
}

.footer__links {
  display: grid;
  gap: 1rem;
}

.footer__links a {
  color: var(--extra-light);
}

.footer__links a:hover {
  color: var(--primary-color);
}

.footer__links a span {
  margin-right: 10px;
  font-size: 1rem;
  color: var(--primary-color);
}

.footer__col form {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 350px;
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: 10rem;
}

.footer__col input {
  width: 100%;
  padding-inline: 1rem;
  font-size: 1rem;
  color: var(--background-color-1);
  outline: none;
  border: none;
  background-color: transparent;
}

.footer__col .btn {
  margin: 5px;
  padding: 4px 10px;
  font-size: 1.5rem;
  border-radius: 5rem;
}

.footer__col p {
  font-size: 1rem;
  line-height: 1rem;
  color: var(--extra-light);
}

.footer__bar {
  padding-block: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid var(--extra-light);
}

.footer__logo img {
  max-width: 150px;
}

.footer__bar p {
  font-size: 1rem;
  line-height: 1.75rem;
  color: var(--extra-light);
  text-align: center;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer__socials a {
  padding: 2px 5px;
  color: var(--background-color-1);
  font-size: 1.125rem;
  background-color: var(--extra-light);
  border-radius: 100%;
}

.footer__socials a:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

@media (width > 540px) {
  .program__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    position: fixed;
    /* ✅ SE MANTIENE */
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    background-color: #008E4A;
    /*COLOR DE BARRA DE NAVEGACION*/
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__header {
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    flex-direction: row;
    gap: 2rem;
    background-color: transparent;
    transform: none !important;
  }
}


.nav__links a:hover {
  color: #be7e2b;
}

.nav__links .btn {
  padding: 0.75rem 1.5rem;
}

.header__container {
  padding-block: 0;
  grid-template-columns: repeat(2, 1fr);
  align-items: flex-end;
}

.header__image {
  grid-area: 1/2/2/3;
  margin-top: -50px;
}

.header__content {
  padding-block: 5rem;
}

.header__content :is(h1, .section__description, .header__btn) {
  text-align: center;
}

.header__stats {
  justify-content: flex-start;
}

.about__container {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.about__content :is(.section__header, .section__description, .about__btn) {
  text-align: justify;
}

.program__header {
  grid-template-columns: repeat(2, 1fr);
}

.program__header :is(.section__header, .section__description) {
  text-align: left;
}

.program__grid {
  grid-template-columns: repeat(4, 1fr);
}

.service__container {
  grid-template-columns: repeat(2, 1fr);
  align-items: end;
}

.service__content {
  padding-block: 5rem;
}

.testimonial__container {
  grid-template-columns: repeat(2, 1fr);
}

.testimonial__content :is(.section__header, .section__description) {
  text-align: justify;
}

.footer__container {
  grid-template-columns: repeat(4, 1fr);
}

.footer__bar {
  flex-direction: row;
  justify-content: space-between;
}

.footer__logo,
.footer__socials {
  flex: 1;
}

.footer__socials {
  justify-content: flex-end;
}

@media (width > 1024px) {
  .program__grid {
    gap: 1.5rem;
  }

  .program__card {
    padding: 1.5rem;
  }

  .testimonial__card {
    padding: 1.5rem;
  }
}

/*portafolio*/

.portfolio-section {
  padding: 50px 5%;
}

.portfolio-title {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 30px;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border: none;
  background: #e0e0e0;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ff9800;
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* TARJETA */
.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card:hover {
  transform: translateY(-8px);
}

/* OVERLAY COLOR */
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: 0.3s;
}

.portfolio-card:hover::after {
  opacity: 1;
}

/* HOVER INFO */
.card-hover {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 2;
  text-align: center;
}

.card-hover img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
}

.portfolio-card:hover .card-hover {
  opacity: 1;
  transform: translateY(0);
}

.hover-text {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

/* MOBILE */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/*=============== Certificado========================= */
/*=============== Certificado========================= */

.certifications-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px 5%;
  background: linear-gradient(135deg, #be7e2b, #ffffff);
}

.certifications-title {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #0c0c0c;
}

.certifications-text {
  font-size: 1.1rem;
  color: #555;
  max-width: 500px;
}

.certifications-image {
  position: relative;
  max-width: 350px;
  margin: auto;
}

.certifications-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s;
}

.certifications-image:hover img {
  transform: scale(1.05);
}

/* Badge animado */
.certifications-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #ff9800;
  color: #edefee;
  padding: 12px 18px;
  border-radius: 30px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .certifications-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .certifications-text {
    margin: auto;
  }

  .certifications-badge {
    left: 50%;
    transform: translateX(-50%);
  }
}

/*CONTACTO*/
/*CONTACTO*/

.contact {
  padding: 100px 20px;
}

.contact-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  align-items: center;
}

.contact-info h2 {
  font-size: 42px;
  color: var(--dark);
  margin-bottom: 15px;
}

.contact-info p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.6;
}

.contact-form {
  background: #fff;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #2f0f0f;
  font-size: 14px;
  outline: none;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
}

.contact-form textarea {
  resize: none;
  height: 120px;
}

.contact-form button {
  margin-top: 10px;
  padding: 15px;
  border-radius: 30px;
  border: none;
  background: var(--green);
  color: #0a0a0a;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #be7e2b;
}

#formStatus {
  text-align: center;
  font-size: 14px;
  margin-top: 5px;
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info h2 {
    font-size: 34px;
  }
}

/*BOTONES FLOTANTE*/
/*BOTONES FLOTANTE*/
.floating-buttons {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* WhatsApp */
.whatsapp-btn {
  background: #25D366;
}

/* Correo */
.email-btn {
  background: #ff9800;
}

/* MOBILE */
@media (max-width: 600px) {
  .float-btn {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

/*=================== CARRUSEL===================== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* SLIDES */
.slides {
  position: absolute;
  inset: 0;
  object-position: center top;/
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

/* OSCURECER */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* TEXTO */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* TEXTOS */
.text {
  position: absolute;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateY(20px);
}

.text.active {
  opacity: 1;
  transform: translateY(0);
}

.text h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.text p {
  max-width: 600px;
  font-size: 1.1rem;
}

/* DOTS */
.dots {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, .4);
  border-radius: 50%;
}

.dot.active {
  background: orange;
}

/* 📱 RESPONSIVE */
@media (max-width: 1000px) {
  .text h1 {
    font-size: 2.2rem;
  }
}

/*===============Mision y vision==================*/

.mv-section {
  padding: 80px 20px;
  background: #f9f9f9;
}

.mv-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Cards */
.mv-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-8px);
}

/* Títulos */
.mv-card h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #ff9800;
}

/* Texto */
.mv-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .mv-container {
    grid-template-columns: 1fr;
  }
}

/* ======== INFORMACION DE LA EMPRESA ========*/
.company-section {
  padding: 10px 20px;
  background-color: #f8f8f8;
}

.company-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

/* GRID DE IMÁGENES */
.company-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.company-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

/* efecto sutil */
.company-images img:hover {
  transform: scale(1.05);
}

/* TEXTO */
.company-info h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #ff9800;
}

.company-info p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

/* 📱 RESPONSIVE */
@media (max-width: 900px) {
  .company-container {
    grid-template-columns: 1fr;
  }

  .company-images img {
    height: 160px;
  }

  .company-info {
    text-align: center;
  }
}

/*=============== PIE DE PAGINA ====================*/
.footer {
  background: #008e4a;
  color: #8d0e0e;
  padding-top: 30px;
}

/* CONTENEDOR */
.footer-container {
  max-width: 900px;
  margin: auto;
  padding: 0 15px 20px;
  text-align: center;
}

/* TÍTULO */
.footer-title {
  font-size: 1.0rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

/* GRID 2x2 */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 350px);
  gap: 3px 300px;
  justify-content: center;
  margin: 0 auto;
}

/* TEXTOS JUSTIFICADOS */
.footer-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: #fffefe;
  text-align: justify;
}

/* PARTE INFERIOR */
.footer-bottom {
  border-top: 1px solid #ffffff;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  color: #ffffff;
}

/* 📱 MÓVIL */
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* PRODUCTO*/

.products {
  padding: 80px 15px;
  background: #f9f9f9;
}

.products-title {
  text-align: center;
  font-size: 3rem;
  margin-top: 30px;
  margin-bottom: 20px;
}

.products-desc {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

/* GRID CENTRADO */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* 📱 móvil */
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  aspect-ratio: 20 / 9;
  /* puedes cambiarlo */
  object-fit: contain;
  display: block;
  background: #ffffff;
  /* opcional si sobra espacio */
}

/* TABLET */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 300px;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .product-card img {
    height: 400px;
  }
}

/* =====================
   MODAL
===================== */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 80%;
  /* 👈 tamaño del fondo negro */
  max-width: 1000px;
  /* 👈 ancho máximo */
  padding: 20px;

  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;

  justify-content: center;
  align-items: center;

  z-index: 1000;
}

.modal-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  animation: zoom 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}

/* ANIMACIÓN */
@keyframes zoom {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}