/* General Styles */
.services-section {
    background: radial-gradient(circle, rgba(245, 181, 68, 0.1) 0%, rgba(0, 0, 0, 0) 60%), linear-gradient(to bottom, #000, #111);
    color: #fff;
    padding: 0rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* Header Section */
.services-header {
    text-align: center;
    margin-bottom: 2rem;
}

.services-header h2 {
    font-size: 5rem;
    font-weight: bold;
    background: linear-gradient(to bottom, #f5b544, #000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.services-header p {
    font-size: 2.2rem;
    color: #aaa;
    background: linear-gradient(to bottom, #aaa, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Content Section */
.services-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Left Section (Image) */
.services-left {
    position: relative;
    display: inline-block;
    opacity: 70%;
}

.services-left::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 80%);
    border-radius: 50%;
    z-index: 0;
}

/* Right Section (Accordion) */
.services-right {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
}

/* Accordion Styles */
.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s, background 0.3s;
    position: relative;
}

.accordion-title i {
    font-size: 1.2rem;
    color: #aaa;
    transition: color 0.3s;
}

.accordion-title:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.accordion-title:hover i {
    color: #f5b544;
}

summary::-webkit-details-marker {
    display: none;
}

.accordion-title::after {
    content: "▼";
    font-size: 1rem;
    color: #aaa;
    position: absolute;
    right: 1rem;
    transition: color 0.3s, transform 0.3s;
}

details[open] .accordion-title::after {
    transform: rotate(180deg);
    color: #f5b544;
}

details[open] .accordion-title {
    border-left: 4px solid #f5b544;
}

/* .accordion-content {
    padding: 1rem;
    font-size: 0.95rem;
    color: #ccc;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
} */

/* Transición suave para el contenido del accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0;
    font-family: 'Raleway';
}

details[open] .accordion-content {
    max-height: 200px;
    padding: 1rem;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    color: var(--gold);
}

.icon-wrapper svg,
.icon-wrapper i {
    width: 1.2rem;
    height: 1.2rem;
}

/* Responsive Design */

/* Pantallas pequeñas (teléfonos, menos de 768px) */
@media (max-width: 768px) {
    .services-content {
        flex-direction: column;
        gap: 1rem;
        align-items: normal;
    }

    .services-left img {
        display: none;
    }

    .services-header h2 {
        font-size: 4rem;
    }

    .services-header p {
        font-size: 1.5rem;
    }

    .accordion-title {
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .accordion-content {
        font-size: 0.9rem;
    }
}

/* Pantallas medianas (tabletas, entre 768px y 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .services-content {
        flex-direction: row;
        gap: 1.5rem;
    }

    .services-left img {
        max-width: 80%;
    }

    .services-header h2 {
        font-size: 4rem;
    }

    .services-header p {
        font-size: 2rem;
    }
}

/* Pantallas grandes (escritorios, más de 1024px) */
@media (min-width: 1024px) {
    .services-content {
        gap: 2rem;
    }

    .services-header h2 {
        font-size: 5rem;
    }

    .services-header p {
        font-size: 2.2rem;
    }
}