* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "century-gothic", sans-serif;
    /* background: linear-gradient(rgb(210, 188, 175),white); */
    background: linear-gradient(rgb(77, 77, 77),rgb(168, 168, 168));
    background-color: rgb(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

nav {
    margin-top: 16px;
    width: 95vw;
    height: 64px;
    display: flex;
    padding: 8px;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(210, 188, 175, 0.75);
    border-radius: 6px;
}

.logo {
    margin-left: 8px;
    height: 40px;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    margin-right: 0px;
}

.navbar ul {
    margin-left: 4px;
    display: flex;
    width: auto;
}

.navbar ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    width: 100%;
    height: 40px;
    margin-right: 16px;
}

.register:hover {
    color: black;
    border: 2px solid black;
}

.navbar li {
    display: flex;
    margin: 0 5px 0 0;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    margin: 0 0px;
    font-weight: bold;
}

.underline {
    top: 12px;
    margin: 0 auto;
    width: 0%;
    height: 1.5px;
    background-color: rgba(32, 30, 30, 0.877);
}

.navbar ul li a:hover {
    color: rgba(32, 30, 30, 0.877);
}

.navbar ul li a:hover .underline {
    width: 100%;
    transition: 0.3s;
}

.log-in {
    margin: 0 4px 0 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    border-radius: 20px;
    width: 50px;
    height: 40px;
    text-decoration: none;
    font-size: 1.2rem;
    text-align: center;
    color: white;
}

.gallery {
    margin-top: 32px;
    height: 300px;
    width: 100%;
    display: flex;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    margin-top: auto;
    width: 100%;
    height: 60%;
}

