/* styles.css - ESTILO NAVIDEÑO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
  background: linear-gradient(rgba(0, 40, 80, 0.25), rgba(0, 40, 80, 0.25)), url('assets/bg.png') center/cover no-repeat fixed;
}

/* ========== VISTAS PRINCIPALES ========== */
#home-view,
#info-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
}

#home-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  background-attachment: fixed;
  position: relative;
}

#home-view::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.05) 1.5px, transparent 2px),
    radial-gradient(circle at 80% 30%, rgba(0, 128, 0, 0.05) 1.5px, transparent 2px),
    radial-gradient(circle at 40% 70%, rgba(255, 0, 0, 0.05) 1.5px, transparent 2px),
    radial-gradient(circle at 90% 80%, rgba(0, 128, 0, 0.05) 1.5px, transparent 2px);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: -1;
}

#info-view {
  display: none;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3rem 2rem;
  margin-left: 90px;
  transition: margin-left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  max-width: 1600px;
  margin: 0 auto;
}

/* Menú expandido */
.sidebar-desktop.expanded ~ #info-view {
  margin-left: 270px;
}

/* ========== LOGO Y TEXTO DE INICIO ========== */
.logo-container-home {
  margin-bottom: 1.8rem;
  max-width: 600px;
  width: 100%;
  border-radius: 26px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.logo-container-home::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  z-index: -1;
}

.logo-img-home {
  max-width: 100%;
  height: auto;
  max-height: 240px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.25)) hue-rotate(10deg);
  pointer-events: none;
  -webkit-user-drag: none;
}

.tagline {
  font-size: 2rem;
  color: #fff;
  text-shadow: 
    0 2px 8px rgba(0,0,0,0.5),
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 0, 0, 0.2);
  margin: 1.5rem 0;
  max-width: 700px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========== MENÚ ESCRITORIO ========== */
.sidebar-desktop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 70px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 4px 0 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  z-index: 1000;
  transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-desktop.expanded {
  width: 250px;
  background: rgba(255, 255, 255, 0.98);
}

.nav-item {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.09);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-desktop.expanded .nav-item {
  width: 220px;
  padding-left: 20px;
  justify-content: flex-start;
}

.nav-icon {
  width: 24px;
  height: 24px;
  fill: #d32f2f;
  min-width: 24px;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  fill: #1b5e20;
}

.nav-text {
  position: absolute;
  left: 72px;
  white-space: nowrap;
  font-size: 1.18rem;
  font-weight: 600;
  color: #222;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-item:hover .nav-text,
.sidebar-desktop.expanded .nav-text {
  opacity: 1;
}

.sidebar-desktop.expanded .nav-text {
  position: static;
  margin-left: 16px;
}

.blood-drop {
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  width: 13px;
  height: 13px;
  background: #d32f2f;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  opacity: 0;
}

.nav-item.active .blood-drop {
  opacity: 1;
}

/* ========== MENÚ MÓVIL ========== */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  z-index: 2000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 3px;
  background: #d32f2f;
  margin: 2.5px 0;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.88);
  z-index: 1500;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu a {
  color: white;
  font-size: 1.45rem;
  margin: 20px 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.mobile-menu svg {
  width: 30px;
  height: 30px;
  margin-right: 18px;
  fill: white;
}

.mobile-menu a.active svg {
  fill: #1b5e20;
}

/* ========== VISTA INFORMATIVA ========== */
.info-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.8rem;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 1200px;
  margin: 0 auto 2.8rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #d32f2f, #1b5e20, #d32f2f);
  z-index: 1;
}

.section-title {
  font-size: 2.3rem;
  color: #d32f2f;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "❄";
  position: absolute;
  top: -20px;
  right: 20%;
  font-size: 1.5rem;
  color: #1b5e20;
  opacity: 0.7;
}

