/* ============================================
   SECTIONS.CSS — Section-Specific Styles
   Ps. Giovanni Chicago
   ============================================ */

/* ════════════════════════════════════════════
   GENERAL SECTION
   ════════════════════════════════════════════ */

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: var(--space-lg);
}

.section-header p {
  color: var(--warm-gray);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 200px; /* Reserva espacio ajustado para el logo en el inicio */
  padding-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  #hero {
    padding-top: 150px; /* Reserva espacio ajustado para el logo en móviles */
  }
}

/* ── Hero Background (Image/Video) ── */
.hero-bg-img,
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.5) sepia(0.15);
}

.hero-bg-img {
  object-position: left bottom;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 248, 0.85) 0%,
    rgba(250, 250, 248, 0.70) 40%,
    rgba(250, 250, 248, 0.85) 70%,
    rgba(250, 250, 248, 1) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-name .accent-text {
  color: var(--gold);
}

.hero-tagline {
  font-size: var(--text-xl);
  color: var(--warm-gray);
  font-weight: 300;
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.03em;
  max-width: 500px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Hero Brand Logo ── */
.hero-brand-logo {
  position: absolute;
  top: 15px; /* Alineado verticalmente con el menú ajustado */
  left: calc(50% - var(--max-width)/2 + var(--space-xl) + 1cm); /* Desplazado 1cm a la derecha */
  z-index: 2; /* Por encima del overlay de fondo pero detrás del menú al hacer scroll */
}

.hero-logo-img {
  width: 200px;
  height: auto;
  display: block;
}

@media (max-width: 1240px) {
  .hero-brand-logo {
    left: calc(var(--space-xl) + 1cm); /* Desplazado 1cm a la derecha */
  }
}

@media (max-width: 768px) {
  .hero-brand-logo {
    top: 15px;
    left: calc(var(--space-md) + 1cm); /* Desplazado 1cm a la derecha */
  }
  .hero-logo-img {
    width: 140px;
  }
}

/* ── Scroll Indicator ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--warm-gray);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    var(--gold),
    transparent
  );
}

/* ════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.about-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--deep-navy);
  border: var(--border-subtle);
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 60%;
  border-right: 2px solid rgba(201, 169, 110, 0.2);
  border-bottom: 2px solid rgba(201, 169, 110, 0.2);
  border-radius: 0 0 var(--radius-lg) 0;
  pointer-events: none;
}

.about-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder .monogram {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  color: rgba(201, 169, 110, 0.12);
  font-weight: 400;
  letter-spacing: 0.1em;
  user-select: none;
}

.about-text h3 {
  margin-bottom: var(--space-lg);
}

.about-text p {
  color: var(--warm-gray);
  line-height: 1.8;
}

.about-philosophy {
  margin-top: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.philosophy-item {
  padding: var(--space-lg);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.philosophy-item:hover {
  border-color: rgba(201, 169, 110, 0.25);
  background: var(--slate);
}

.philosophy-item .philosophy-icon {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--gold);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.philosophy-item h5 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.philosophy-item p {
  font-size: var(--text-sm);
  color: var(--warm-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--deep-navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.service-card:hover {
  border-color: rgba(201, 169, 110, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-number {
  font-size: 5rem;
  color: rgba(201, 169, 110, 0.08);
  font-family: var(--font-display);
  font-weight: 400;
  position: absolute;
  top: -1rem;
  right: 1rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.service-card .service-accent {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  position: relative;
  color: var(--text-on-dark);
}

.service-card p {
  color: var(--text-on-dark-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}

.service-card .service-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link {
  color: var(--gold-light);
}

.service-card:hover .service-link::after {
  transform: translateX(4px);
}

/* ════════════════════════════════════════════
   BOOKING
   ════════════════════════════════════════════ */

.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.booking-info h3 {
  margin-bottom: var(--space-lg);
}

.booking-info p {
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.booking-form {
  background: var(--deep-navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

/* ── Booking Steps Indicator ── */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: var(--border-subtle);
}

.booking-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--warm-gray);
  transition: color var(--transition-base);
}

.booking-step.active {
  color: var(--gold);
}

.booking-step.completed {
  color: var(--gold-light);
}

.booking-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--warm-gray);
  background: transparent;
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base);
  flex-shrink: 0;
}

.booking-step.active .booking-step-dot {
  border-color: var(--gold);
  background: var(--gold);
}

.booking-step.completed .booking-step-dot {
  border-color: var(--gold-light);
  background: var(--gold-light);
}

.booking-step-line {
  width: 40px;
  height: 1px;
  background: rgba(156, 163, 175, 0.3);
  margin: 0 var(--space-sm);
  flex-shrink: 0;
}

.booking-step.active ~ .booking-step-line,
.booking-step.completed + .booking-step-line {
  background: rgba(201, 169, 110, 0.4);
}

/* ── Time Slots ── */
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.time-slot {
  padding: 0.75rem;
  text-align: center;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--warm-gray);
  background: transparent;
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base),
    color var(--transition-base);
}

.time-slot:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

.time-slot.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

.time-slot.unavailable {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ════════════════════════════════════════════
   LOCATIONS
   ════════════════════════════════════════════ */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.location-card {
  background: var(--deep-navy);
  color: var(--text-on-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition:
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.location-card:hover {
  border-color: rgba(201, 169, 110, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.location-map {
  aspect-ratio: 16 / 9;
  background: var(--deep-navy);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  position: relative;
}

.location-map iframe,
.location-map img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.location-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(201, 169, 110, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(201, 169, 110, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.location-map::after {
  content: '';
  display: none;
}

.location-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.location-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.location-details {
  list-style: none;
}

.location-details .location-detail {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  color: var(--text-on-dark-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 248, 234, 0.06);
}

.location-details .location-detail:last-child {
  border-bottom: none;
}

.location-details .location-detail .detail-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold);
  opacity: 0.7;
  margin-top: 1px;
}

/* ════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-info h3 {
  margin-bottom: var(--space-lg);
}

.contact-info > p {
  color: var(--warm-gray);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  margin-bottom: var(--space-xl);
}

.contact-detail .detail-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-top: 2px;
}

.contact-detail .detail-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-detail .detail-label {
  font-size: var(--text-xs);
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.contact-detail .detail-value {
  color: var(--cream);
  font-size: var(--text-base);
}

.contact-detail .detail-value a {
  color: var(--cream);
  transition: color var(--transition-fast);
}

.contact-detail .detail-value a:hover {
  color: var(--gold);
}

/* ── Social Links ── */
.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-subtle);
  border-radius: 50%;
  color: var(--warm-gray);
  transition:
    border-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base),
    background-color var(--transition-base);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
  background: var(--gold-dim);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.contact-form {
  background: var(--deep-navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */

.footer {
  padding: var(--space-2xl) 0;
  border-top: var(--border-subtle);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: var(--warm-gray);
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--warm-gray);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
}
