@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #82c7b3;
  /* Highlight green */
  --primary-dark: #6eb5a1;
  --primary-light: #e6f4f0;
  --secondary-color: #2c3e50;
  --text-dark: #333333;
  --text-light: #777777;
  --bg-color: #ffffff;
  --bg-alt: #f8fbfb;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 40px rgba(130, 199, 179, 0.2);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--secondary-color);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(130, 199, 179, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(130, 199, 179, 0.6);
  color: white;
}

.btn-outline {
  /*background-color: transparent;*/
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Header & Nav */
header {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 500;
  position: relative;
  font-size: 1rem;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a.active {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--secondary-color);
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%), url('../img/instalaciones/entrada.webp') center/cover no-repeat;
}

.hero-content {
  max-width: 600px;
  animation: fadeInDown 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* Page Header */
.page-header {
  padding: 150px 0 80px;
  background-color: var(--primary-light);
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* About Section */
.about {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img img {
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-img::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: 20px;
  z-index: -1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Team Section */
.team {
  padding: 80px 0;
  background-color: var(--bg-alt);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  padding-bottom: 30px;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.team-card img {
  width: 100%;
  /*height: 350px;*/
  object-fit: cover;
}

.team-info {
  padding: 25px 20px 0;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.team-info span {
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
}

.team-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  text-wrap-style: balance;
}

/* Services */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover::after {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
  color: white;
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.service-card p {
  color: var(--text-light);
  transition: var(--transition);
}

/* Facilities */
.facilities {
  padding: 100px 0;
  background-color: var(--bg-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Plans */
.plans {
  padding: 100px 0;
}

.plan-category-title {
  text-align: center;
  font-size: 2rem;
  margin: 50px 0 50px;
  color: var(--secondary-color);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.plan-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.plan-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.plan-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Outfit', sans-serif;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.plan-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 10px;
  font-style: italic;
}

.plan-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-features li i {
  color: var(--primary-color);
  margin-top: 5px;
}

/* Contact */
.contact {
  padding: 100px 0;
  background-color: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

.contact-item h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.contact-item p {
  color: var(--text-light);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(130, 199, 179, 0.2);
}

textarea.form-control {
  resize: vertical;
  height: 150px;
}

.map-container {
  margin-top: 50px;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: white;
}

.footer-about span {
  color: var(--primary-color);
}

.footer-about p {
  color: #ccc;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* Legal Pages */
.legal-content {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin: 30px 0 15px;
  font-size: 1.8rem;
}

.legal-content h3 {
  margin: 20px 0 10px;
  font-size: 1.3rem;
}

.legal-content p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
  color: var(--text-light);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

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

  .about-img {
    margin-bottom: 30px;
  }
}

@media (max-width: 1000px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-btns {
    justify-content: center;
    flex-direction: column;
  }
}