.separator {
  width: 100%;
  max-width: 300px;
  height: 4px;
  background: linear-gradient(to right, #d32f2f, #1b5e20);
  margin: 2.2rem auto;
  border-radius: 2px;
  position: relative;
}

.separator::before {
  content: "❄";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: #1b5e20;
  font-size: 1.2rem;
}

.mission-vision {
  text-align: center;
  margin: 2.2rem 0;
}

.mission-vision h3 {
  font-size: 1.9rem;
  color: #d32f2f;
  margin-bottom: 1.3rem;
}

.mission-vision p {
  font-size: 1.25rem;
  line-height: 1.75;
  color: #444;
  margin: 0 auto 1.5rem;
  max-width: 800px;
}

.mission-vision img {
  width: 100%;
  max-width: 450px;
  margin: 1.2rem auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Director */
.director-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin: 2rem 0;
}

.director-image-col {
  flex: 0 0 auto;
  width: 450px;
}

.director-text-col {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.director-text-col h3 {
  font-size: 1.9rem;
  color: #1b5e20;
  margin-bottom: 1.4rem;
}

.director-text-col p {
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
  line-height: 1.75;
}

.director-text-col strong {
  color: #1b5e20;
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.director-image {
  width: 100%;
  height: auto;
  max-width: 450px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.8rem;
}

.service-card {
  background: linear-gradient(135deg, #fff, #f8fafd);
  padding: 1.8rem;
  border-radius: 18px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  text-align: center;
  border: 1px solid rgba(211, 47, 47, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "❄";
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  color: #d32f2f;
  opacity: 0.5;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.25);
  background: linear-gradient(135deg, #fff, #f0f7f0);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  fill: #1b5e20;
}

.service-card h3 {
  font-size: 1.35rem;
  color: #d32f2f;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 1.3rem;
}

.service-btn {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: white;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-btn:hover {
  background: linear-gradient(135deg, #b71c1c, #9a0007);
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(211, 47, 47, 0.4);
}

/* Promociones */
.promo-main {
  text-align: center;
  margin-bottom: 3rem;
}

.promo-main img {
  width: 100%;
  max-width: 700px;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.22);
  display: block;
  margin: 0 auto 1.8rem;
}

.promo-secondary {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.promo-item {
  width: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  position: relative;
}

.promo-item::before {
  content: "🎄";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.5rem;
  z-index: 1;
}

.promo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-item .service-btn {
  width: 100%;
  border-radius: 0;
  padding: 12px;
  font-size: 1.1rem;
}

/* Ubicación */
#location-section iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========== FOOTER ========== */
.site-footer {
  display: none;
  background: linear-gradient(135deg, #d32f2f, #1b5e20);
  color: white;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.site-footer.active {
  display: block;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== MODAL DE CITAS ========== */
#booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 15px 50px rgba(211, 47, 47, 0.4);
  position: relative;
  opacity: 0;
  transform: scale(0.9);
  border: 1px solid rgba(211, 47, 47, 0.2);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: "❄";
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #d32f2f;
  opacity: 0.3;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #d32f2f;
  cursor: pointer;
  z-index: 2;
}

.close:hover {
  color: #9a0007;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.modal-title {
  text-align: center;
  font-size: 1.8rem;
  color: #d32f2f;
  margin-bottom: 1.8rem;
  position: relative;
}

.modal-title::after {
  content: "❄";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: #1b5e20;
}

#booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#booking-form input,
#booking-form select {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

#booking-form input:focus,
#booking-form select:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
  background: rgba(255, 255, 255, 1);
}

.btn-submit {
  background: linear-gradient(135deg, #d32f2f, #1b5e20);
  color: white;
  border: none;
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: all 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #b71c1c, #0d5302);
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.4);
}

/* Calendario mejorado */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23d32f2f" d="M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,19H5V8H19V19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3H18V1H16Z" /></svg>') no-repeat right 12px center;
  background-size: 20px;
  padding: 12px 40px 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

input[type="date"]:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

/* Select de hora mejorado */
select {
  appearance: none;
  -webkit-appearance: none;
  background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23d32f2f" d="M7,10L12,15L17,10H7Z" /></svg>') no-repeat right 12px center;
  background-size: 20px;
  padding: 12px 40px 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .sidebar-desktop { display: none !important; }
  .mobile-menu-btn { display: flex; }
  
  #home-view,
  #info-view {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }

  .director-content-wrapper { flex-direction: column; text-align: center; }
  .director-image-col { width: 100%; max-width: 450px; margin: 0 auto 1.8rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .info-card { padding: 2rem; }
  .section-title { font-size: 2rem; }
  .site-footer { padding: 1rem 0; }
  .footer-content { padding: 0 1.5rem; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  #home-view,
  #info-view {
    padding: 2rem 1rem;
  }
  .info-card { padding: 1.2rem; }
  .section-title { font-size: 1.8rem; }
  .mission-vision p { font-size: 1.15rem; }
  .director-text-col { font-size: 1.1rem; }
  .promo-main img { max-width: 100%; }
  .promo-secondary { gap: 1.2rem; }
  .promo-item { width: 100%; max-width: 300px; }
  
  .modal-content {
    padding: 1.8rem;
    margin: 1rem;
  }
  
  #booking-form input,
  #booking-form select {
    padding: 10px;
    font-size: 0.95rem;
  }
}

/* ========== MENÚ LATERAL EXPANDIBLE ========== */
.sidebar-desktop {
  transition: width 0.3s ease;
}

.sidebar-desktop.expanded {
  width: 250px;
}

.nav-item {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.09);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-desktop.expanded .nav-item {
  width: 220px;
  padding-left: 20px;
  justify-content: flex-start;
}

.nav-icon {
  width: 24px;
  height: 24px;
  fill: #d32f2f;
  min-width: 24px;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  fill: #1b5e20;
}

.nav-text {
  position: absolute;
  left: 72px;
  white-space: nowrap;
  font-size: 1.18rem;
  font-weight: 600;
  color: #222;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-item:hover .nav-text,
.sidebar-desktop.expanded .nav-text {
  opacity: 1;
}

.sidebar-desktop.expanded .nav-text {
  position: static;
  margin-left: 16px;
}

.blood-drop {
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  width: 13px;
  height: 13px;
  background: #d32f2f;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  opacity: 0;
}

.nav-item.active .blood-drop {
  opacity: 1;
}

/* ========== ÁREA DE HOVER PARA MENÚ LATERAL ========== */
.sidebar-hover-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 70px;
  height: 100vh;
  z-index: 999;
  pointer-events: auto;
  background: transparent;
  cursor: pointer;
}

.sidebar-desktop.expanded ~ #sidebar-hover-area {
  width: 250px;
}

#sidebar-hover-area {
  background: transparent;
  cursor: pointer;
}

/* ========== EFECTOS NAVIDEÑOS ========== */
@keyframes navideño-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes navideño-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.tagline {
  animation: navideño-pulse 3s infinite ease-in-out;
}

.logo-img-home {
  animation: navideño-float 4s infinite ease-in-out;
}

.service-card {
  animation: navideño-float 5s infinite ease-in-out;
}

.service-card:nth-child(2n) {
  animation-delay: 0.5s;
}

.service-card:nth-child(3n) {
  animation-delay: 1s;
}