/* Interactive Services Widget Styles */
.ewg-interactive-services {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.ewg-interactive-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.ewg-services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0px 0 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left Section Styles */
.ewg-services-left {
    padding-right: 40px;
}

/* .ewg-top-label {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 500;
    padding: 10px 19px;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
} */
.ewg-top-label {
  font-size: 18px;
  font-weight: 500;
  color: #e74c3c;
  padding: 10px 19px;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.ewg-top-label::before {
  position: absolute;
  content: "";
  width: 3px;
  height: 10px;
  background-color: rgb(238, 13, 8);
  top: 0;
  inset-inline-start: 0;
}

.ewg-top-label::after {
  position: absolute;
  content: "";
  width: 3px;
  height: 10px;
  background-color: rgb(238, 13, 8);
  bottom: 0;
  inset-inline-end: 0;
}

.ewg-main-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ewg-description {
    font-size: 16px;
    color: #b8c5d6;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Services List Styles */
.ewg-services-list {
    margin-bottom: 40px;
}

.ewg-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.ewg-service-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
    border-radius: 8px;
    transform: translateX(5px);
}

.ewg-service-item .ewg-service-link {
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.ewg-service-item:hover .ewg-service-link {
    opacity: 1;
    transform: translateX(0);
}

.ewg-service-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ewg-service-number {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    min-width: 40px;
    position: relative;
}

.ewg-service-number::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 20px;
    background: #e74c3c;
    opacity: 0.5;
}

.ewg-service-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease;
}

.ewg-service-item:hover .ewg-service-title {
    color: #f39c12;
}

.ewg-service-link {
    color: #ffffff;
    opacity: 0.6;
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.ewg-service-item:hover .ewg-service-link {
    opacity: 1;
    color: #e74c3c;
    transform: rotate(45deg) scale(1.1);
}

/* Button Styles */
.ewg-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e74c3c;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #e74c3c;
}

.ewg-explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ewg-explore-btn:hover::before {
    left: 100%;
}

.ewg-explore-btn:hover {
    background: transparent;
    color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.ewg-explore-btn svg {
    transition: transform 0.3s ease;
}

.ewg-explore-btn:hover svg {
    transform: rotate(45deg);
}

/* Right Section Styles */
.ewg-services-right {
    position: relative;
    height: 100vh;
    width: 100%;
}

.services-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    /* overflow: hidden;     */
}

.services-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;    
    z-index: 1;
    pointer-events: none;
}

.service-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    transform: scale(1.05);
    display: block;
}

.service-main-image.changing {
    opacity: 0;
    transform: scale(1.1);
}

/* Asegurar que la imagen por defecto se muestre correctamente */
.ewg-main-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ewg-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    transform: scale(1.05);
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ewg-services-container {
        gap: 40px;
        padding: 0 15px;
    }

    .ewg-services-left {
        padding-top: 50px;
    }

    .ewg-main-title {
        font-size: 40px;
    }

    .ewg-services-right {
        height: 400px;
    }

    .ewg-services-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .service-main-image{
        height: 100%!important;
    }
}

@media (max-width: 768px) {
    .ewg-interactive-services {
        padding: 60px 0;
    }

    .ewg-services-left {
        padding-right: 0;
        order: 2;
    }

    .ewg-services-right {
        order: 1;
        height: 300px;
    }

    .ewg-main-title {
        font-size: 32px;
    }

    .ewg-service-item {
        /* justify-content: center; */
        text-align: left;
    }

    .ewg-service-item:hover {
        transform: translateY(-5px);
        padding-left: 0;
        padding-right: 0;
    }

}

@media (max-width: 480px) {
    .ewg-interactive-services {
        padding: 40px 0;
    }

    .ewg-services-container {
        padding: 0 10px;
    }

    .ewg-main-title {
        font-size: 28px;
    }

    .ewg-service-title {
        font-size: 18px;
    }

    .ewg-services-right {
        height: 250px;
    }

    .ewg-explore-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ewg-interactive-services.animate-in .ewg-top-label {
    animation: fadeInUp 0.6s ease 0.1s both;
}

.ewg-interactive-services.animate-in .ewg-main-title {
    animation: fadeInUp 0.6s ease 0.2s both;
}

.ewg-interactive-services.animate-in .ewg-description {
    animation: fadeInUp 0.6s ease 0.3s both;
}

.ewg-interactive-services.animate-in .ewg-service-item {
    animation: fadeInUp 0.6s ease both;
}

.ewg-interactive-services.animate-in .ewg-service-item:nth-child(1) {
    animation-delay: 0.4s;
}

.ewg-interactive-services.animate-in .ewg-service-item:nth-child(2) {
    animation-delay: 0.5s;
}

.ewg-interactive-services.animate-in .ewg-service-item:nth-child(3) {
    animation-delay: 0.6s;
}

.ewg-interactive-services.animate-in .ewg-explore-btn {
    animation: fadeInUp 0.6s ease 0.7s both;
}

.ewg-interactive-services.animate-in .ewg-main-image-container {
    animation: slideInRight 0.8s ease 0.3s both;
}

/* Loading State */
.ewg-main-image.loading {
    opacity: 0.7;
    filter: blur(2px);
}

/* Hover Effects Enhancement */
.ewg-service-item {
    background: linear-gradient(90deg, transparent 0%, rgba(231, 76, 60, 0.05) 50%, transparent 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: all 0.4s ease;
}

.ewg-service-item:hover {
    background-position: 0% 0;
}

/* Glow Effect */
.ewg-main-image-container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #e74c3c, #f39c12, #e74c3c);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.ewg-services-right:hover .ewg-main-image-container::after {
    opacity: 0.7;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}