@import "variables.css";

* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--white);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 50px 20px 50px 20px;
}

.header-container {
  max-width: 1200px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  z-index: 5;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.45);
}

.header-right {
  color: var(--white);
  text-align: left;
  flex: 1;
  max-width: 720px;
  border-radius: 12px;
}

.header-right h1 {
  font-weight: 800;
  font-size: 4.5rem;
  margin: 0;
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-right h2 {
  font-size: 2rem;
  margin: 8px 0;
  font-weight: 600;
  font-style: italic;
}

.header-right h3 {
  font-size: 1.4rem;
  margin: 6px 0 18px 0;
  font-weight: 400;
  font-style: normal;
  opacity: 0.95;
  line-height: 1.4;
}

.header-right .meta {
  font-size: 0.98rem;
  margin-top: 18px;
  line-height: 1.4;
}

.contenedor-cita {
  display: flex;
  justify-content: center;  /* centra horizontalmente */
  align-items: flex-start;  /* evita que se estire */
  margin-top: 130px;         /* baja la cita */
  width: 100%;
}
.cita-box {
  max-width: 900px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(30px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-left: 6px solid var(--purple);
  color: var(--white);
  padding: 30px 36px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: all 0.3s ease-in-out;
  z-index: 9;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: block;
  place-items: center; /* Centra contenido */
}

/* La imagen ahora es un elemento real */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* El texto se superpone */
.hero-content {
  position: absolute;
  top: 5%;          /* Ajusta según necesites */
  left: 5%;
  padding-top: 20px;
  transform: translateY(0);
  color: white;
  text-align: left;
  width: 90%;
  max-width: 800px;
  z-index: 10;
}

.hero-content h1 {
  font-size: 5rem;      /* más grande */
  font-weight: 800;
  line-height: 0.9;
  margin: 0 0 10px 0;
}

.hero-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.hero-content h3 {
  font-size: 1.6rem;
  font-weight: 400;
  opacity: .95;
}

.cita-box:hover {
  box-shadow: 0 12px 28px var(--purple-dark-hover);
  transform: translateY(-2px);
}

.cita-box p {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--purple);
}

.cita-box .autor {
  font-size: 0.95rem;
  font-style: normal;
  color: var(--orange);
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.logo-item {
  background: #fff;
  border-radius: 12px;
  width: 5cm;
  height: 3cm;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.12);
  padding: 6px;
  text-align: center;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-text {
  font-family: "Baskerville", serif;
  color: #000;
  font-size: 0.95rem;
  line-height: 1.05;
}

.copyright {
  text-align: center;
  color: rgba(0, 0, 0, 0.9);
  font-size: 0.65rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px) saturate(100%);
  -webkit-backdrop-filter: blur(10px) saturate(100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  max-width: 900px;
}

.header-right {
  position: relative;

}

.cita-box {
  padding: 20px;
  font-size: 0.95rem;
}

.cita-box p {
  font-size: 0.9rem;
}

.cita-box .autor {
  font-size: 0.85rem;
}


@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero-content h3 {
    font-size: 1.2rem;
  }

  .hero-content {
    top: 45%;
    left: 8%;
  }
}

@media (max-width: 768px) {
  body {
    background-image: url("../images/fondo_mobil.jpeg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
  }

  .header-right {
    max-width: 100%;
    padding: 1rem;
    text-align: center;
  }

  .header-right h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .header-right h2 {
    font-size: 1.4rem;
  }

  .header-right h3 {
    font-size: 1.1rem;
  }

  .header-right .meta {
    font-size: 0.85rem;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
  }

  .header-right h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .header-right h2 {
    font-size: 1.4rem;
  }

  .header-right h3 {
    font-size: 1.1rem;
  }

  .header-right .meta {
    font-size: 0.85rem;
  }
  .logos-row {
    margin-top: 20px;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .logo-item {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  }

  .logo-item img {
    max-width: 100%;
    max-height: 100%;
  }
  .container {
    padding-top: 1rem;
  }
  .header-container {
    padding: 0px;
  }
  .header-right {
    padding: 0px 1rem 0px 1rem;
  }
}


@media (max-width: 768px) {
  .hero-content {
    top: 15%;
    left: 6%;
  }
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
      0 0 20px rgba(81, 44, 124, 0.4);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
      0 0 40px rgba(81, 44, 124, 0.8);
  }

  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
      0 0 20px rgba(81, 44, 124, 0.4);
  }
}
