:root {
    --color-primary: #080C19; /* Azul oscuro corporativo */
    --color-secondary: #1A1F2B; /* Gris oscuro */
    --color-accent: #C7A350; /* Dorado metálico */
    --color-text: #EDEDED;
    --color-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-bg);
    color: var(--color-primary);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding-top: 76px;
}

a {
    color: var(--color-text);
    text-decoration: none;
}

/* NAVBAR CUSTOM */
.navbar {
    background: var(--color-primary) !important;
    color: var(--color-text) !important;
    border-bottom: 1.5px solid var(--color-accent);
    transition: background 0.3s;
}

.navbar .navbar-brand span,
.navbar .navbar-brand {
    color: var(--color-accent) !important;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.navbar .navbar-brand img {
    height: 38px;
    width: 38px;
}

.navbar-nav .nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
    letter-spacing: 0.03em;
    padding-right: 0.7rem;
    padding-left: 0.7rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-accent) !important;
}

/*BOTONES*/
.button {
  --border-color: linear-gradient(-45deg, var(--color-accent), var(--color-secondary), var(--color-primary), var(--color-accent));
  --border-width: 0.125em;
  --curve-size: 0.5em;
  --bg: var(--color-primary);
  --color: var(--color-text);
  color: var(--color);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-content: center;
  padding: 0.5em 1.5em;
  font-size: 17px;
  border: 0;
  text-transform: uppercase;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.6);
  clip-path: polygon(
    0% var(--curve-size),
    var(--curve-size) 0,
    100% 0,
    100% calc(100% - var(--curve-size)),
    calc(100% - var(--curve-size)) 100%,
    0 100%
  );
  transition: color 250ms;
  font-weight: 700;
  letter-spacing: 1px;
}

.button::after,
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.6em;
}

.button::before {
  background: var(--border-color);
  background-size: 300% 300%;
  animation: move-bg7234 5s ease infinite;
  z-index: -2;
}

@keyframes move-bg7234 {
  0% { background-position: 31% 0%; }
  50% { background-position: 70% 100%; }
  100% { background-position: 31% 0%; }
}

.button::after {
  background: var(--bg);
  z-index: -1;
  clip-path: polygon(
    var(--border-width)
      calc(var(--curve-size) + var(--border-width) * 0.5),
    calc(var(--curve-size) + var(--border-width) * 0.5) var(--border-width),
    calc(100% - var(--border-width)) var(--border-width),
    calc(100% - var(--border-width))
      calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
    calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5))
      calc(100% - var(--border-width)),
    var(--border-width) calc(100% - var(--border-width))
  );
  transition: clip-path 500ms;
}

.button:where(:hover, :focus)::after {
  clip-path: polygon(
    calc(100% - var(--border-width))
      calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
    calc(100% - var(--border-width)) var(--border-width),
    calc(100% - var(--border-width)) var(--border-width),
    calc(100% - var(--border-width))
      calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
    calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5))
      calc(100% - var(--border-width)),
    calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5))
      calc(100% - var(--border-width))
  );
  transition: 200ms;
}

.button:where(:hover, :focus) {
  color: var(--color-accent);
  text-shadow: 0 0 8px #C7A35099;
  filter: brightness(1.08);
}

@media (max-width: 767.98px) {
    .button {
    padding: 0.5em 0.5em;
    font-size: 12px;
  }
}

.gradient-title {
  background: linear-gradient(
    90deg,
    var(--color-text) 0%,
    var(--color-accent) 40%,
    #fff8d7 60%,              /* Un dorado claro para brillo, puedes ajustar si quieres más pureza */
    var(--color-accent) 100%
  );
  background-size: 200% auto;
  color: var(--color-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
  animation: gradientMove 10s linear infinite alternate;
  text-shadow:
    0 0 16px #EDEDED99,
    0 0 32px #C7A35033;
}

@keyframes gradientMove {
  to {
    background-position: 200% center;
  }
}

.gradient-title-alt {
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    #cfc096 60%,                /* dorado claro cálido */
    var(--color-primary) 85%,
    var(--color-accent) 100%
  );
  background-size: 200% auto;
  color: var(--color-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
  animation: gradientMove 10s linear infinite alternate;
  text-shadow:
    0 0 10px #C7A35055,
    0 0 22px #080C1966;
}

.gradient-title-static {
  background: linear-gradient(
    90deg,
    var(--color-accent) 10%,           /* Crema claro (puedes ajustar a #fff o #ede8d0 si lo quieres más blanco) */
    #fffbe9 45%,
    var(--color-accent) 70%,           /* Dorado pastel para suavizar el paso */
    #ffedb1 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow:
    0 0 16px #ffeac180,
    0 2px 6px #C7A35044;
}

.gradient-static-alt {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-accent)50%,
    #ffeac180 100%
  );
  background-size: 100% auto;
  color: var(--color-accent); /* fallback */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 1px 2px #b1954344;
}



.text-gold {
    color: var(--color-accent) !important;
}

