﻿:root {
  /* Paleta de colores principal */
  --color-green-bright: #57ff8c;
  --color-blue-light: #4174ff;
  --color-teal: #5cffd6;
  --color-green-lime: #03ff1c;
  --color-blue-royal: #0d47a1;
  /* Variables funcionales */
  --color-primary: var(--color-blue-royal);
  --color-secondary: var(--color-green-bright);
  --color-accent: var(--color-teal);
  --color-highlight: var(--color-blue-light);
  --color-background: #00c81e;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-dark: #111111;
  /* Sombras y efectos */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  /* Bordes */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Estilos base */
body {
  background: linear-gradient(135deg, #0d47a1, #1976d2, #59cea7, #239321);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

main.admin{
  visibility: hidden;
}

nav.admin{
  visibility: hidden;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

a {
  color: var(--color-primary);
  font-size: large;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* Header y navegación */
header {
  background-color: var(--color-blue-royal);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav a {
  color: white;
  font-weight: 500;
  transition: color var(--transition-fast);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

header nav a:hover {
  color: #e0f7fa;
}

#menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Sección Bio */
#bio {
  background-image: url("../media/img/banner2.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  padding: 3rem 1rem;
}

#bio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

#bio h1, #bio h2, #bio p {
  position: relative;
  z-index: 1;
}

#bio h1 {
  font-size: 4rem;
  /* margin-top: 0.5rem; */
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

#bio h2 {
  font-weight: 400;
  font-size: 1.5rem;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
}

#bio p {
  font-size: 1.2rem;
  margin: 0 auto;
  padding-bottom: 1rem;
  max-width: 950px;
  font-weight: 400;
  font-style: italic;
}


/* Sección Servicios */
#services {
  padding: 4rem 1rem;
}

#services h2, #novedades h2, #contact h2, #booking h2, #schedule h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

#services h2:after, #novedades h2:after, #contact h2:after, #booking h2:after, #schedule h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-accent);
}

.card {
  /* transition: transform var(--transition-normal), box-shadow var(--transition-normal); */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transform: scale(1.03);
}

.card h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.card p:nth-of-type(2) {
  font-weight: bold;
  color: var(--color-text-dark);
  font-size: 1.1rem;
}

.service-info {
  color: lightgoldenrodyellow;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                0 0 20px rgba(255, 255, 255, 0.6);
}

.service-links {
  margin-top: 2rem;
  color: var(--color-teal);
  text-shadow:  0 0 5px rgba(255, 255, 255, 0.5),
                0 0 10px rgba(255, 255, 255, 0.3);
}

.service-links h3 {
  margin-bottom: 1rem;
  color: var(--color-blue-royal);
}

.service-links ul li a {
  color: var(--color-teal);
  text-shadow: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.service-links ul li a:hover {
  color: var(--color-blue-light);
  text-decoration: underline;
}

.service-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  font-weight: 500;
}

.service-btn:hover {
  background-color: var(--color-accent);
}

/* Sección Novedades */
#novedades {
  padding: 4rem 1rem;
  backdrop-filter: blur(5px);
}

.carousel {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel > div {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Estilos del carrusel */
.carousel-container {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  padding: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-item {
  flex: 0 0 auto;
  padding-bottom: 20px;
}

.carousel-item .card {
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  border-bottom: 3px solid var(--color-accent);
}

@media (min-width: 768px) {
  .carousel-item {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    width: 33.333333%;
  }
}

/* Botones de navegación */
.carousel-controls {
  position: absolute;
  top: -50px;
  right: 0;
  display: flex;
  gap: 10px;
}

#prev-btn,
#next-btn {
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: var(--color-blue-royal);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#prev-btn:hover,
#next-btn:hover {
  opacity: 1;
  background-color: var(--color-green-bright);
}

#prev-btn:disabled,
#next-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Indicadores */
.carousel-indicator {
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-indicator.active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

/* Animaciones */
.carousel-item {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.carousel-item.active {
  opacity: 1;
}

/* Sección Contacto */
#contact {
  padding: 4rem 1rem;
  backdrop-filter: blur(5px);
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(29, 233, 182, 0.2);
}

#contactForm button {
  background-color: var(--color-primary);
  transition: background-color var(--transition-fast);
}

#contactForm button:hover {
  background-color: var(--color-accent);
}

/* Footer */
footer {
  background-color: var(--color-blue-royal);
  color: white;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: white;
}

/* Cards con fondo verde claro */
.card-light-green {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.5), rgba(13, 71, 161, 0.5));
  backdrop-filter: blur(5px);
  border-left: 3px solid var(--color-green-bright);
  border-right: 3px solid var(--color-green-bright);
}

/* Estilos para la página de pago */
.payment-card {
  /* background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(13, 71, 161, 0.1));*/
  background: rgba(245, 245, 245, 0.6);
  backdrop-filter: blur(5px);
  border-left: 3px solid var(--color-green-bright);
  border-right: 3px solid var(--color-blue-royal);
}

.payment-button {
  background: linear-gradient(135deg, #00c853, #00e676);
  transition: all 0.3s ease;
}

.payment-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #00b84d, #00d666);
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
}
  
/* Responsive */
@media (max-width: 768px) {
  #menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: var(--color-blue-royal);
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    z-index: 100;
  }

  #menu.active {
    display: flex;
  }

  #menu li {
    margin: 0.5rem 0;
  }

  #bio h1 {
    font-size: 2rem;
  }

  #bio h2 {
    font-size: 1.25rem;
  }

  #services h2,
  #novedades h2,
  #contact h2 {
    font-size: 1.75rem;
  }

  .carousel {
    padding-bottom: 1rem;
  }

  .carousel-controls {
    position: relative;
    top: 0;
    right: 0;
    justify-content: center;
    margin-bottom: 20px;
  }

  #services .grid,
  #novedades .grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .carousel-item {
    width: 100%;
    margin-right: 1rem;
  }
  
}
  
/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn var(--transition-normal);
}

/* Para videos-ref de YouTube */
@media (forced-colors: active) {
    iframe {
        border-color: WindowText;
    }
}


/* ---------------------------------------- */
/*            STYLE PARA ADMIN              */
/* ---------------------------------------- */


/* Estilos para el panel de administración */

.admin-card {
background: linear-gradient(135deg, #0d47a1, #00c853);
transition: all 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.admin-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Estilos para el panel de administración */
.admin-header {
background-color: var(--color-blue-royal);
}

/* Estilos pasra el calendario (admin-agenda) */
.calendar-cell {
  min-height: 36px;
  transition: all 0.2s;
}

.calendar-cell:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.calendar-cell.available {
  background-color: rgba(16, 185, 129, 0.2);
}

.calendar-cell.unavailable {
  background-color: rgba(239, 68, 68, 0.2);
}

.calendar-cell.exception {
  position: relative;
}

.calendar-cell.exception::after {
  content: "!";
  position: absolute;
  top: 2px;
  right: 5px;
  font-weight: bold;
  color: #ef4444;
}

.calendar-header {
  background-color: #f3f4f6;
  font-weight: bold;
}

.time-slot {
  background-color: #f3f4f6;
  font-weight: bold;
  font-size: 0.85rem;
}

.not-current-month {
  opacity: 0.3;
}

.past-date {
  opacity: 0.2;
  background-color: #f3f4f6;
}

.today-cell {
  border: 2px solid #3b82f6;
}

.today-header {
  border-bottom: 2px solid #3b82f6;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid #3498db;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
