/* === Custom CSS for GuateSeguro Website === */

/* General modernizing styles - Apple inspired */
:root {
  --primary-color: #0066cc;
  --secondary-color: #00417f;
  --tertiary-color: #003366;
  --dark-color: #1a1a1a;
  --text-color: #2e2e2e;
  --light-color: #f8f9fa;
  --border-color: #e4e4e4;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --base-z-index: 1;
  --content-z-index: 5;
  --header-z-index: 1000;
  --modal-z-index: 2000;
}

body {
  font-family: 'Epilogue', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern 3D icons for product features */
.feature-icon.modern-3d {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), #1a90ff);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    0 10px 30px rgba(0, 102, 204, 0.3),
    0 6px 15px rgba(0, 102, 204, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.feature-icon.modern-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
  border-radius: inherit;
  z-index: 1;
}

.feature-icon.modern-3d::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(0, 0, 0, 0.05) 100%);
  border-radius: 15px;
  z-index: 0;
}

.feature-icon.modern-3d i {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.feature-icon.modern-3d:hover {
  transform: translateY(-8px) rotateX(10deg) rotateY(-5deg);
  box-shadow: 
    0 20px 40px rgba(0, 102, 204, 0.4),
    0 15px 25px rgba(0, 102, 204, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feature-icon.modern-3d:hover i {
  transform: scale(1.1) rotateZ(5deg);
}

.feature-item:hover .feature-icon.modern-3d {
  animation: modernPulse 2s infinite;
}

@keyframes modernPulse {
  0%, 100% { 
    box-shadow: 
      0 10px 30px rgba(0, 102, 204, 0.3),
      0 6px 15px rgba(0, 102, 204, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% { 
    box-shadow: 
      0 15px 40px rgba(0, 102, 204, 0.5),
      0 10px 20px rgba(0, 102, 204, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

/* Responsive adjustments for 3D icons */
@media (max-width: 768px) {
  .feature-icon.modern-3d {
    padding: 15px;
    border-radius: 15px;
  }
  
  .feature-icon.modern-3d i {
    font-size: 24px;
  }
  
  .feature-icon.modern-3d:hover {
    transform: translateY(-4px) rotateX(5deg) rotateY(-2deg);
  }
}

/* Modern header styles */
.rs-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rs-header__main {
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Search Box Styles */
.rs-search-box {
  position: relative;
  margin-right: 20px;
  transition: var(--transition);
}

.search-form {
  display: flex;
  align-items: center;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.search-input-group:focus-within {
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-sm);
}

#search-input {
  border: none;
  background: transparent;
  padding: 8px 15px;
  width: 250px;
  outline: none;
  font-size: 14px;
  color: var(--dark-color);
}

.search-btn {
  background: transparent;
  color: #888;
  border: none;
  cursor: pointer;
  padding: 8px 15px;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--primary-color);
}

/* Search Results Overlay */
.search-results-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  overflow-y: auto;
  transition: var(--transition);
}

.search-results-content {
  position: relative;
  background-color: white;
  border-radius: var(--card-radius);
  margin: 80px auto;
  padding: 30px;
  max-width: 800px;
  box-shadow: var(--shadow-lg);
}

.search-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: #888;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.search-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--danger-color);
}

/* Search result items */
.search-result-item {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: var(--border-radius);
  background-color: var(--secondary-color);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.search-result-item h4 {
  color: var(--dark-color);
  margin-bottom: 8px;
  font-weight: 500;
}

.search-result-item p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.search-result-link {
  display: inline-block;
  padding: 8px 18px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.search-result-link:hover {
  background-color: #0055b3;
  transform: scale(1.02);
}

/* Category Filter Styles */
.rs-category-filter {
  padding: 40px 0 20px;
}

.category-filter-container {
  background-color: transparent;
  padding: 25px;
  text-align: center;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1rem;
}

.filter-btn {
  padding: 10px 24px;
  border: none;
  background-color: rgba(0, 0, 0, 0.03);
  color: #666;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.filter-btn:hover {
  background-color: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

/* Hide filtered items */
.filtered-item {
  animation: fadeIn 0.5s ease;
}

.hidden-category {
  display: none !important;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern card styles - Apple inspired */
.rs-service__item {
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: white;
}

.rs-service__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.rs-service__item .rs-content {
  padding: 25px;
}

.rs-service__item .title {
  font-weight: 500;
  margin-bottom: 15px;
}

.rs-service__item p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.rs-service__item .list-group-item {
  background: transparent;
  border: none;
  padding: 8px 0;
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: #555;
}

.rs-service__item .list-group-item:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Modern button styles - Apple inspired */
.main-btn {
  border-radius: var(--button-radius);
  padding: 10px 20px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: white;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
}

.main-btn:hover {
  background-color: #0055b3;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.main-btn i {
  margin-left: 5px;
  transition: transform 0.3s ease;
  font-size: 16px;
}

.main-btn:hover i {
  transform: translateX(3px);
}

/* Section styling */
.section-title {
  margin-bottom: 40px;
}

.section-title span {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

.section-title .title {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.rs-about__content {
  padding: 20px 0 20px 30px;
}

.rs-about__content .title {
  margin-bottom: 20px;
  font-weight: 600;
}

.rs-about__content p {
  margin-bottom: 25px;
  color: #555;
}

.rs-work-progress__item {
  background-color: white;
  border-radius: var(--card-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.rs-work-progress__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.rs-work-progress__item .rs-title .title {
  font-weight: 500;
  margin: 15px 0;
}

.rs-work-progress__item .rs-number {
  color: #ddd;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.rs-why-choose {
  background-color: var(--dark-color);
  position: relative;
  overflow: hidden;
}

.rs-why-choose__list ul {
  list-style: none;
  padding: 0;
}

.rs-why-choose__list ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.rs-why-choose__list ul li i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 18px;
}

/* Footer styling */
.rs-footer {
  background-color: var(--secondary-color);
}

.rs-footer__about .desc {
  color: #555;
  margin: 20px 0;
}

.rs-footer__about ul {
  display: flex;
  gap: 15px;
  padding: 0;
  list-style: none;
}

.rs-footer__about ul li a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  transition: var(--transition);
  color: #555;
}

.rs-footer__about ul li a:hover {
  background-color: var(--primary-color);
  color: white;
}

.rs-footer__navigation .title,
.rs-footer__contact .title {
  font-weight: 500;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.rs-footer__navigation ul,
.rs-footer__contact ul {
  list-style: none;
  padding: 0;
}

.rs-footer__navigation ul li,
.rs-footer__contact ul li {
  margin-bottom: 15px;
}

.rs-footer__navigation ul li a,
.rs-footer__contact ul li a {
  color: #555;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.rs-footer__navigation ul li a:hover,
.rs-footer__contact ul li a:hover {
  color: var(--primary-color);
}

.rs-footer__navigation ul li a i,
.rs-footer__contact ul li .rs-icon i {
  margin-right: 10px;
  color: var(--primary-color);
}

.rs-footer__bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.rs-footer__copyright-text p {
  color: #777;
  font-size: 14px;
}

.rs-footer__bottom-link ul {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.rs-footer__bottom-link ul li a {
  color: #777;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.rs-footer__bottom-link ul li a:hover {
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .rs-about__content {
    padding: 20px 0;
  }
  
  .rs-work-progress__item {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .rs-search-box {
    margin-right: 10px;
  }
  
  #search-input {
    width: 150px;
  }
  
  .search-results-content {
    margin: 60px 20px;
    padding: 20px;
  }
  
  .search-result-item {
    padding: 15px;
  }
  
  .filter-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .section-title .title {
    font-size: 24px;
  }
  
  .rs-about__thumb {
    margin-bottom: 30px;
  }
  
  .rs-footer__bottom-link ul {
    justify-content: flex-start;
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  .rs-search-box {
    margin-right: 5px;
  }
  
  #search-input {
    width: 120px;
    padding: 8px 10px;
  }
  
  .search-btn {
    padding: 8px 10px;
  }
  
  .category-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 200px;
  }
  
  .section-title .title {
    font-size: 22px;
  }
}

/* Apple-style Personal Assistance Section */
.apple-assistance-section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.apple-assistance-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apple-assistance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.apple-assistance-content {
    padding: 60px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0066cc, #014f99);
    color: #fff;
}

.apple-assistance-inner {
    position: relative;
    z-index: 2;
}

.apple-assistance-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.5px;
}

.apple-assistance-text {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.apple-assistance-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #0066cc;
    font-size: 17px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.apple-assistance-btn svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.apple-assistance-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0066cc;
    transform: scale(1.02);
}

.apple-assistance-btn:hover svg {
    transform: translate(3px, -3px);
}

.apple-assistance-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.apple-assistance-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Add responsive styles */
@media (max-width: 992px) {
    .apple-assistance-content {
        padding: 40px;
    }
    
    .apple-assistance-title {
        font-size: 28px;
    }
    
    .apple-assistance-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .apple-assistance-image {
        height: 250px;
    }
}

/* Add parallax effect for modern feel */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position 0.5s ease;
}

/* Smooth animations for elements */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Category buttons styling for index page */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
}

.category-btn {
    transition: all 0.3s ease;
    border: none;
    background-color: rgba(0, 102, 204, 0.08);
    color: var(--primary-color);
    padding: 8px 16px;
    margin: 0 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.category-btn:hover {
    background-color: rgba(0, 102, 204, 0.15);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.category-btn i {
    margin-right: 5px;
}

.apple-card {
    transition: all 0.4s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.apple-card.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix for index4.webp image positioning */
.rs-why-choose__thumb .rs-thumb-2 {
    position: absolute;
    left: 150px;
    bottom: -300px !important; /* Increased to better overlap section border */
    z-index: 10; /* Ensure it appears above other elements */
}

@media only screen and (max-width: 991px) {
    .rs-why-choose__thumb .rs-thumb-2 {
        bottom: -250px !important;
    }
}

@media only screen and (max-width: 767px) {
    .rs-why-choose__thumb .rs-thumb-2 {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        margin-top: 20px;
        z-index: 1;
    }
    
    /* Asegurar que ambas imágenes se muestren */
    .rs-about__thumb .rs-thumb-1,
    .rs-why-choose__thumb .rs-thumb-2 {
        position: relative !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 20px;
    }
}

@media only screen and (max-width: 575px) {
    .rs-why-choose__thumb .rs-thumb-2 {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
    }
}

/* Title fixes to ensure consistent spacing and prevent overlap */
.hero-title,
.section-title .title,
.rs-service-details__content .title,
.rs-why-choose__content .title,
.rs-about__content .title,
.rs-about-2__content .title,
.rs-counter-2__item .title,
.rs-counter-3__item .title,
.rs-featured-3__item .title,
.rs-featured-4__item .title,
.rs-service-2__item .title,
.rs-service-3__item .title,
.rs-service-4__item .title,
.rs-team-3__item .title,
.rs-project-4__item-content .title,
.rs-blog__single .title,
.rs-blog-standard__item .title {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Special handling for hero section titles */
.apple-hero-section .hero-title {
    padding-top: 40px !important;
    margin-top: 0 !important;
    font-size: 42px !important;
}

/* Fix section titles in feature sections */
.rs-service-details__content .title {
    font-size: 28px !important;
    margin-top: 30px !important;
}

/* Fix for smaller screens */
@media only screen and (max-width: 767px) {
    .hero-title,
    .section-title .title,
    .rs-service-details__content .title {
        font-size: 32px !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .apple-hero-section .hero-title {
        padding-top: 20px !important;
        font-size: 36px !important;
    }
    
    .rs-service-details__content .title {
        font-size: 24px !important;
    }
}

/* Fix for extra small screens */
@media only screen and (max-width: 575px) {
    .hero-title,
    .section-title .title {
        font-size: 28px !important;
    }
    
    .rs-service-details__content .title {
        font-size: 22px !important;
    }
}

/* Apple-style hero section title fixes */
/* ... existing code ... */

/* Apple-style hero sections - more specific fixes */
.apple-hero-section {
    padding-top: 160px !important;
    padding-bottom: 80px !important;
    overflow: visible !important;
}

.apple-hero-section .hero-content {
    position: relative;
    z-index: 5;
}

.apple-hero-section .hero-title {
    clear: both;
    display: block;
    width: 100%;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 25px !important;
    letter-spacing: -0.5px;
}

/* Product carousel title fixes */
.swiper-slide .product-card .product-title {
    font-size: 22px !important;
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}

/* "También te pueden interesar" section title fix */
.section-title.text-center {
    margin-bottom: 40px !important;
    margin-top: 20px !important;
}

/* Fix for hero section when scrolling */
@media only screen and (min-width: 992px) {
    .apple-hero-section {
        min-height: 500px;
    }
}

/* Ensure hero features have enough space */
.hero-features {
    margin-top: 30px !important;
    margin-bottom: 35px !important;
}

/* Final product carousel and misc title fixes */
/* ... existing code ... */

/* Product Carousel Titles */
.product-swiper .swiper-slide .product-card {
    position: relative;
    overflow: visible;
}

.product-swiper .swiper-slide .product-title,
.modern-product-carousel .product-card .product-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
    color: var(--dark-color);
    display: block !important;
    visibility: visible !important;
}

/* Fix for the 'También te pueden interesar' title */
.product-carousel-heading {
    font-size: 32px !important;
    margin-bottom: 30px !important;
    text-align: center;
    clear: both;
    display: block;
    width: 100%;
}

/* Fix any CTA section titles */
.cta-container .title,
.rs-cta__title .title,
.apple-assistance-title {
    font-size: 30px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    clear: both;
}

/* Fix title margins for better display in all contexts */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--dark-color);
    visibility: visible !important;
    display: block !important;
}

/* Final z-index and positioning fixes for all titles */
/* ... existing code ... */

/* Ensure all content sections have proper z-index */
.apple-hero-section,
.rs-section,
.rs-counter,
.rs-about,
.rs-why-choose,
.rs-service,
.rs-testimonial,
.rs-cta,
.rs-footer {
    position: relative;
    z-index: var(--base-z-index);
}

/* Ensure content within sections has higher z-index */
.hero-content,
.section-title,
.rs-content,
.apple-hero-content {
    position: relative;
    z-index: var(--content-z-index);
}

/* Ensure all titles are fully visible with proper spacing */
.hero-title,
.section-title .title,
h1, h2, h3, h4, h5, h6 {
    position: relative;
    z-index: calc(var(--content-z-index) + 1);
    overflow: visible !important;
    visibility: visible !important;
    display: block !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    height: auto !important;
    min-height: 1em !important;
}

/* Fix spacing between elements for better readability */
p, .paragraph {
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
}

/* Ensure all links and buttons are clickable */
a, button, .btn, .main-btn {
    position: relative;
    z-index: calc(var(--content-z-index) + 2);
}

/* Carrusel de productos - efectos adicionales */
.modern-product-carousel {
    padding: 30px 0;
    position: relative;
}

.swiper-container {
    padding: 20px 10px 50px;
    overflow: visible !important;
}

.swiper-slide {
    height: auto;
    transition: transform 0.3s ease;
    position: relative;
}

/* Efecto de elevación al hacer hover en la tarjeta */
.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.15);
    z-index: 100;
}

/* Efecto zoom en la imagen al hacer hover */
.product-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    aspect-ratio: 3/2;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-in-out;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

/* Mejor visualización de la etiqueta de categoría */
.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), #0055aa);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(0, 102, 204, 0.25);
}

/* Contenido de la tarjeta */
.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.product-title {
    font-size: 18px !important;
    font-weight: 600;
    margin-bottom: 10px !important;
    color: var(--dark-color);
    line-height: 1.4 !important;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-description {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 12px;
    flex: 1;
}

.product-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
}

/* Botón con efecto especial */
.product-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
    overflow: hidden;
}

.product-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.product-btn:hover {
    color: #004c99;
}

.product-btn:hover::after {
    width: 100%;
}

.product-btn i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.product-btn:hover i {
    transform: translateX(5px);
}

/* Controles del carrusel */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Ajustes para móviles */
@media (max-width: 767px) {
    .product-card {
        padding: 12px;
    }
    
    .product-card:hover {
        transform: translateY(-8px);
    }
    
    .product-image {
        aspect-ratio: 4/3;
    }
    
    .product-card:hover .product-image img {
        transform: scale(1.1);
    }
    
    .product-title {
        font-size: 16px !important;
    }
    
    .product-description {
        font-size: 13px;
    }
}

/* Responsive styles for category filters */
@media (max-width: 767px) {
    .category-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin: 0 3px 8px;
    }
    
    .category-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
} 