:root {
  --sage: #c4d7b2;
  --blanco: #ffffff;
  --gris: #f2f2f2;
  --oscuro: #2f3e2e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5fdf7;
  background-image: url("img/patronfloral.png");
  background-repeat: repeat;
  background-size: cover;
  color: var(--oscuro);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--sage);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-logo {
  padding: 0;
  margin: 0;
  
}

.logo-navbar {
  height: 90px;
  width: auto;
  display: block;
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--sage);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.centered-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* permite hacer clic en los elementos detrás si es necesario */
}

.logo-navbar {
  height: 150px;
  width: auto;
}

.hamburger {
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--oscuro);
  z-index: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  z-index: 1;
}


.hamburger {
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  color: var(--oscuro);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--oscuro);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #1d261b;
}

/* HEADER / SLOGAN */
.header-carousel {
  background: var(--sage);
  text-align: left;
  padding: 0.5rem 0;
}

.slogan-carousel {
  height: 1.5rem;
  position: relative;
  overflow: hidden;
  line-height: 1.5rem;
}

.slogan-item {
  position: absolute;
  width: 100%;
  opacity: 0;
  text-align: center;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5rem;
  transition: opacity 0.8s ease;
}

.slogan-item.active {
  opacity: 1;
}

/* FOTO CAROUSEL CON BOTÓN */
.foto-carousel {
  position: relative;
  margin: 2rem 1rem;
  border-radius: 12px;
  
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.85);
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  flex: 0 0 100%;
  border-radius: 10px;
}

.carousel-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.carousel-buttons button {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem 0.9rem;
  border-radius: 8px;
  color: var(--oscuro);
}

.absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--sage);
  color: var(--oscuro);
  font-weight: bold;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.absolute-center:hover {
  background-color: #a8c99b;
}

/* SECCIONES */
.intro,
.servicios,
.contacto {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  margin: 1rem;
  text-align: center;
}

.intro h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--sage);
  color: var(--oscuro);
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #a8c99b;
}

.servicios h2,
.contacto h2 {
  font-size: 1.8rem;
}

.servicios ul {
  list-style: none;
  margin-top: 1rem;
}

.servicios li {
  padding: 0.5rem 0;
  font-weight: 500;
}

/* FORMULARIO */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: auto;
  padding: 1rem;
  background: #a8c99b46;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.192);
}

input, button {
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

button {
  background: var(--sage);
  color: var(--oscuro);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #a8c99b;
}

.email-note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: #444;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem;
  background: var(--sage);
  font-size: 0.9rem;
  margin-top: auto;
}

.redes a {
  margin: 0 0.7rem;
  text-decoration: none;
  color: var(--oscuro);
  font-weight: bold;
}

/* MODAL GALERÍA */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: var(--blanco);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: var(--oscuro);
}

.close {
  color: #333;
  font-size: 1.8rem;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.galeria-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--sage);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .intro, .servicios, .contacto {
    padding: 1rem;
    margin: 0.5rem;
  }

  form {
    width: 100%;
    padding: 0 1rem;
  }

  input, button {
    width: 100%;
  }

  .intro h1 {
    font-size: 1.5rem;
  }

  .logo, .nav-logo {
    font-size: 1.6rem;
  }

  .carousel-track img {
    max-height: 250px;
  }

  .absolute-center {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

.gracias-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.gracias {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.gracias h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--oscuro);
}

.gracias p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #444;
}

.carousel-buttons {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  box-sizing: border-box;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.carousel-buttons button {
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  border-radius: 10px;
  color: var(--oscuro);
  transition: background 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.carousel-buttons button:hover {
  background-color: var(--sage);
}

@media screen and (max-width: 768px) {
  .carousel-buttons {
    top: auto;
    bottom: 70px;
    transform: none;
    justify-content: center;
    gap: 1.5rem;
  }

  .carousel-buttons button {
    font-size: 1.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
  }

  .galeria-btn {
    font-size: 1rem;
    padding: 0.7rem 1.4rem;
  }
}


@media screen and (max-width: 768px) {
  /* ... ya existen otros estilos aquí ... */

  .carousel-buttons button {
    font-size: 1.5rem;
    padding: 0.2rem 0.6rem;
  }
}

.carousel-buttons {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  box-sizing: border-box;
  top: 50%; /* puedes borrar esta línea si usas 'bottom' en móviles */
  transform: translateY(-50%);
}

@media screen and (max-width: 768px) {
  .carousel-buttons {
    top: auto;
    bottom: 200px; /* ajusta según la altura del botón galería */
    transform: none;
  }
}

.servicios {
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  margin: 1rem;
  border-radius: 10px;
}

.servicios h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--oscuro);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.servicio-card {
  background-color: #ffffffcc;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.servicio-card i {
  font-size: 2.5rem;
  color: var(--oscuro);
  margin-bottom: 1rem;
}

.servicio-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--oscuro);
}

.servicio-card p {
  font-size: 0.95rem;
  color: #444;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-content: center; /* 👈 esto asegura el centrado */
}

.servicio-card {
  max-width: 320px;
  margin: 0 auto;
}

