/* Tipografía Mística */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

.header {
  position: relative;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(20, 5, 30, 0.75) 40%,
    rgba(0, 0, 0, 0.9) 100%
  ),
  url(../assets/imgs/fondo-header.webp);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  border-top: none;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 0 20px;
}

.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url(../assets/logos/41.png.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.2;
  width: 70vmin;
  height: 70vmin;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  filter: drop-shadow(0 0 30px rgba(139, 69, 19, 0.3));
}

.header .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header .title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 
    2px 2px 10px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(139, 69, 19, 0.5),
    0 0 40px rgba(139, 69, 19, 0.3);
  margin-block: 20px;
  font-family: 'Cinzel', serif;
  line-height: 1.2;
  color: #f5e6d3;
}

.header .title .subtitle-main {
  display: block;
  font-size: 0.6em;
  font-weight: 500;
  color: #d4af37;
  margin-top: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.header .contact-subtitle {
  text-transform: none;
  font-size: 1.4rem;
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 30px;
  backdrop-filter: blur(15px);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(20, 5, 30, 0.85) 100%
  );
  z-index: 99;
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 800px;
  margin: 20px auto 30px auto;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(212, 175, 55, 0.1);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.6;
}

.header .contact-subtitle strong {
  color: #ffc107;
  font-weight: 700;
}

.numero-contacto {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #f5e6d3;
  text-shadow: 
    2px 2px 10px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(212, 175, 55, 0.4);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.btn-consultar {
  background: linear-gradient(135deg, #1a5f1a 0%, #2d8f2d 50%, #1a5f1a 100%);
  color: #fff;
  padding: 18px 40px;
  font-weight: 700;
  border-radius: 35px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.4s ease;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(45, 143, 45, 0.3);
  border: 2px solid rgba(212, 175, 55, 0.3);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-consultar:hover::before {
  left: 100%;
}

.btn-consultar:hover {
  background: linear-gradient(135deg, #2d8f2d 0%, #3db03d 50%, #2d8f2d 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(45, 143, 45, 0.5);
}

@media (max-width: 800px) {
  .header {
    height: 100vh;
    padding: 40px 20px;
  }
  .header .title {
    font-size: 2.8rem;
  }
  .header .title .subtitle-main {
    font-size: 0.65em;
  }
  .hero-bg-logo {
    background-size: 98%;
    opacity: 0.15;
  }
  .header .contact-subtitle {
    font-size: 1.2rem;
    padding: 15px 20px;
  }
}

@media (max-width: 500px) {
  .header {
    height: 100vh;
    padding: 30px 20px;
  }
  .header .container {
    padding-top: 30px;
  }
  .header .title {
    font-size: 2.2rem;
  }
  .header .title .subtitle-main {
    font-size: 0.7em;
  }
  .header .subtitle {
    font-size: 1.1rem;
  }
  .header .contact-subtitle {
    font-size: 1.1rem;
    padding: 12px 18px;
  }
  .header .numero-contacto {
    font-size: 1.5rem;
  }
  .btn-consultar {
    font-size: 1rem;
    padding: 15px 30px;
  }
}
