/* ===================================
   COMPONENTS - RESPONSIVE CSS
   =================================== */

/* ===================================
   HERO ASTERISK - RESPONSIVE SIZES
   =================================== */

/* Mobile: altura fija pequeña */
@media (max-width: 767px) {
  .hero-asterisk {
    height: 80px !important;
  }
}

/* Desktop: 45vh como especificado */
@media (min-width: 768px) {
  .hero-asterisk {
    height: 45vh !important;
    min-height: 200px !important; /* Altura mínima para pantallas muy pequeñas */
    max-height: 600px !important; /* Altura máxima para pantallas muy grandes */
  }
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
  background: linear-gradient(to right, var(--eden-green), var(--eden-blue));
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 102, 199, 0.3);
  text-decoration: none;
  color: white;
}

@media (max-width: 767px) {
  .btn-primary {
    padding: 10px 20px;
    font-size: var(--font-size-sm);
    width: 100%;
    text-align: center;
  }
}

.btn-secondary {
  background: transparent;
  color: var(--eden-blue);
  border: 2px solid var(--eden-blue);
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--eden-blue);
  color: white;
  text-decoration: none;
}

/* ===================================
   CARDS
   =================================== */

.card-base {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card-base:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  /* height: 200px; */
  object-fit: cover;
}

@media (min-width: 768px) {
  .card-image {
    /* height: 250px; */
  }
}

.card-content {
  padding: var(--spacing-lg);
}

.card-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--eden-blue);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-tight);
}

.card-text {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: #666;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

.card-link {
  color: var(--eden-green);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.3s ease;
}

.card-link:hover {
  color: var(--eden-blue);
  text-decoration: underline;
}

/* ===================================
   TESTIMONIAL CARDS
   =================================== */

.testimonial-card {
  background-color: var(--eden-blue);
  border-radius: 12px;
  padding: var(--spacing-lg);
  height: 100%;
  color: white;
  font-family: var(--font-primary);
}

@media (max-width: 767px) {
  .testimonial-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
}

.testimonial-stars {
  display: flex;
  margin-bottom: var(--spacing-md);
  color: var(--eden-green);
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  margin-right: 2px;
}

@media (max-width: 767px) {
  .testimonial-stars svg {
    width: 18px;
    height: 18px;
  }
}

.testimonial-text {
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: white;
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-relaxed);
  font-style: italic;
}

@media (min-width: 768px) {
  .testimonial-text {
    font-size: var(--font-size-base);
  }
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--eden-green);
  margin-right: var(--spacing-md);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .testimonial-avatar {
    width: 40px;
    height: 40px;
  }
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: white;
  margin: 0 0 4px 0;
}

.testimonial-info p {
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: white;
  opacity: 0.8;
  margin: 0;
}

/* ===================================
   NAVIGATION COMPONENTS
   =================================== */

/* Mobile Menu Button */
.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mobile-menu-btn .menu-icon {
  width: 24px;
  height: 24px;
  stroke: white !important; /* Forzamos color blanco siempre */
  stroke-width: 2;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mobile-menu-btn:focus {
  outline: none;
}

/* Icon switching animation */
.mobile-menu-btn.open #hamburger-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.mobile-menu-btn.open #close-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.mobile-menu-btn #close-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.mobile-menu-btn #hamburger-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.nav-button {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eden-blue);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: var(--eden-green);
  color: white;
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .nav-button {
    width: 40px;
    height: 40px;
  }
}

.nav-button svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 767px) {
  .nav-button svg {
    width: 20px;
    height: 20px;
  }
}

.nav-counter {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--font-size-sm);
  box-shadow: 0 4px 12px rgba(156, 163, 175, 0.3);
}

@media (max-width: 767px) {
  .nav-counter {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
}

/* ===================================
   FORM COMPONENTS
   =================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: #333;
  font-size: var(--font-size-base);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--eden-blue);
  box-shadow: 0 0 0 3px rgba(45, 102, 199, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===================================
   ABOUT SECTION - RESPONSIVE HEIGHTS
   =================================== */

/* Desktop height */
.about-images-container {
  height: 500px;
}

/* ===================================
   LANDLORDS ABOUT SECTION - HEIGHTS
   =================================== */

/* Desktop heights */
.about-main-container {
  min-height: 90vh;
}

.about-left-column {
  min-height: 75vh;
}

.about-section-right-column {
  min-height: 90vh;
}

/* Mobile height */
@media (max-width: 768px) {
  .about-images-container {
    height: 300px;
  }
  
  /* Property Management Section - Sin padding inferior en móvil */
  #property-management {
    padding-bottom: 0px !important;
  }
  
  /* Landlords About Section - Alturas automáticas en móvil */
  .about-main-container {
    min-height: 70vh !important;
  }
  
  .about-left-column {
    min-height: 70vh !important;
  }
  
  .about-section-right-column {
    min-height: 70vh !important;
  }
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--eden-green);
}

.form-checkbox label {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  cursor: pointer;
}

