/* ===========================
   RESET — removes default browser spacing
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  color: #222;
}

/* ===========================
   NAVIGATION BAR
   =========================== */
nav {
  display: flex;                  /* puts logo and links side by side */
  justify-content: space-between; /* logo on left, links on right */
  align-items: center;            /* vertically centered */
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  position: sticky;               /* stays at top when you scroll */
  top: 0;
  background: white;
  z-index: 10;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #1D9E75;   /* green */
}

.logo span {
  color: #378ADD;   /* blue — the "sam" part */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
}

.nav-links a:hover {
  color: #1D9E75;  /* turns green on hover */
}

/* ===========================
   HERO SECTION (big top banner)
   =========================== */
.hero {
  /* Filtro oscuro semi-transparente + Imagen desde tu nueva carpeta */
  background: linear-gradient(rgba(8, 80, 65, 0.65), rgba(0, 0, 0, 0.7)), 
              url('/static/Imagenes/portadabiosam.jpeg');
  
  /* Ajustes para que la foto se vea perfecta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* Espaciado y alineación limpios */
  padding: 6rem 2rem;
  text-align: center;
  color: #ffffff;
}
.hero h1 {
  color: #ffffff;
  font-size: 2.8rem; /* Un tamaño grande y llamativo */
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Una sutil sombra para dar profundidad */
}

.hero p {
  color: #f0fdf4; /* Un blanco ligeramente verdoso muy suave */
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem auto; /* Centra el bloque de texto */
}

.slogan-badge {
  display: inline-block;
  background: #1D9E75;
  color: white;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;      /* makes it pill-shaped */
  margin-bottom: 1.5rem;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-block;
  background: #1D9E75;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0F6E56;
}

.btn-outline {
  display: inline-block;
  border: 2px solid #1D9E75;
  color: #1D9E75;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  margin-left: 12px;
}

.btn-outline:hover {
  background: #E1F5EE;
}

/* ===========================
   GENERAL SECTION STYLES
   =========================== */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1D9E75;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 26px;
  margin-bottom: 1rem;
  color: #085041;
}

.body-text {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.divider {
  border: none;
  border-top: 1px solid #eee;
}

/* ===========================
   SERVICE CARDS
   (the 4 boxes in Services section)
   =========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
  gap: 16px;
  margin-top: 2rem;
}

.card {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #085041;
}

.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ===========================
   WHY BIOSAM SECTION
   =========================== */
.why-section {
  background: #f5f5f0;
  padding: 4rem 2rem;
  margin: 0;
  width: 100%;
}

.why-section .section-label,
.why-section h2 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 860px;
  margin: 2rem auto 0;
}

.why-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* The small green dot bullet */
.dot {
  width: 8px;
  height: 8px;
  min-width: 8px;        /* stops it from shrinking */
  background: #1D9E75;
  border-radius: 50%;    /* makes it a circle */
  margin-top: 6px;
}

.why-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ===========================
   PROJECTS SECTION
   =========================== */
.projects-section {
  background: #F1EFE8;
  padding: 4rem 2rem;
  width: 100%;
}

.projects-section .section-label,
.projects-section h2,
.projects-section .body-text {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.tag {
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

/* Form inputs */
.contact-form {
  display: flex;
  flex-direction: column;  /* stacks inputs vertically */
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: #085041;
  color: #9FE1CB;
  text-align: center;
  padding: 2rem;
  font-size: 14px;
  line-height: 2;
}

footer strong {
  color: white;
}

/* ===========================
   MOBILE RESPONSIVE
   Makes it look good on phones
   =========================== */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr; /* 1 card per row on mobile */
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .nav-links {
    display: none; /* hides nav links on small screens */
  }
}
/* ===========================
   WHATSAPP FLOATING BUTTON
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366; /* Verde oficial de WhatsApp */
  border-radius: 50px;
  box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
  z-index: 100; /* Asegura que esté por encima de todas las fotos */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1); /* Da un pequeño salto cuando pones el ratón encima */
}

.whatsapp-float img {
  width: 35px;
}
/* ===========================
   PÁGINA DE GALERÍA APARTE
   =========================== */
.gallery-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-header h2 {
  font-size: 32px;
  color: #085041;
}

.gallery-header p {
  color: #555;
  font-size: 16px;
  margin-top: 10px;
}

.divider-green {
  width: 60px;
  height: 4px;
  background-color: #1D9E75;
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

/* La cuadrícula de fotos */
.gallery-grid {
  display: grid;
  /* Esto hace que automáticamente se pongan en columnas de 300px o más, adaptándose a celulares o PC */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* La caja de cada foto */
.photo-item {
  height: 250px; /* Todas las fotos tendrán la misma altura */
  border-radius: 12px;
  overflow: hidden; /* Oculta lo que se salga de la caja */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* La foto por dentro */
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la foto inteligentemente para que no se aplaste ni se estire */
  transition: transform 0.4s ease; /* Prepara la animación */
}

/* Efecto al pasar el mouse (Zoom sutil) */
.photo-item:hover img {
  transform: scale(1.1); /* Hace la foto un 10% más grande */
  cursor: pointer;
}
/* ===========================
   MODAL (FOTO EN GRANDE LIGHBOX)
   =========================== */
.modal {
  display: none; /* Se mantiene oculta hasta que JavaScript la despierte */
  position: fixed;
  z-index: 2000; /* Un número muy alto para que cubra TODO, hasta el WhatsApp */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Fondo negro casi sólido */
  justify-content: center;
  align-items: center;
}

/* La foto cuando está en grande */
.modal-content {
  max-width: 90%;
  max-height: 90vh; /* Para que nunca sea más alta que tu pantalla */
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease; /* La animación de entrada */
}

/* El botón de la X */
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

/* Al pasar el ratón por la X, se pone del verde de BIOSAM */
.close-modal:hover {
  color: #1D9E75; 
}

/* La magia de la animación suave */
@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}