.navbar-toggler {
    border-color: var(--color-accent);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(199,163,80, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


footer.footer {
    background: var(--color-secondary);
    color: var(--color-text);
    text-align: center;
    padding: 2rem;
}

footer .socials img {
    height: 24px;
    margin: 0 0.5rem;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

footer .socials img:hover {
    transform: scale(1.2);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.6s;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1.4s ease forwards;
    animation-delay: 0.8s;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 1s;
}


@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.cookie-banner {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.96);
  border: 2px solid var(--color-accent);
  border-radius: 1.3rem;
  box-shadow: 0 8px 38px #baa3613a;
  padding: 1.2rem 2.2rem 1.6rem 2.2rem;
  min-width: 330px;
  max-width: 350px;
  width: 350px;
  transition: all .3s;
  font-size: 1rem;
}
.cookie-img-wrapper {
  width: 86px;
  height: 86px;
  margin-top: -48px;
  margin-bottom: 0.6rem;
  z-index: 1;
}
.cookie-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 12px #c7a35044);
}
.cookie-content {
  text-align: center;
  z-index: 2;
  position: relative;
  width: 100%;
}
@media (max-width: 991px) {
  .cookie-banner {
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    min-width: 88vw;
    max-width: 98vw;
    width: 97vw;
    padding: 1.7rem 1.1rem 1.4rem 1.1rem;
  }
  .cookie-img-wrapper {
    width: 66px;
    height: 66px;
    margin-top: -32px;
  }
}
@media (max-width: 575px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0.5rem;
    transform: none;
    border-radius: 1.1rem;
    width: 98vw;
    min-width: 0;
    max-width: 98vw;
    padding: 2.3rem 0.7rem 1.1rem 0.7rem;
  }
  .cookie-img-wrapper {
    width: 50px;
    height: 50px;
    margin-top: -25px;
  }
}

/*VENTANA DE CHAT*/
#chat-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9998;
}

.chat-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(120deg, #C7A350, #846d2f 80%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 24px #baa36145;
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.18s;
}
.chat-btn:hover {
  box-shadow: 0 4px 32px #c7a35070;
}

.chat-box {
  display: none;
  width: 540px;
  min-width: 260px;
  max-width: 98vw;
  height: 400px;
  min-height: 160px;
  max-height: 90vh;
  background: var(--color-bg);
  border-radius: 1.3rem;
  box-shadow: 0 6px 32px #baa36155;
  border: 2px solid var(--color-accent);
  position: absolute;
  bottom: 78px;
  right: 0;
  z-index: 9998;
  resize: both;
  overflow: auto;
}
.chat-box.open {
  display: block; /* No flex, no grid */
}
.chat-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes chatIn {
  0% { transform: translateY(60px) scale(.98); opacity: 0;}
  100% { transform: none; opacity: 1;}
}

.chat-header {
  background: linear-gradient(120deg, #181C26 80%, #C7A350 120%);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.13rem;
  padding: 1rem 1.3rem 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #efd8ac70;
}

.chat-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 50%;
  transition: background 0.18s;
}
.chat-close:hover {
  background: #f5e2c7;
}

.chat-body {
  flex: 1;
  padding: 1.3rem 1.3rem 0.4rem 1.3rem;
  min-height: 110px;
  max-height: 330px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Mensajes usuario (derecha) */
.user-msg {
  align-self: flex-end;
  background: linear-gradient(120deg, #C7A350, #846d2f 80%);
  color: #fff;
  border-radius: 1.5rem 1.5rem 0.3rem 1.5rem;
  text-align: right;
  padding: 0.75rem 1.1rem;
  margin-bottom: 0.2rem;
  max-width: 85%;
  word-break: break-word;
  font-size: 1.01rem;
  line-height: 1.44;
  box-shadow: 0 2px 14px #b79a5431;
}

/* Mensaje bot (izquierda) */
.bot-msg {
  align-self: flex-start;
  background: linear-gradient(120deg, #181C26 80%, #C7A350 120%);
  color: #B09144;
  border: 1.5px solid #C7A350;
  border-radius: 1.5rem 1.5rem 1.5rem 0.3rem;
  text-align: left;
  padding: 0.75rem 1.1rem;
  margin-bottom: 0.2rem;
  max-width: 90%;
  word-break: break-word;
  font-size: 1.01rem;
  line-height: 1.44;
  box-shadow: 0 2px 14px #b79a5431;
}

.chat-footer {
  background: #f8f6f1;
  padding: 0.8rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-top: 1.5px solid #efd8ac70;
}

.btn-gold {
  background: linear-gradient(120deg, #C7A350, #846d2f 80%);
  border: none;
  color: #fff;
  font-weight: bold;
}

@media (max-width: 575px) {
  #chat-widget {
    right: 12px;
    bottom: 12px;
  }
  .chat-box {
    width: 98vw;
    right: -8px;
    bottom: 66px;
    min-width: 0;
    max-width: 99vw;
  
  }
  

  .chat-header,
  .chat-body,
  .chat-footer {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
  .chat-btn {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;

  }
}


