/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 6rem;
  background-color: var(--color-background-alt); /* Fondo claro */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at top right,
    var(--color-primary-light) 0%,
    transparent 70%
  );
  opacity: 0.5;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 800px;
  color: var(--color-text);
  animation: fade-in 1s ease, slide-up 1s ease;
}

.hero-title .accent {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 100;
}

.hero-text {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  animation: fade-in 1s ease 0.3s, slide-up 1s ease 0.3s;
  animation-fill-mode: both;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  animation: fade-in 1s ease 0.6s, slide-up 1s ease 0.6s;
  animation-fill-mode: both;
}

/* Contenedor del hero */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* Para que se adapte en pantallas pequeñas */
  text-align: center;
}

/* Logotipo en el hero */
.hero-logo {
  flex-shrink: 0; /* Evita que el logotipo se reduzca */
}

.logo-hero {
  height: 150px; /* Tamaño destacado */
  animation: fadeIn 2s ease-in-out; /* Animación de entrada */
}

/* Texto del hero */
.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  border: 2px solid var(--color-primary);
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sistema de Turnos */
.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calendar-wrapper {
  padding: 2rem;
  border-right: 1px solid var(--color-border);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.month-nav {
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.month-nav:hover {
  background-color: var(--color-primary-light);
  color: white;
}

.current-month {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.calendar {
  width: 100%;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 0.5rem;
}

.day-name {
  font-weight: 500;
  color: var(--color-text-light);
  padding: 0.5rem;
  font-size: 0.9rem;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  font-weight: 500;
}

.day:hover:not(.empty):not(.disabled) {
  background-color: var(--color-primary-light);
  color: white;
}

.day.empty {
  visibility: hidden;
}

.day.disabled {
  color: var(--color-text-light);
  opacity: 0.5;
  cursor: default;
}

.day.today {
  border: 2px solid var(--color-primary);
}

.day.available {
  background-color: rgba(64, 224, 208, 0.15);
}

.day.selected {
  background-color: var(--color-primary);
  color: white;
}

/* Time slots */
.time-slots {
  margin-top: 2rem;
}

.time-slots-title {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.time-slot {
  padding: 0.75rem;
  text-align: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  font-weight: 500;
}

.time-slot.available {
  background-color: rgba(64, 224, 208, 0.15);
  color: var(--color-text);
}

.time-slot.occupied {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--color-text-light);
  cursor: not-allowed;
}

.time-slot.available:hover {
  background-color: var(--color-primary-light);
  color: white;
}

.time-slot.selected {
  background-color: var(--color-primary);
  color: white;
}

/* Booking Form */
.booking-form {
  padding: 2rem;
}

.selected-date-time {
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.limit-reached {
  color: var(--color-danger);
}

/* Equipo */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.team-member {
  text-align: center;
  animation: fadeInUp 1s ease-in-out;
}

.member-image {
  width: 200px;
  height: 200px;
  border-radius: 10%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 5px solid white;
  box-shadow: var(--shadow-md);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
  transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.05);
  transform: scale(1.1);
}

.subsection-title {
  text-align: center;
  margin-bottom: 2rem;
}

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

.office-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.office-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: black; /* Cambiar a negro */
}

.btn-whatsapp {
  background-color: #a8e6cf; /* Verde pastel */
  color: black;
}

.btn-whatsapp:hover {
  background-color: #94d6bb;
}

.btn-email {
  background-color: #ffcccb; /* Rojo pastel */
  color: black;
}

.btn-email:hover {
  background-color: #f4b8b6;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--color-primary);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

/* Animaciones */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}

/* Animación del logotipo */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Header */
.header {
  padding: 5rem 0;
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeIn 1.5s ease-in-out;
}

.logo-header {
  height: 120px;
  animation: bounceIn 1.5s ease-in-out;
}

.header-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  animation: fadeInDown 1.5s ease-in-out;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1.5s ease-in-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-normal);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 50px;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background-color: var(--color-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .booking-container {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    max-width: 300px;
  }

  .time-slots-grid {
    grid-template-columns: 1fr;
  }

  .hero-container {
    flex-direction: column; /* Apilar logotipo y texto */
  }

  .logo-hero {
    height: 120px; /* Reducir tamaño en móviles */
  }

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

  .hero-description {
    font-size: 1rem;
  }
}

/* Después */
body {
  font-family: "Raleway", sans-serif;
}
