/*GENERAL*/
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playwrite+AU+QLD:wght@100..400&display=swap");

body {
  font-family: "Montserrat", sans-serif;
}

/* Transición del navbar al hacer scroll */
.navbar.transition {
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background-color: #ffffffe5 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  filter: brightness(0) invert(1);
}

/* Botón WhatsApp flotante */
.btn-whatsapp {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background-color: #25d366; /* Verde WhatsApp */
  color: white;
  font-size: 28px;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background-color: #1ebd5a;
  transform: translateY(-50%) scale(1.1);
}

/* Cuando el navbar tiene la clase .scrolled, el logo vuelve a su versión original */
.navbar.scrolled .logo {
  filter: none;
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Video fondo */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Capa oscura */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Contenido sobre el video */
.hero-content {
  z-index: 2;
}

/* Texto con sombra */
.hero h1 {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.navbar-toggler {
  background: #fff;
}
.navbar-collapse.show {
  background: #000000e3;
  height: 100vh;
  width: 100vw;
  padding-top: 100px;
}

/* Botón dorado */
.btn-gold {
  background-color: #d4af37;
  color: #fff;
  border: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-gold:hover {
  background-color: #b8932c;
  color: #fff;
}

/* Texto descriptivo */
.hero-descripcion {
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#frase-dinamica {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 300;
  color: #d4af37; /* dorado */
}

/* Ícono alineado */
.btn-gold i {
  vertical-align: middle;
}
.hero-firma {
  font-style: italic;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  color: #f8f9fa;
}

/* Servicios: tarjetas con imagen, máscara y efecto hover */
.servicio-card {
  height: 250px;
  overflow: hidden;
  border: none;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* oscurece la imagen */
  transition: filter 0.3s ease;
}

.servicio-card .card-img-overlay {
  z-index: 2;
  background: rgba(0, 0, 0, 0.3); /* máscara suave */
  transition: background 0.3s ease;
}

.servicio-card:hover img {
  filter: brightness(0.9); /* ilumina al hacer hover */
}

.servicio-card:hover .card-img-overlay {
  background: rgba(0, 0, 0, 0.1); /* máscara más clara al hacer hover */
}

.servicio-card h5 {
  font-size: 1.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.navbar .nav-link {
  color: white;
  font-weight: 600;
  margin: 0 0.75rem; /* separa a izquierda y derecha */
  padding: 0.5rem 0;
  text-transform: uppercase;
}

.navbar .navbar-nav {
  align-items: center;
}

.servicio-card h5,
.servicio-card h3 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .navbar .nav-link {
    margin: 0.5rem 0;
    text-align: center;
  }
}

/* Al hacer scroll: navbar con fondo blanco y letras doradas */
.navbar.scrolled .nav-link {
  color: #d4af37 !important;
}
/*CONTACTO */
/* Estilo dorado elegante */
.btn-gold:hover {
  background-color: #c49c25;
  color: #fff;
}

/* Inputs y selects con bordes dorados */
.contact-form .form-control,
.contact-form .form-select {
  background-color: #111;
  color: #fff;
  border: 1px solid #d4af37;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: #c49c25;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.contact-form label {
  color: #d4af37;
  font-weight: 500;
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/*URNAS*/
.container-urnas {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transform: skew(5deg);
}

.container-urnas .card {
  flex: 1;
  transition: all 1s ease-in-out;
  height: 75vmin;
  position: relative;
}

.container-urnas .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1s ease-in-out;
  filter: grayscale(100%);
}

.container-urnas .card .card__head {
  color: black;
  background: rgba(245, 189, 69, 0.75);
  padding: 0.5em;
  transform: rotate(-90deg);
  transform-origin: 0% 0%;
  transition: all 0.5s ease-in-out;
  min-width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 1em;
  white-space: nowrap;
}

.container-urnas .card:hover {
  flex-grow: 10;
}

.container-urnas .card:hover img {
  filter: grayscale(0);
}

.container-urnas .card:hover .card__head {
  text-align: center;
  top: calc(100% - 2em);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  font-size: 2em;
  transform: rotate(0deg) skew(-5deg);
}

.container-urnas .card:not(:nth-child(5)) {
  margin-right: 1em;
}

/*UBICACION*/
.mapa-full {
  width: 100%;
  height: 500px;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.05);
}

.mapa-full iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/*NOSOTROS*/
#nosotros {
  background: #222;
}
.imagen-marcos {
  position: relative;
  display: inline-block;
}

.imagen-marcos img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Marco superior izquierdo */
.marco-superior {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 160px;
  height: 160px;
  border-top: 15px solid #d4af37; /* dorado */
  border-left: 15px solid #d4af37;
}

/* Marco inferior derecho */
.marco-inferior {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 160px;
  height: 160px;
  border-bottom: 15px solid #d4af37;
  border-right: 15px solid #d4af37;
}

.nosotros-texto p {
  line-height: 1.8;
  text-align: justify;
}

/* Línea decorativa dorada */
.linea-dorada {
  height: 2px;
  width: 60px;
  background-color: #d4af37;
  margin: 0.5rem auto;
}

/* Título con estilo sobrio */
.titulo-elegante {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #d4af37;
  position: relative;
  text-transform: uppercase;
  margin: 0.5rem 0;
  letter-spacing: 1px;
}

/* Mejora visual del texto */
.nosotros-texto p {
  font-size: 1rem;
  line-height: 1.8;
  color: #f1f1f1;
}

/*FOOTER*/
.footer {
  background: url("../img/arreglos-florales.webp") no-repeat center center/cover;
  min-height: 300px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Máscara oscura encima de la imagen */
.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.footer .container {
  position: relative;
  z-index: 2;
}

.footer-title {
  font-weight: 600;
  color: #d4af37; /* dorado */
  margin-bottom: 0.5rem;
}

.border-gold {
  border-color: #d4af37;
  opacity: 0.5;
}

.footer p {
  margin: 0;
  line-height: 1.6;
}

#dev {
  color: goldenrod;
  text-decoration: none;
}
/* Responsive spacing */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }
}

