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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #f4efeb;
  color: #2f1f29;
  -webkit-font-smoothing: antialiased;
}

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ff8f8f;
  outline-offset: 4px;
}

/* NAVBAR */

.navbar {
  width: 100%;
  background: #e7dfdb;
  padding: 18px 8%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #2f1f29;
  font-size: 15px;
  position: relative;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

nav a:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.btn-nav {
  background: #2c1b27;
  color: white;
  border: 3px solid #ff5b5b;
  padding: 10px 22px;
  border-radius: 30px;
  box-shadow: 0 8px 18px rgba(44, 27, 39, 0.12);
}

.btn-nav:hover {
  opacity: 1;
  box-shadow: 0 12px 24px rgba(44, 27, 39, 0.18);
}

/* CARRUSEL */

.carousel-container {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1.1s ease, transform 5s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

/* LOGO */

.logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.logo-overlay img {
  width: 240px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.2));
}

/* FLECHAS */

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 50px;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  line-height: 1;
  opacity: 0.82;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.prev:hover,
.next:hover {
  opacity: 1;
}

.prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.next:hover {
  transform: translateY(-50%) translateX(3px);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* DOTS */

.dots {
  position: absolute;
  bottom: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  opacity: 0.5;
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dot.active {
  opacity: 1;
  transform: scale(1.18);
}

.dot:hover {
  opacity: 0.9;
  transform: scale(1.12);
}

/* ABOUT */

.about {
  background: #2c1b27;
  color: white;
  padding: 90px 10%;
  text-align: center;
}

.about h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  margin-bottom: 35px;
  font-style: italic;
  text-decoration: underline;
}

.about h3 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-style: italic;
  text-align: left;
}

.about p {
  max-width: 1000px;
  margin: auto;
  line-height: 1.8;
  font-size: 17px;
}

.filosofia {
  max-width: 1000px;
  margin: 40px auto 0;
  text-align: left;
}

/* MEMBRESÍAS */

/* MEMBRESÍAS */

.memberships {
  padding-top: 78px;
  text-align: center;
}

/* HEADER OSCURO */

.memberships-header {
  background: #2c1b27;
  color: white;
  padding: 28px 8%;
}

.memberships h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  margin-bottom: 6px;
  font-style: italic;
  text-decoration: underline;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 15px;
  font-weight: 300;
}

/* CONTENIDO */

.memberships-content {
  padding: 28px 8% 80px;
}

/* TABLA */

.table-container {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 70%;
  border-collapse: collapse;
}

th,
td {
  padding: 20px 10px;
  border-bottom: 1px solid #a6a6a6;
}

th {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

td {
  font-size: 15px;
  color: #2f1f29;
  transition: background-color 0.25s ease;
}

tr:not(:first-child):hover td {
  background: rgba(255, 255, 255, 0.25);
}

/* PRIMERA COLUMNA */

td:first-child {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  table {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .memberships-header {
    padding: 24px 6%;
  }

  .memberships h1 {
    font-size: 34px;
  }

  .subtitle {
    font-size: 14px;
  }

  th {
    font-size: 16px;
  }

  td {
    font-size: 13px;
  }

  td:first-child {
    font-size: 15px;
  }

  th,
  td {
    padding: 16px 8px;
  }
}

/* CONTACTO */

/* CONTACTO */

.contact {
  background: #e7dfdb;
  padding: 70px 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* TEXTO */

.contact-text h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  margin-bottom: 18px;
}

.contact-text p {
  line-height: 1.7;
  font-size: 15px;
  max-width: 320px;
}

/* FORMULARIO */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.success-message {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #2c1b27;
}

/* INPUTS */

.contact-form input,
.contact-form textarea {
  border: none;
  padding: 14px 18px;
  border-radius: 40px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  background: white;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 10px 24px rgba(44, 27, 39, 0.1);
  transform: translateY(-1px);
}

/* TEXTAREA */

.contact-form textarea {
  border-radius: 28px;
  min-height: 110px;
  resize: none;
}

/* BOTÓN */

.contact-form button {
  width: 170px;
  padding: 13px;
  border: none;
  border-radius: 40px;
  background: #2c1b27;
  color: white;
  border: 3px solid #ff5b5b;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(44, 27, 39, 0.12);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-form button:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(44, 27, 39, 0.18);
}

.contact-form button:active,
.btn-nav:active {
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-text p {
    margin: auto;
  }

  .contact-form button {
    margin: auto;
  }
}

/* FOOTER */

footer {
  background: #f1e9e5;
}

.footer-info {
  padding: 40px 8%;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.socials a {
  text-decoration: none;
  color: #2f1f29;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.socials a:hover {
  opacity: 0.75;
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.copyright {
  background: #ff8f8f;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  nav {
    gap: 25px;
  }

  .logo-overlay img {
    width: 160px;
  }

  .about h2,
  .memberships h1 {
    font-size: 42px;
  }

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

  .footer-info {
    flex-direction: column;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .carousel-container {
    height: 72vh;
    min-height: 520px;
  }

  .prev,
  .next {
    font-size: 38px;
    padding: 14px;
  }

  .prev {
    left: 8px;
  }

  .next {
    right: 8px;
  }

  .dots {
    bottom: 22px;
  }

  nav a {
    font-size: 13px;
  }

  .btn-nav {
    padding: 8px 16px;
  }

  .about {
    padding: 70px 8%;
  }

  .about h2,
  .memberships h1 {
    font-size: 34px;
  }

  .about h3 {
    font-size: 28px;
  }

  .about p {
    font-size: 15px;
  }

  th,
  td {
    padding: 16px;
    font-size: 14px;
  }

  .contact-text h2 {
    font-size: 42px;
  }

  /* NUEVO */

  table {
    width: 100%;
    min-width: 520px;
  }

  th {
    font-size: 13px;
  }

  td {
    font-size: 11px;
  }

  td:first-child {
    font-size: 12px;
  }

  th,
  td {
    padding: 14px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
