/* ============================================
   ARENAL OTERO — Custom Styles
   Burgundy + Blush | Playfair Display + Inter
   ============================================ */

/* --- Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #7B2D3B;
  color: white;
}

/* --- Section Label --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7B2D3B;
  background: linear-gradient(135deg, #fce7eb 0%, #f9ede8 100%);
  padding: 0.4em 1em;
  border-radius: 50px;
  border: 1px solid #fad0d9;
}

/* --- Header --- */
#header {
  background: transparent;
}

#header.scrolled {
  background: rgba(253, 248, 246, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(123, 45, 59, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7B2D3B;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu --- */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.menu-line.open-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-line.open-2 {
  opacity: 0;
}

.menu-line.open-3 {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.25rem;
}

/* --- Hero --- */
.hero-image-wrapper {
  will-change: transform;
}

.hero-floating-card {
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-cta-primary {
  position: relative;
  overflow: hidden;
}

.hero-cta-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-cta-primary:hover::before {
  opacity: 1;
}

.hero-cta-secondary {
  position: relative;
}

/* --- Service Cards --- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7B2D3B, #d17852);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* --- About --- */
.about-images {
  position: relative;
}

.about-img-secondary {
  animation: floatCard 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* --- Property Cards --- */
.property-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.property-card:hover {
  transform: translateY(-6px);
}

/* --- Form --- */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.08);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Counter Animation --- */
.counter {
  display: inline-block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-label {
    font-size: 0.7rem;
  }

  .about-img-secondary {
    display: none;
  }

  .about-experience-badge {
    display: none !important;
  }
}

/* --- Print --- */
@media print {
  header, #contacto, .cta-banner {
    display: none;
  }
}