.btn-volver-arriba {
  position: fixed;
  bottom: 30px;
  right: 1%;
  background-color: #d4af37;
  color: #000;
  border: none;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: all 0.3s ease;
}

.btn-volver-arriba:hover {
  background-color: #c49c25;
  color: #fff;
}

/* Estilo general del scroll (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
}

/* Fondo del track del scroll */
::-webkit-scrollbar-track {
  background-color: #111;
  border-left: 1px solid #333;
}

/* Barra del scroll */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4af37, #a8872a);
  border-radius: 6px;
  border: 2px solid #111;
}

/* Al hacer hover en la barra */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e0bf55, #bfa23e);
}

/* Opcional: esquina si hay scroll horizontal también */
::-webkit-scrollbar-corner {
  background-color: #111;
}

/*MODAL*/
.modal {
  z-index: 9999;
}

.modal-content {
  background: #000000f0;
  backdrop-filter: blur(3px);
  border: 2px solid #d4af37;
  border-radius: 10px;
  color: #fff;
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.85);
}

/* Borde dorado del modal */
.border-gold {
  border: 2px solid #d4af37 !important;
  border-radius: 10px;
}

/*LOADER*/
/* Importación de fuentes */
@import url("https://fonts.googleapis.com/css2?family=Roboto&family=Open+Sans&display=swap");

/* Animaciones */
@keyframes outerRotate1 {
  0% {
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes outerRotate2 {
  0% {
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes textColour {
  0% {
    color: #fff;
  }
  100% {
    color: #d1ae3a;
  }
}

/* Estilos base */

/* Centrado universal */
.e-loadholder,
.e-loadholder::after,
.m-loader,
.m-loader::after,
.e-text,
.e-text::before,
.e-text::after,
#particleCanvas-White,
#particleCanvas-Blue {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999999;
}

/* Loader externo */
.e-loadholder {
  width: 240px;
  height: 240px;
  border: 5px solid #775f10;
  border-radius: 120px;
  box-sizing: border-box;
}

.e-loadholder::after {
  content: "";
  display: block;
  background: black;
  width: 100px;
  height: 200%;
  transform-origin: center;
  z-index: 0;
  animation: outerRotate2 30s infinite linear;
}

/* Loader interno */
.m-loader {
  width: 200px;
  height: 200px;
  color: #888;
  text-align: center;
  border: 5px solid #ad8c1d; /* lighten(#1B5F70, 15%) aproximado */
  border-radius: 100px;
  box-sizing: border-box;
  z-index: 99999;
  text-transform: uppercase;
}

.m-loader::after {
  content: "";
  display: block;
  width: 100px;
  height: 106%;
  transform-origin: center;
  z-index: -1;
  animation: outerRotate1 15s infinite linear;
}

/* Texto interior animado */
.e-text {
  font-size: 1.2rem;
  line-height: 8rem;
  display: block;
  width: 140px;
  height: 140px;
  text-align: center;
  border: 5px solid #d1ae3a; /* lighten(#1B5F70, 25%) aproximado */
  border-radius: 70px;
  box-sizing: border-box;
  z-index: 20;
  animation: textColour 1s alternate linear infinite;
}

.e-text::before {
  content: "";
  display: block;
  width: 110%;
  height: 40px;
  transform-origin: center;
  z-index: -1;
  animation: outerRotate2 3.5s infinite linear;
}

.e-text::after {
  content: "";
  display: block;
  background: black;
  width: 40px;
  height: 110%;
  transform-origin: center;
  z-index: -1;
  animation: outerRotate1 8s infinite linear;
}

/* Canvas de partículas */
#particleCanvas-White {
  width: 100%;
  height: 50%;
  opacity: 0.1;
}

#particleCanvas-Blue {
  width: 300px;
  height: 300px;
}

/* Fondo completo del loader */
#loader-wrapper {
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ocultar con transición */
#loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.swal2-popup {
  font-family: "Merriweather", serif;
  border: 2px solid #d4af37;
  background-color: #111;
  color: white;
}

.swal2-confirm {
  background-color: #d4af37 !important;
  color: #000 !important;
}
