/*👉 “dejá un espacio arriba cuando hagas scroll automático”*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body{
  margin: 0px;
  padding: 0px;
  

    color: #334155; /* gris profesional, no negro puro */
    font-family: 'Inter', sans-serif;
    
}


h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

/********TOPBAR********/

.topbar {
  display: flex; /* activa flexbox → organiza en fila */
  align-items: center; /* centra verticalmente */
  justify-content: space-between; /* separa izquierda y derecha */
  background: linear-gradient(90deg, #0f172a, #1e293b); /* degradado horizontal oscuro */
  color: #cbd5e1; /* color del texto */
  padding: 0.1rem 1.5rem; /* espacio interno */
  font-size: 0.9rem; /* tamaño chico */
   z-index: 1001; /* arriba de navbar */
  transition: transform 0.3s ease;
  
  
}

.topbar.hide {
  transform: translateY(-100%);
}

/* contacto izquierda */
.contacto-item {
  display: flex; /* pone los datos en fila */
  gap: 1rem; /* espacio entre ellos */
}

/********ICONOS********/
.topbar i {
  color: #32dbc6; /* color del icono */
  margin-right: 5px; /* separación con el texto */
  
 
  
}



/* mail */
.topbar p a {
  color: #cbd5e1; /* color del link */
  text-decoration: none; /* sin subrayado */
  transition: 0.3s; /* animación suave */
}

.topbar p a:hover {
  color: #32dbc6;/* cambia color al pasar mouse */
}

/********REDES*******/
.social {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex: 1; /* ocupa espacio disponible (centra en la barra) */
}

.social a {
  width: 1.8rem;   /* antes 2.2 */
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); /* un poco más visible */
  color: #cbd5e1;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 0; /* 🔥 elimina desalineación vertical */
}

.social i {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(1.6px); /* 🔥 corrige que parezca corrido */
}

/* hover moderno */
.social a:hover {
  background: white; /* fondo blanco */
  transform: translateY(-3px) scale(1.08); /* sube y agranda */
  box-shadow: 0 5px 15px rgba(50, 219, 198, 0.4);  /*sombra glow */
}





/********NAV********/

.navbar {
  display: flex;
  position: fixed;      /* 🔥 navbar siempre fija */
  top: 50px;            /* debajo de la topbar */

  left: 0;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 1rem;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 999;         /* debe ser menor que topbar si esta tiene z-index mayor */
  transition: top 0.3s ease; /* opcional: para animar al subir/bajar */
  
}

/* Cuando el topbar se oculta, la navbar sube */
.navbar.topbar-hidden {
  top: 0;
}
/* LOGO */
.logo {
  height: 1rem;
  transition: 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}


/******** MENÚ*********/
.menu {
  display: flex;     /* pone los li en fila */
  gap: 0.3rem;       /* espacio entre items */
  list-style: none;  /* saca los puntitos */
  margin: 0 3rem;
  padding: 0;
  
}



.menu a {
   display: inline-block; /* 🔥 clave */
  padding: 8px 14px;     /* 🔥 crea la "franja" */
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
  border-radius: 6px;    /* opcional: bordes suaves */
   font-size: 0.95rem;
  font-weight: 500;
  
}

/* línea animada crea debajo del menu */
.menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #32dbc6;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.menu a:hover {
  color: #32dbc6;
}

.menu a:hover::after {
  width: 100%;
}

.menu a.active {
  background: #32dbc6; /* o el color que uses */
  color: white;
  border-radius: 6px;
}


/********PORTADA********/
.hero {
  background-image: url('../assets/fondo.jpg'); /* tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  height: 90vh; /* ocupa casi toda la pantalla */
  
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;
  position: relative;
}

/* OSCURECER LA IMAGEN (clave para que se lea el texto) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* CONTENIDO */
.hero-contenido {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.25rem; /* 20px */
}



/*Boton de contacto*/
.btn-hero {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a; /* oscuro para contraste */
  background: #32dbc6;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* hover */
.btn-hero:hover {
  background: #28bfae;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(50, 219, 198, 0.4);
}

/* click */
.btn-hero:active {
  transform: scale(0.97);
}

.servicios {
  padding: 3rem 0.5rem;
  background-color: #f9fafb;
  text-align: center;
}

/* título */
.servicios-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.servicios-header p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #666;
}

/********SERVICIOS GRID********/
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas */
  gap: 1.5rem;
}