.swiper-slide div {
    direction: rtl;
    /* position: absolute;
    top: 0;
    left: 0; */
    opacity: 100%;
    z-index: 99;
    width: 100%;
    height: 40%;
    background-color: rgba(255, 255, 255, 0.753);
    padding-left: 44px;
    padding-right: 44px;
    text-align: justify;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.swiper-slide div::-webkit-scrollbar {
    width: 1.5rem;
    height: 0.75rem;
}

.swiper-slide div::-webkit-scrollbar-track {
    background: grey;
    border-radius: 100vw;
    margin-block: 0.5em;
}

.swiper-slide div::-webkit-scrollbar-thumb {
    background: rgba(114, 102, 95, 0.9);
    border: 0.1em solid white;
    border-radius: 100vw;
}

.swiper-slide div::-webkit-scrollbar-thumb:hover {
    background: black;
}

.swiper-slide div p {
    direction: ltr;
    width: 90%;
}

.swiper-slide div p:nth-child(1){
    text-align: start;
    font-size: 2rem;
}

.swiper-slide div p:nth-child(2){
    max-height: 80%;
    font-size: 1.5rem;
}

.swiper .swiper-button-next, .swiper .swiper-button-prev {
    color: black;
    margin: 0 16px 0 16px;
}

.swiper .swiper-pagination-bullet-active {
    background: black;
}

.insurance {
    margin-top: 16px;
}

.countable-services {
    width: 100%;
    background-color: rgb(210, 188, 175);
    display: flex;
    flex-direction: column;
    padding: 16px;
    align-items: start;
    justify-content: start;
}

.countable-title {
    height: 64px;
    font-size: 3rem;
    text-align: start;
    margin-top: 16px;
    color: black;
}

.countable-body {
    text-align: justify;
    color: white;
    font-size: 2rem;
}

.countable-subtitle {
    margin-top: 32px;
    font-size: 2.5rem;
}

.services {
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 2rem;
    padding: 16px 0px 16px 0;
    margin-right: 8px;
}

.services p {
    cursor: pointer;
    margin: 4px 0 4px 32px;
    transition: 0.5s;
}

.services p:hover {
    color: grey;
    scale: 1.05;
}

.services-body {
    display: none;
    margin-left: 48px ;
    font-size: 2rem;
}

.companies {
    width: 95vw;
    margin-top: 8px;
    margin-bottom: 16px;
    padding: 8px;
    background-color: white;
    border-radius: 8px;
}

.companies h1 {
    font-size: 3rem;
}

.all-companies {
    display: flex;
    width: 100%;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.companies figure {
    margin: 4px 0 4px 0;
}

.companies figure:hover .company-logo {
    scale: 1.1;
    transition: 1s;
}

.companies figure img {
    height: 100px;
    width: 160px;
    object-fit: contain;
    overflow: hidden;
}

.companies h1 {
    text-align: center;
}

.contact {
    width: 100%;
    background-color: white;
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact p {
    margin-top: 8px;
}

.contact-icons {
    display: flex;
    padding: 24px;
}

.contact-icons a figure img {
    height: 50px;
    margin: 0 16px 0 16px;
}

.close-window {
    position: absolute;
    top: 4px;
    right: 4px;
    height: 20px;
    cursor: pointer;
}

.data-upload {
    width: 90%;
    margin: 0 auto;
}

.box {
    display: flex;
    font-size: 1.5rem;
    flex-direction: column;
    width: 100%;
    margin: 8px auto 0 auto;
}

.title-input {
    width: 100%;
    margin-top: 8px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid black;
    padding: 0 8px 0 8px;
}

.body-input {
    width: 100%;
    margin-top: 8px;
    height: 120px;
    border-radius: 8px;
    border: 1px solid black;
    padding: 8px 8px;
    text-align: justify;
}

.data-submit {
    width: 124px;
    margin: 18px auto 0 auto;
    display: flex;
    justify-content: center;
}

.data-submit-button {
    cursor: pointer;
    color: white;
    border: 1px solid white;
    border-radius: 8px;
    padding: 4px;
    background: none;
    font-size: 24px;
    margin: 0 auto 0 auto;
    transition: 0.5s;
}

.data-submit-button:hover {
    color: black;
    border: 1px solid black;
    border-radius: 8px;
}

.title-input:focus, .body-input:focus {
    outline: none;
}

.add-data {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 1.5rem; 
}

.data-file {
    display: none;
}

.grid {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
}

.form-element {
    width: 200px;
    height: 200px;
    box-shadow: 0px 0px 20px 5px rgb(100,100,100,0.1);
}

.form-element input {
    display: none;
}

.form-element img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-element div {
    position: relative;
    height: 40px;
    margin-top: -40px;
    background:  rgb(0,0,0,0.5);
    text-align: center;
    line-height: 40px;
    font-size: 1rem;
    color: #f5f5f5;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.form-element div span{
    font-size: 3rem;
}

.send-mail {
    width: 90vw;
    height: 500px;
    background-color: rgb(210, 188, 175, 1);
    border: 1px solid black;
    border-radius: 16px;
    display: none;
    position: absolute;
    top: 95%;
    right: 5%;
}

.insurance-mail {
    top: 160% !important;
}

.capacitations-mail {
    top: 30% ;
}

.email-input {
    width: 100%;
    margin-top: 8px;
    height: 250px;
    border-radius: 8px;
    border: 1px solid black;
    padding: 8px 8px;
    text-align: justify;
    resize: none;
}

.prox {
    height: 80vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.prox h1 {
    color: white;
    font-size: 3.5rem;
}

.prox p {
    color: white;
    font-size: 2.5rem;
}

.news-body-preview {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Número de líneas a mostrar */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 6em; /* Ajusta según el tamaño de fuente */
    position: relative;
}
.see-more-link {
    display: inline-block;
    margin-left: 8px;
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
}

@font-face {
    font-family: "orpheuspro";
    src: url('../fonts/orpheuspro-medium.otf');
}

@font-face {
    font-family: "century-gothic";
    src: url('../fonts/century-gothic.TTF');
}

/* ====== Galería 3x3 ====== */
.gallery9 {
  margin: 64px auto;
  padding: 0 16px;
  max-width: 1200px;
}

.gallery9__title {
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: .2px;
    color: white;
    font-size: 4rem;
}

.gallery9__grid {
  --gap: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

/* Estado inicial (para entrada on-scroll) */
.gallery9__item {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    opacity .6s cubic-bezier(.2,.8,.2,1),
    transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}

/* Stagger (0–8) */
.gallery9__item:nth-child(1) { transition-delay: 0ms; }
.gallery9__item:nth-child(2) { transition-delay: 60ms; }
.gallery9__item:nth-child(3) { transition-delay: 120ms; }
.gallery9__item:nth-child(4) { transition-delay: 180ms; }
.gallery9__item:nth-child(5) { transition-delay: 240ms; }
.gallery9__item:nth-child(6) { transition-delay: 300ms; }
.gallery9__item:nth-child(7) { transition-delay: 360ms; }
.gallery9__item:nth-child(8) { transition-delay: 420ms; }
.gallery9__item:nth-child(9) { transition-delay: 480ms; }

.gallery9__item.in-view {
  opacity: 1;
  transform: none;
}

/* Card */
.gallery9__inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0b0b0b;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  outline: none;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s cubic-bezier(.2,.8,.2,1);
  will-change: transform, box-shadow;
  perspective: 800px;
}

/* Imagen */
.gallery9__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* Overlay */
.gallery9__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 80%, rgba(0,0,0,0) 0%, rgba(0,0,0,.28) 80%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

/* Caption */
.gallery9__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-size: .9rem;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
  pointer-events: none;
}

/* Hover / Focus (efecto “lindo”: lift + zoom + tilt) */
.gallery9__inner:hover,
.gallery9__inner:focus-visible {
  transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.gallery9__inner:hover .gallery9__img,
.gallery9__inner:focus-visible .gallery9__img {
  transform: scale(1.06) rotate(.35deg);
}
.gallery9__inner:hover::after,
.gallery9__inner:focus-visible::after {
  opacity: 1;
}

/* Responsivo */
@media (max-width: 1024px) {
  .gallery9__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery9__grid {
    grid-template-columns: repeat(1, minmax(130px, 1fr));
    gap: 12px;
  }
  .gallery9__caption { font-size: .85rem; }
  .gallery9__title { font-size: 2.5rem; }
}

/* Para móviles muy chicos, sigo con 2 columnas y achico un toque más */
@media (max-width: 460px) {
  .gallery9__grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
  }
  .gallery9__title { font-size: 2.5rem; }
  .gallery9__inner { border-radius: 10px; }
  .gallery9__caption { font-size: .8rem; }
}

/* Accesibilidad: reducir animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  .gallery9__item { transition: none; transform: none; opacity: 1; }
  .gallery9__inner, .gallery9__img { transition: none; }
}