@font-face {
  font-family: musica;
  src: url(Musica.ttf);
}

@font-face {
  font-family: musica-hint;
  src: url(Musica_hint.ttf);
}

@font-face {
  font-family: gilroy-light;
  src: url(Gilroy-Light.otf);
}

@font-face {
  font-family: gilroy-bold;
  src: url(Gilroy-ExtraBold.otf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: gilroy-light;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.bold-font{
  font-family: gilroy-bold;
}

.content-white{
  color: #ffffff;
}

.va-middle{
  vertical-align: middle
}

.mt15 {
  margin-top: 1.5rem;
}

.tac {
  text-align: center;
}

.h1 {
  font-size: xx-large;
}

/* Cabecera */
header {
  background-color: #ffffff;
  color: #22619c;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-top: 5px solid #22619c;
  border-bottom: 5px solid #22619c;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 400px;
}

.nav-container{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nav-title{}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: #22619c;
  font-size: 1rem;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

/* Menu hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #22619c;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #8d2145 0%, #0b83c2 100%);
  background-size: 200% 200%;
  color: #ffffff;
  text-align: center;
  padding: 4rem 20px;
  height: 86vh;
  animation: heroBackgroundAnimation 10s ease infinite;
}

.hero-content{
  position: relative;
  top: 20%;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: normal;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Secciones */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 20px;
  scroll-margin-top: 250px;
}

section h2 {
  color: #8d2145;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: normal;
  border-bottom: 2px solid #0b83c2;
  padding-bottom: 0.5rem;
}

/* Sobre nosotros */
.about-grid, .logos-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-card img, .logos-card img {
  width: 100%;
  border-radius: 10px;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background-color: #f9f9f9;
  padding: 2rem;
  border-left: 4px solid #0b83c2;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card h3 {
  color: #8d2145;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Expedientes */
.expedients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.expedient-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s;
}

.expedient-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.expedient-image {
  width: 100%;
  height: 200px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 3rem;
}

.expedient-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expedient-info {
  padding: 1.5rem;
}

.expedient-info h3 {
  color: #8d2145;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.expedient-detail {
  margin-bottom: 0.5rem;
  color: #666;
}

.expedient-detail strong {
  color: #333;
}

/* Contacto */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  text-align: center;
  padding: 1.1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.contact-icon {
  font-size: 2.5rem;
  color: #0b83c2;
  margin-bottom: 1rem;
}

.contact-item h3 {
  color: #8d2145;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-item p {
  color: #666;
}

.contact-item a {
  color: #0b83c2;
}

/* Pie */
footer {
  background-color: #8d2145;
  color: #ffffff;
  text-align: center;
  padding: 2rem 20px;
  margin-top: 4rem;
}

footer p {
  opacity: 0.9;
  margin-top: 0.5rem; 
  font-size: 0.9rem;
}

footer a {
  color: white;
}

/* Animaciones */
.animate__animated.animate__fadeIn {
  --animate-duration: 5s;
}
@keyframes heroBackgroundAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Adaptabilidad */
@media (max-width: 768px) {
  .header-content {
    justify-content: space-between;
  }

  .logo img {
    height: 40px;
    width: auto;
  }

  .menu-toggle {
    display: block;
  }

  title {
    display: none;
  }

  .nav-container {
    display: none;
    width: 100%;
  }

  #nav-menu{
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .nav-title {
    display: none;
  }

  .nav-container.active {
    display: flex;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  section {
    padding: 3rem 20px;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .expedients-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content img{
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 35px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.4rem;
  }
}