/* tarjeta */
.servicio {
  background: white;
  padding: 1.5rem;
  border-radius: 0.6rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: left;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* título de cada servicio */
.servicio h3 {
  margin-bottom: 0.5rem;
  color: #222;
}

/* texto */
.servicio p {
  color: #555;
  font-size: 0.95rem;
}

/* hover */
.servicio:hover {
  transform: translateY(-5px);
}

.ver-mas {
  margin-top: auto; /* 🔥 ESTA ES LA CLAVE */
  padding: 0.5rem 1rem;
  border: none;
  background: #32dbc6;
  color: white;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: 0.3s;
  
}

.ver-mas:hover {
  background: #28bfae;
}


/********MODAL********/
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
   /* display: flex; */
  justify-content: center;
  align-items: center;
   z-index: 9999; /* 🔥 importante */
}

.modal-contenido {
   background: white;
  padding: 2rem;
  border-radius: 0;       /* sin redondeo si querés full screen */
  width: 100%;            /* ocupa todo el ancho */
  height: 100%;           /* ocupa todo el alto */
  max-width: 80%;        /* ignora max-width anterior */
  max-height: 80%;       /* ignora max-height */
  position: relative;
  box-shadow: none;       /* opcional, full screen no necesita sombra */
  border-top: 4px solid #32dbc6;
  overflow-y: auto;       /* scroll si contenido excede pantalla */
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-top: 4px solid #32dbc6
  
}

#modal-titulo {
 font-size: 1.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem; /* espacio entre texto y línea */
  border-bottom: 2px solid #e5e7eb; /* 👈 línea gris elegante */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#modal-titulo i {
  font-size: 1.4rem;
}

#modal-texto ul {
  padding-left: 1.2rem;
}

#modal-texto li {
  margin-bottom: 0.5rem;
  position: relative;
}

/* puntitos más modernos */
#modal-texto li::marker {
  color: #32dbc6;
}

.cerrar {
  position: absolute;
  top: 12px;
  right: 15px;

  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  color: #32dbc6;

  border: 2px solid #32dbc6;
  border-radius: 50%;

  cursor: pointer;
  transition: all 0.3s ease;
}


/********NOSOTROS********/
.historia {
  padding: 4rem 2rem;
  background: #f8fafc;
}

.historia-contenido {
  max-width: 1100px;
  margin: auto;
}

.historia h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.historia p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: center;
}

/* GRID visión misión valores */
.historia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.bloque {
  background: white;
  padding: 1.5rem;
  border-radius: 0.6rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: 0.3s;
}

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

.bloque h3 {
  margin-bottom: 1rem;
  color: #32dbc6;
}






/********SITIOS DE INTERES********/

.sitios {
  padding: 4rem 2rem;
  background: #f8fafc;
  text-align: center;
}

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

.sitios-descripcion {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #475569;
}

.sitios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: auto;
}

.sitio-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
}

.sitio-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sitio-card i {
  font-size: 1.8rem;
  color: #32dbc6;
  margin-bottom: 10px;
}

.sitio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


/********CONTACTANOS********/

.contactos {
  text-align: center;
  font-size: 2.2rem;
  color: #0f172a;
  margin-bottom: 2.5rem;
  position: relative;
}

/* línea decorativa abajo */
.contactos::after, .sitios-interes::after, .nosotros::after, .servicios-generales::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #32dbc6;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.contactanos {
  padding: 4rem 2rem;
  background: #f8fafc;
}

.ubicacion {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

/* MAPA */
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 12px;
}

/* DATOS */
.datos {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.datos div {
  margin-bottom: 1.5rem;
}

.datos h3 {
  color: #32dbc6;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.datos p {
  font-size: 0.95rem;
}

.datos a {
  color: #cbd5e1;
  text-decoration: none;
}

.datos a:hover {
  color: #32dbc6;
}


/********FOOTER********/
.footer {
  background: #0f172a;
  color: #cbd5e1;
   padding: 3.5rem 2rem 1.5rem;
   font-size: 0.9rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.footer-contenido {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.footer-col h4 {
  color: #32dbc6;
  margin-bottom: 1rem;
}


/* TEXTOS (iconos alineados) */
.footer-col p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0; /* 🔥 importante */
  font-size: 0.95rem;
}

/* LINKS */
.footer-col a {
  display: inline-block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col i {
  min-width: 2rem;
  text-align: center;
}

.footer-col a:hover {
  color: #32dbc6;
}

.footer-logo {
  width: 120px;
  margin-bottom: 1rem;
}

.footer-redes {
  display: flex;
  gap: 12px;
}

.footer-redes a {
   font-size: 1.2rem;
  color: #cbd5e1;
  transition: 0.3s;
}

.footer-redes a:hover {
  color: #32dbc6;
}

/*****COPYRIGHT*******/

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #1e293b;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: #32dbc6;
  text-decoration: none;
}


.footer-bottom a:hover {
  text-decoration: underline;
}




/* ANIMACIÓN TOPBAR */
.topbar {
  transition: transform 0.3s ease;
}

/* OCULTAR */
.topbar.hide {
  transform: translateY(-100%);
}


/* BOTON HAMBURGUESA */


/* Botón hamburguesa */
.hamburger {
  display: none; /* por defecto no se muestra */
  flex-direction: column;
  justify-content: center; /* centramos las barras verticalmente */
  align-items: center;
  width: 2.5rem;
  height: 2.5rem; /* un poco más alto para las barras */
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100; /* arriba del menú */
  margin: 1rem;

  position: relative; /* importante */
}

.hamburger span {
  display: block;
  width: 100%;
    height: 3px;
  margin: 3px 0;
  background: #0f172a;
  border-radius: 3px;
  margin: 0.25rem 0; /* espacio entre barras */
  transition: all 0.3s ease;
  transform-origin: center; /* muy importante para la rotación centrada */
}

.hamburger.open span {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  top: 50%;
}


/* Animación cruz */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  background: #fff;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  background: #fff;
}




.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 4rem;
  height: 4rem;

  background: #25D366;
  color: white;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;

  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 9999;

  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}