/* ===================================
   HERO COMPONENTS
   =================================== */

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  padding: var(--spacing-xl) var(--spacing-lg);
}

@media (min-width: 768px) {
  .hero-container {
    min-height: 90vh;
    padding: var(--spacing-xxl) var(--spacing-lg);
  }
}

.hero-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--eden-blue);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--font-size-hero);
    max-width: 800px;
  }
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: #666;
  margin-bottom: var(--spacing-xl);
  line-height: 1.5;
  max-width: 500px;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--font-size-xl);
    max-width: 600px;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
  max-width: 300px;
}

@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--eden-blue);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 35px !important;
    }
}

@media (min-width: 768px) {
  .section-title {
        font-size: 35px !important;
  }
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: #666;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   SPECIAL EFFECTS
   =================================== */

.text-gradient {
  background: linear-gradient(to right, var(--eden-green), var(--eden-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.box-shadow-soft {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.box-shadow-medium {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.box-shadow-strong {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.rounded-soft { border-radius: 8px; }
.rounded-medium { border-radius: 12px; }
.rounded-large { border-radius: 16px; }
.rounded-full { border-radius: 50%; }

/* ===================================
   QUIENES SOMOS SECTION - RESPONSIVE
   =================================== */

/* Columna derecha del slider - oculta en móvil */
.about-section-right-column {
  /* Visible por defecto (desktop/tablet) */
}

@media (max-width: 767px) {
  .about-section-right-column {
    display: none !important;
  }
}

/* ===================================
   MOBILE ABOUT CARDS - ONLY MOBILE
   =================================== */

/* Alineación de la columna izquierda "Quiénes somos" */
.about-left-column {
  /* Desktop/tablet: centrado */
  align-items: center;
}

@media (max-width: 767px) {
  /* Mobile: alineado arriba para evitar borrosidad */
  .about-left-column {
    align-items: normal !important;
    padding-top: 60px !important;
  }
  
  .about-mobile-slider {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
  }
  
  .about-mobile-nav-prev,
  .about-mobile-nav-next {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 30 !important;
  }

  .about-mobile-nav-prev {
    left: 15px !important;
  }

  .about-mobile-nav-next {
    right: 15px !important;
  }

  .about-mobile-nav-prev:hover,
  .about-mobile-nav-next:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  }

  .about-mobile-nav-prev svg,
  .about-mobile-nav-next svg {
    width: 20px !important;
    height: 20px !important;
    color: #3C70C4 !important;
  }
  
  .about-mobile-cards-swiper {
    width: 100% !important;
    /* max-width: 320px; */
    /* overflow: hidden; */
    padding: 0 10px;
  }
  
  .mobile-about-card {
    /* width: 300px; */
    height: 230px;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
  }
  
  .mobile-card-blue {
    background-color: #3C70C4;
    color: white;
  }
  
  .mobile-card-green {
    background-color: #9AE481;
    color: black;
  }
  
  .mobile-card-icon {
    margin-bottom: 16px;
  }
  
  .mobile-card-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
  }
  
  .mobile-about-card h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: inherit;
  }
  
  .mobile-about-card p {
    font-size: 14px;
    color: inherit;
    line-height: 1.4;
  }
  
  /* Gallery slider - mobile specific */
  .gallery-slider {
    width: 100% !important;
    overflow: hidden;
  }
  
  .gallery-slider .swiper-slide {
    width: 33% !important;
    max-width: none !important;
  }
  
  /* Testimonials section - center titles on mobile */
  .mb-16 {
    text-align: center;
  }
}


@media (min-width: 1024px) {
    .landlords-testimonials-slider .swiper-slide {
        width: calc(25% - 25px) !important;
        max-width: 300px !important;  /* Limitar ancho en desktop */
    }
    
    .about-mobile-cards-swiper .swiper-slide,
    .gallery-slider .swiper-slide {
        /* max-width: 300px !important;   */
    }
}

/* Desktop - reset text alignment for testimonials */
@media (min-width: 768px) {
  .mb-16 {
    text-align: left;
  }
  
  /* About cards desktop slider - ensure proper spacing and alignment */
  .about-cards-slider-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
  }
  
  .about-section-right-column .container {
    padding-left: 0 !important;
  }
  
  .about-cards-swiper {
    overflow: hidden !important;
    width: 100% !important;
    margin-left: 0 !important;
  }
  
  .about-cards-slider-container {
    overflow: visible !important;
  }
  
  .about-cards-swiper .swiper-wrapper {
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  @media (min-width: 1024px) {
    .about-cards-swiper {
      padding-left: 0 !important;
      margin-left: 0 !important;
    }
  }
  
  /* Gradient overlay on the left to hide partial slide */
  .about-cards-slider-container::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, white 0%, white 20%, transparent 100%);
    z-index: 10;
    pointer-events: none;
  }
  
  .about-cards-swiper .swiper-slide {
    flex-shrink: 0;
    width: auto !important;
    margin-right: 32px !important;
  }
  
  .about-cards-swiper .swiper-slide:last-child {
    margin-right: 0 !important;
  }
}