/* ================================
   VARIABLES DE COLOR
================================ */
:root {
  --verde-oscuro: #1F4A44;
  --verde-medio: #316D5A;
  --verde-claro: #48826C;
  --cian-digital: #00C2D1;
  --blanco-humo: #F5F5F5;
  --gris-piedra: #A7A7A7;
  --gris-oscuro: #333333;
}

/* ================================
   RESET Y BASE
================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
body {
  align-items: center;
  background-color: var(--blanco-humo);
  color: var(--gris-oscuro);
  line-height: 1.6;
  transition: filter 0.3s ease;
}
body.no-scroll {
  overflow: hidden;
}
body.dimmed {
  filter: brightness(0.9);
}
.contenedor-principal {
  max-width: 1900px;
  margin: 0 auto;      /* Centra horizontalmente */
  padding: 0rem;      /* Espaciado lateral en pantallas pequeñas */
}
/* ================================
   HEADER Y NAVEGACIÓN
================================ */
header {
  background: var(--blanco-humo);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-direction: column;
}
.header-inner {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  max-width: 120px;
  height: auto;
  transition: all 0.3s ease-in-out;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--verde-oscuro);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a.active {
  color: var(--cian-digital);
  font-weight: bold;
}
.nav-links a:hover:not(.active) {
  color: var(--verde-claro);
}

.btn-contacto {
  background-color: var(--verde-oscuro);
  color: var(--blanco-humo) !important;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}
.btn-contacto:hover {
  background-color: var(--cian-digital);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ================================
   MENÚ HAMBURGUESA
================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: darkgray;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}
.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ================================
   OVERLAY
================================ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ================================
   SECCIONES GENERALES
================================ */
section {
  padding: 4rem 2rem;
  background-color: #EFEDE7;
  color: var(--verde-oscuro);
  text-align: center;
}
.contenedor-seccion {
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.ancho-1200 {
  max-width: 1200px;
}

.ancho-1400 {
  max-width: 1400px;
}

.ancho-1600 {
  max-width: 1600px;
}

.hero h1 {
  font-size: 2.5rem;
}
footer {
  background-color: var(--verde-oscuro);
  color: white;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* FORMULARIO DE CONTACTO */
.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 0;
}
.formulario-contacto label {
  font-weight: 600;
  color: var(--verde-oscuro);
}
.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.75rem;
  border: 1px solid var(--gris-piedra);
  border-radius: 5px;
  font-size: 1rem;
  background-color: white;
}
.formulario-contacto button {
  padding: 0.75rem 1.5rem;
  background-color: var(--verde-oscuro);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.formulario-contacto button:hover {
  background-color: var(--cian-digital);
}

/* =========================================
   Botón de WhatsApp flotante
========================================= */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 40px;
  height:40px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.btn-whatsapp:hover {
  transform: scale(1.1);
}
.btn-whatsapp img {
  width: 55px;
  height: 55px;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    background-color: var(--blanco-humo);
    width: 100%;
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links li {
    text-align: center;
    padding: 0.5rem 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .logo-img {
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    max-width: 70px;
  }
}
.seccion-nosotros {
  background-color: var(--blanco-humo);
  padding: 0;
}

.contenedor-nosotros {
  display: flex;
  flex-wrap: wrap;
  min-height: 400px;
}

.imagen-nosotros {
  flex: 1 1 40%;
  background-image: url('assets/img/equipo.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--verde-oscuro);
  min-height: 400px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}


.texto-nosotros {
  flex: 1 1 50%;
  background-color: white;
  padding: 3rem 2rem;
  flex-direction: column;
  justify-content: center;
  color: var(--verde-oscuro);
}

.texto-nosotros h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.texto-nosotros p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-accion {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--verde-oscuro);
  color: white;
  font-weight: bold;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-accion:hover {
  background-color: var(--cian-digital);
}
@media (max-width: 768px) {
  .contenedor-nosotros {
    flex-direction: column;
  }
  .imagen-nosotros {
    min-height: 250px;
  }
}
.seccion-portafolio {
  background-color: #EFEDE7;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--verde-oscuro);
}

.grid-portafolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.item-portafolio {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.item-portafolio:hover {
  transform: translateY(-5px);
}

.item-portafolio img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.item-portafolio h3 {
  margin: 1rem 0 0.5rem;
  color: var(--verde-medio);
}

.item-portafolio p {
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
}
.seccion-servicios {
  background-color: white;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--verde-oscuro);
}

.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.item-servicio {
  background-color: #EFEDE7;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.item-servicio img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.item-servicio h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--verde-medio);
}

.item-servicio p {
  font-size: 0.95rem;
  line-height: 1.5;
}
.hero {
  /*background: linear-gradient(to bottom right, var(--blanco-humo), var(--verde-claro)),
              url('assets/img/hero-bg.jpg') no-repeat center center/cover;*/
  background-image: url('file:///C:/Users/Fer/OneDrive/Desktop/Naguara%20Software/assets/img/hero-bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  color: var(--verde-oscuro);
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-hero {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--verde-oscuro);
  color: var(--blanco-humo);
  font-weight: bold;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-hero:hover {
  background-color: var(--cian-digital);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

.typing::after {
  content: "|";
  animation: blink 1s infinite;
  font-weight: bold;
  color: var(--verde-oscuro); /* o el color del texto */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.fade {
  opacity: 0;
  transform: translateY(0px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: block;
  visibility: hidden;
  height: 0;
}
.hero {
  background-color: #e9f5f1;
  padding: 5rem 2rem;
}

.contenedor-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-texto {
  flex: 1 1 500px;
  max-width: 700px;
}

.hero-imagen {
  flex: 1 1 400px;
  text-align: right;
}

.hero-imagen img {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .contenedor-hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-imagen {
    margin-top: 2rem;
  }

  .hero-texto h1 {
    font-size: 2rem;
  }
}