/*Titulos y seccion*/
h2 {
  font-size: 2rem;   /* 32px */
  font-weight: 600;
}

h3 {
  font-size: 1.2rem; /* 19px */
  font-weight: 600;
}

p {
  font-size: 1rem;   /* 16px */
  line-height: 1.6;
}

@media (max-width: 1024px) {

  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .sitios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-contenido {
    grid-template-columns: repeat(2, 1fr);
  }

  
}

/* ===== MOBILE ===== */
@media (max-width: 834px) {

  /* ===== TOPBAR ===== */
  .topbar {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 5px;
    margin-bottom:0;
  }

  .contacto-item {
    display: flex;
    flex-direction: row;
    margin: 0;
    gap: 10px;
  }

  .social {
    margin: 0.25rem;
  }

  .social a {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social i {
    font-size: 1rem;
  }

  .topbar p {
    margin: 0;
  }

  /* ===== NAVBAR ===== */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0;
    padding: 0.25rem 0.75rem;
    top: 7.2rem; /* ajusta según altura de topbar */
    position: fixed;
    width: 100%;
    background: white;
    z-index: 1000;
    box-sizing: border-box; /* incluye padding en width */
  }
 

  .logo {
    height: 55px;
    object-fit: contain;
  }

  /* ===== MENÚ ===== */
  .menu {
    display: flex;
  flex-direction: column;
  width: 100%;
  background-color: white;
  padding: 10px 0;
  overflow: hidden;

  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: all 0.3s ease;

  margin: 0; /* 🔥 importante (saca ese 0.25rem) */
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 14px 20px;
  }

   .menu a::after {
    display: none; /* 🔥 ocultás la línea en mobile */
  }

  .menu.active {
    max-height: 500px; /* suficiente para que entre todo */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  }

  .menu li {
    text-align: left;
    margin: 2px 0;
    width: 100%;
  }

  /* ===== BOTÓN HAMBURGUESA ===== */
 .hamburger {
  display: flex;            /* se muestra en móvil */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background: #0f172a;      /* visible sobre el navbar blanco */
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 0.25rem;
  background: #fff;         /* barras visibles */
  margin: 0.25rem 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

  /* ===== HERO ===== */
  .hero {
    height: 60vh;
    padding: 20px;
  }

  .hero h1 {
    font-size: 2rem; /* 32px */
  }


  h2 {
    font-size: 1.5rem; /* 24px */
  }

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

  /* ===== SERVICIOS ===== */
  .servicios-grid,
  .historia-grid,
  .sitios-grid {
    grid-template-columns: 1fr;
  }

  /* ===== CONTACTO ===== */
  .ubicacion {
    grid-template-columns: 1fr; /* 🔥 esto es lo correcto */
  }

  .map iframe {
    height: 300px;
  }

  /* ===== FOOTER MOBILE ===== */
.footer-contenido {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 30px; /* un poco más de aire */
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* LOGO */
.footer-logo {
  margin: 0 auto;
  max-width: 120px;
}

/* TITULOS */
.footer-col h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

/* TEXTOS (con iconos alineados) */
.footer-col p {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center; /* 🔥 centra icono + texto */
  gap: 8px;
}

/* LINKS */
.footer-col a {
  display: block;
  margin-bottom: 5px;
}

/* ICONOS MÁS PROLIJOS */
.footer-col i {
  min-width: 18px;
  text-align: center;
}

/* REDES */
.footer-redes {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-redes a {
  font-size: 1.2rem;
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 15px;
}
}

@media (max-width: 834px) {

  .topbar{
    margin-bottom: 3rem;
  }

  .hero {
    padding-top: 100px;
  }
}


@media (max-width: 500px) {

  .navbar{
    margin-bottom: 0rem;
  }
}