:root {
  --color-primary: rgb(249 115 22);
}

body {
  font-family: "Barlow", sans-serif;
  margin: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

a {
  color: black;
  text-decoration: none;
}

header .logo-principal {
  text-align: center;
}

header .logo-principal img {
  width: 60%;
}

/* main */
.title {
  text-align: center;
  font-weight: bold;
  color: rgb(55 48 163);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.title span {
  background: linear-gradient(90deg, #fb923c 0%, #ff4848 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.card {
  width: 100%;
  max-width: 160px;
  min-width: 150px;
  height: 200px;
  background-color: rgb(24 48 80);
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(35, 35, 35, 0.24),
    0px 2px 10px rgba(35, 35, 35, 0.24), 0px 2px 10px rgba(35, 35, 35, 0.24),
    0px 2px 20px rgba(35, 35, 35, 0.24), 0px 2px 20px rgba(35, 35, 35, 0.24),
    0px 2px 30px rgba(35, 35, 35, 0.24);
  border: 2px solid rgba(7, 7, 7, 0.12);
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: "barlow", sans-serif;
  margin-bottom: 2rem;
}

.icon {
  margin: 0 auto;
  width: 100%;
  height: 80px;
  max-width: 80px;
  background: linear-gradient(90deg,
      #fb923c 0%,
      #ff4848 40%,
      rgba(0, 0, 0, 0.28) 60%);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.8s ease;
  background-position: 0px;
  background-size: 200px;
}

.icon svg {
  fill: white;
}

.card .title {
  width: 100%;
  margin: 0;
  text-align: center;
  margin-top: 1rem;
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card .text {
  width: 80%;
  margin: 0 auto;
  font-size: 0.6rem;
  text-align: center;
  font-family: barlow;
  margin-top: 20px;
  color: white;
  font-weight: 200;
  letter-spacing: 0px;
  opacity: 0;
  max-height: 0;
  transition: all 0.3s ease;
}

.card:hover {
  justify-content: start;
  padding-top: 1rem;
  height: 220px;
  border-color: orangered;
  box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.card:hover .text {
  transition: all 0.3s ease;
  opacity: 1;
  max-height: 2rem;
}

.card:hover .icon {
  background-position: -120px;
  transition: all 0.3s ease;
}

.card:hover .icon svg path {
  fill: url("#gradientColor");
  transition: all 0.3s ease;
}

.card-button {
  font-family: barlow;
  transform: translate(-50%, 125%);
  width: 80%;
  border-radius: 0.5rem;
  border: none;
  background: linear-gradient(90deg, #fb923c 0%, #ff4848 100%);
  color: #fff;
  font-size: 1rem;
  padding: 0.8rem 0rem;
  position: absolute;
  left: 50%;
  bottom: 0;
  opacity: 0;
  transition: 0.3s ease-out;
  cursor: pointer;
}

.card:hover .card-button {
  transform: translate(-50%, 50%);
  opacity: 1;
}

.card-button:hover {
  background: linear-gradient(90deg, #ff4848 0%, #fb923c 100%);
  color: #fff;
  transition: 0.3s ease-out;
}

/* modal reutilizable */
/* Modal Content */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-container {
  border-radius: 10px;
  padding: 10px 20px 40px;
  background-color: #fefefe;
  border: 1px solid #888;
  width: 50%;
  min-width: 300px;
  height: 70%;
  margin: 0 auto;
}

.modal-content {
  background-color: #fefefe;
  /* border: 1px solid rgb(212, 212, 213);*/
  border-radius: 10px 0px 0px 10px;
  width: 100%;
  height: calc(100% - 30px);
  overflow-y: auto;
  font-family: "Barlow", sans-serif;
}

.modal-content h1 {
  font-weight: bold;
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.modal-content h2 {
  font-weight: bold;
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.modal-content .list-abc {
  list-style-type: lower-alpha;
}

.modal-content h3,
.modal-container span {
  color: var(--color-primary);
}

.modal-content h3 {
  font-weight: bold;
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-content p {
  padding: 0.5rem;
}

.modal-content p span {
  font-weight: bold;
}

/* timeline */
.modal-content .container-timeline {
  overflow-x: hidden;
  /* display: flex; */
  /* justify-content: space-between; */
}

.modal-content .year {
  display: flex;
  min-width: 100px;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-content .year h1 {
  position: relative;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-content .year h1::after {
  content: "";
  position: absolute;
  height: 0.75rem;
  width: 5rem;
  background: linear-gradient(90deg, #ff4848 0%, #fb923c 100%);
  left: 0;
  top: 2.4rem;
  border-radius: 10px;
}

.modal-content .year span {
  padding-top: 20px;
  color: #7a7a7a;
  text-transform: uppercase;
}

.modal-content .timeline {
  padding-left: 1.5rem;
  width: 100%;
}

.modal-content .timeline ul {
  list-style-type: none;
  border-left: 2px solid rgb(241, 109, 15);
}

.modal-content .timeline ul li {
  position: relative;
  left: -51px;
  padding-left: 20px;
}

.modal-content .timeline ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.modal-content .timeline ul li .content {
  padding-left: 0.5rem;
}

.modal-content .timeline ul li .content h3 {
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.modal-content .timeline ul li .content span {
  font-weight: bold;
  color: #7a7a7a;
  text-transform: uppercase;
}

/* timeline */

.modal-content table {
  width: 100%;
  border-collapse: collapse;
}

.modal-content table thead {
  font-weight: bold;
  background-color: var(--color-primary);
  color: white;
  border-collapse: collapse;
}

.modal-content table tbody {
  border-collapse: collapse;
}

.modal-content table tbody tr td {
  padding: 10px;
  border-collapse: collapse;
}

.modal-content table tbody tr td:nth-child(1) {
  font-weight: bold;
}

.modal-content table tbody tr td:nth-child(3) {
  text-align: center;
}

.modal-content table tbody tr:nth-child(even) {
  background-color: #f3f4f6;
}

.modal-content .important {
  font-weight: bold;
  border: 2px solid var(--color-primary);
  padding: 10px;
  margin-left: 5px;
  margin-right: 5px;
  border-collapse: collapse;
  border-radius: 5px;
}

.modal-content .list-instructions::marker {
  color: var(--color-primary);
}

.modal-content .nota {
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px;
  border-collapse: collapse;
  background-color: #2c4467;
  color: white;
  border-radius: 5px;
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* ubicacion */
.content-ubicacion {
  /*background-color: rgb(49, 73, 105);
  color: white;*/
  padding: 1rem 0;
}

.content-ubicacion iframe {
  width: 300px;
  height: 300px;
}

.content-ubicacion h1 {

  padding-left: 10px;
}

.content-ubicacion .ubicacion {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  padding-left: 8.4px;
  padding-right: 8.4px;
  border-radius: 100%;
  float: right;
  font-size: 35px;
  font-weight: bold;
  transform: rotate(0deg);
  transition: transform 0.1s ease-in-out;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transform: rotate(180deg);
  transition: transform 0.1s ease-in-out;
}

/* main */
/* footer */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #cecdcd;
  /* background-color: rgb(24 48 80);
  color: white; */
  padding: 1rem 0;
  margin: 1rem 2rem 0 2rem;
}

hr {
  width: 100%;
  border: 0.1px solid #cecdcd;
}

footer .footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 95%;
}

.footer-nav .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-nav .logo img {
  transition: 0.2s ease-in-out;
}

.footer-nav .logo img:hover {
  transform: scale(1.3);
  transition: 0.2s ease-in-out;
}

.footer-nav .logo span {
  font-weight: bold;
}

.footer-nav .logo span:hover {
  color: var(--color-primary);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.footer-nav img {
  width: 30px;
}

.footer-nav .footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-nav .footer-social a {
  font-weight: 500;
  transition: 0.2s ease-in-out;
}

.footer-nav .footer-social a:hover {
  color: var(--color-primary);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

footer .img-whatsapp {
  width: 50px;
  position: fixed;
  bottom: 20px;
  right: 0;
  transition: 0.2s ease-in-out;
}

footer .img-whatsapp:hover {
  filter: drop-shadow(2px 2px 4px #25d366);
  transform: scale(1.2);
  transition: 0.2s ease-in-out;
}

footer p {
  margin-top: 1rem;
  text-align: center;
}

footer p a {
  font-weight: bold;
}

footer p a:hover {
  color: var(--color-primary);
}

@media (min-width: 480px) {
  .title {
    font-size: 1.5rem;
  }

  .card {
    width: 100%;
    max-width: 180px;
    min-width: 150px;
    height: 250px;
  }

  .card-button {
    width: 80%;
    padding: 1rem 5px;
  }

  .card:hover {
    height: 250px;
    justify-content: flex-start;
    padding-top: 2rem;
  }
}

@media (min-width: 768px) {
  header .logo-principal img {
    width: 50%;
  }

  .title {
    font-size: 2rem;
  }

  .card {
    width: 100%;
    max-width: 220px;
    min-width: 200px;
    height: 220px;
  }

  main {
    margin-bottom: 3rem;
  }

  .card-button {
    width: 60%;
    padding: 0.9rem 0.1rem;
  }

  .card .title {
    font-size: 13px;
  }

  .card .text {
    font-size: 13px;
  }

  .card:hover {
    height: 250px;
    justify-content: center;
    padding-top: 0;
  }

  .card:hover .text {
    padding-bottom: 1.5rem;
  }

  .modal-content .container-timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .container-timeline {
    height: 100%;
  }

  footer .footer-nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-nav .footer-social {
    flex-wrap: nowrap;
  }

  footer .img-whatsapp {
    right: 1rem;
  }
}

@media (min-width: 1250px) {
  header .logo-principal img {
    width: 40%;
  }

  .title {
    font-size: 2.5rem;
  }

  .card {
    width: 100%;
    max-width: 250px;
    min-width: 240px;
    height: 250px;
  }

  main {
    margin: 0 7rem 3rem;
  }

  .card-button {
    width: 60%;
    padding: 1rem 1rem;
  }

  .card .title {
    font-size: 0.9rem;
  }

  .card .text {
    font-size: 0.9rem;
  }

  .card:hover {
    height: 290px;
  }

  .card:hover .text {
    padding-bottom: 1.5rem;
  }

  .modal-content .container-timeline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .container-timeline .year {
    width: 30%;
  }

  .container-timeline .content {
    margin-left: 2rem;
  }

  .container-timeline {
    height: 100%;
  }

  .content-ubicacion {
    height: 100%;
    overflow: hidden;
  }

  .content-ubicacion .ubicacion {
    flex-direction: row;
    gap: 1rem;
  }

  .content-ubicacion iframe {
    margin-left: 10px;
    width: 350px;
    height: 400px;
  }

  footer .footer-nav {
    width: 75%;
  }

  .footer-nav .logo img {
    width: 40px;
  }

  .footer-nav .logo span {
    font-size: 1.5rem;
  }

  footer .img-whatsapp {
    right: 3rem;
    width: 60px;
  }
}

p {
  text-align: justify;
  color: #374151;
}

/* Professional Modal Styles & Fixes */
[x-cloak] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-container-pro {
  background: white;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(90deg, #fb923c 0%, #ff4848 100%);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Barlow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-family: "Barlow", sans-serif;
  line-height: 1.6;
  color: #374151;
}

/* User Request: Rename/Recolor Article text to Orange */
.modal-body p span {
  color: #fb923c;
  /* Orange matching the gradient */
  font-weight: 700;
}

/* Ensure headings inside modal body also follow brand colors if needed */
.modal-body h2,
.modal-body h3 {
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.modal-body h3 {
  color: rgb(249 115 22);
  /* var(--color-primary) */
  font-weight: bold;
  font-size: 1.5rem;
  margin-top: 1rem;
  text-align: center;
}