:root {
  --blanco: #ffffff;
  --negro: #000000;
  --granate: rgb(115, 1, 2);
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--negro);
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 110px;
  background-color: var(--blanco);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

.custom-header {
  height: 110px;
  background-color: var(--blanco);
  border: none;
  z-index: 1030;
  font-size: 14px;
  font-weight: 100;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(0);
  transition: transform 0.5s ease-out, box-shadow 0.3s ease-in-out;
  box-shadow: none;
}

.custom-header.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.custom-header.header-scrolled-down:not(.header-hidden) {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra suave en la parte inferior */
}

.header-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo img {
  height: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  color: var(--granate);
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--negro);
}

.nav a,
.nav-link {
  color: var(--granate);
  font-weight: 300;
  text-transform: uppercase;
  text-decoration: none;
  background-color: transparent;
}

.custom-link,
.custom-link:focus,
.custom-link:active,
.custom-link.show {
  color: var(--granate);
  font-weight: 300;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  background-color: transparent;
}

.custom-link:hover {
  text-decoration: underline;
}

.nav-link:focus,
.nav-link:hover {
  color: var(--negro);
}

.custom-toggler {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1040;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-icon {
  width: 25px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease-in-out;
}

.hamburger-icon .line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.dropdown-menu {
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 0;
  border-color: var(--granate);
}

.dropdown-menu a {
  color: var(--granate);
}

.dropdown-toggle.custom-link:active,
.dropdown-toggle.custom-link.show {
  background-color: transparent !important;
  box-shadow: none !important;
}

.custom-dropdown-icon::after {
  display: none !important;
}

.custom-icon {
  margin-left: 8px;
  font-size: 0.9em;
  transition: transform 0.2s ease-in-out;
}

.custom-dropdown-icon::after {
  display: none;
}

.btn-gcsw {
  border: 1px solid var(--negro);
  border-radius: 0;
  padding: 0.375rem 1.5rem;
  text-transform: uppercase;
  font-size: 14px;
}

.btn-gcsw:hover {
  color: var(--blanco);
  background-color: var(--negro);
}

.title-wrapper {
  position: relative;
  overflow: hidden;
}

.title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--granate);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  z-index: 2;
  background-color: white;
  padding: 0 20px;
}

.title-alt {
  font-weight: 900;
  color: var(--granate);
  text-transform: uppercase;
}

.title-wrapper::before,
.title-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100vw; /* Ancho completo del viewport */
  height: 60px; /* Alto fijo (ajusta según tu imagen) */
  background-image: url("../images/01.rayas_titulo.png");
  background-repeat: repeat-x;
  background-size: auto 100%; /* Mantiene proporción de la imagen */
  z-index: 1;
}

.title-wrapper::before {
  right: 100%;
  margin-right: -50vw; /* Extiende más allá del contenedor */
}

.title-wrapper::after {
  left: 100%;
  margin-left: -50vw; /* Extiende más allá del contenedor */
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--granate);
  text-transform: uppercase;
}

.footer-custom {
  background-color: rgba(115, 1, 2, 0.15);
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
}

.footer-logo {
  height: 66px;
  width: auto;
}

.footer-social a {
  font-size: 24px;
  color: var(--granate);
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-social img {
  width: 18px;
  transition: transform .2s;
}

.footer-social img:hover {
  transform: scale(1.1);
}

.footer-heading {
  font-weight: 500;
  color: var(--granate);
  font-size: 20px;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.footer-links a {
  color: var(--granate);
  font-weight: 300;
  font-size: 13px;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-top-border {
  border-top: 2px solid var(--granate);
  width: 100%;
}

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  z-index: 999;
  border: 2px solid var(--granate);
  border-radius: 50%;
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  background-color: var(--granate);
  color: var(--blanco);
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}

.scroll-top-btn:hover {
  background-color: var(--blanco);
  color: var(--granate);
  border: 2px solid var(--granate);
}

.autor-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--negro);
}

.autor-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: #c2a18a;
  margin-top: -5px;
}

.grecaptcha-badge {
  visibility: hidden;
}

#searchModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#searchModal.active {
    display: flex;
}
#searchModal .search-modal-content {
    background: var(--blanco);
    padding: 2rem 2.5rem;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(115, 1, 2, 0.15);
    position: relative;
    animation: modalIn 0.2s;
}
#closeSearch {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--negro);
    cursor: pointer;
}
#searchModal input[type="text"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
#searchModal button[type="submit"] {
    background: var(--granate);
    color: var(--blanco);
    border: 1px solid var(--granate);
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
#searchModal button[type="submit"]:hover {
    background: var(--blanco);
    color: var(--granate);
    border: 1px solid var(--granate);
}
@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}