@import url('../../fonts/inter.css');

html {
  font-family: "Inter";
  font-size: 12px;
}

body {
  background-color: white;
  color: black;
  margin: 0;
  padding: 0;
}

/* Título principal y section title */
.title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 10vh;
  margin-bottom: 10vh;
  cursor: crosshair;
}

.title h1 {
  margin: 0;
  padding: 0;
  font-family: "Inter";
  font-size: 5.3vw;
  letter-spacing: -0.1rem;
  line-height: 0.95;
  text-align: center;
  width: 80%;
  font-weight: 500;
}

.title h1 a {
  color: orange;
  text-decoration: none;
}

.title h1 a:hover {
  color: orange;
}

/* Wrapper */
.wrapper {
  max-width: 1100px;
  margin: 0 auto 100px auto;
  padding: 0 20px;
}

.intro {
  font-size: 1.8rem;
  line-height: 1.5;
  margin: auto;
  max-width: 800px;
}

/* Grilla de tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 40px;
  margin-top: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e0e0e0;
  padding-top: 25px;
}

.card-image {
  width: 450px;
  height: 450px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #f5f5f5;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 15px 0;
  font-family: "Inter", sans-serif;
}

.card-subtitle {
  font-family: "Inconsolata", monospace;
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 20px 0;
  color: #333;
}

.btn-open {
  align-self: flex-start;
  background: none;
  border: 1px solid black;
  padding: 10px 20px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin-top: auto;
}

.btn-open:hover {
  background: black;
  color: white;
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 50px;
  position: relative;
  box-sizing: border-box;
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  color: #333;
  transition: color 0.2s;
}

.modal-close:hover {
  color: orange;
}

.modal-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 30px 0;
  padding-right: 40px;
}

.modal-text {
  font-size: 18px;
  line-height: 1.6;
  color: #222;
}

.modal-text p {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .title h1 {
    font-size: 8vw;
  }

  .intro {
    font-size: 1.6rem;
  }

  .modal-content {
    padding: 30px;
  }

  .modal-title {
    font-size: 22px;
  }
}

@media (max-width: 500px) {
  .title h1 {
    font-size: 10vw;
  }

  .intro {
    font-size: 1.3rem;
  }

  .card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .modal-content {
    padding: 20px;
  }
}

/* Estilo para la animación de SplitText */
.detail-size {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-width: 50px;
  height: 1px;
  font-size: 11px;
}

.wrapper {
  max-width: 1400px;   /* antes 1100px */
  margin: 0 auto 100px auto;
  padding: 0 20px;
}
