/* =========================================
   SERVICES PAGE STYLES
   ========================================= */

/* ===== 1. SERVICES HERO ===== */

.services-hero {
    position: relative;
    background: linear-gradient(135deg, #5fa8e8 0%, #4a9bcf 50%, #3a8fc7 100%);
    padding: 80px 0 200px;
    overflow: visible;
}

.services-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/home-hero-main.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.deco-circle-services {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: 60px;
    left: 8%;
    z-index: 1;
}

.deco-stars-services {
    position: absolute;
    top: 100px;
    right: 10%;
    color: rgba(255,255,255,0.6);
    font-size: 32px;
    z-index: 1;
}

.services-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-hero__title {
    font-size: clamp(40px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 24px;
}

.services-hero__title span {
    color: #1e3a8a;
    display: block;
}

.services-hero__text {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.92);
    max-width: 480px;
}

.services-hero__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-hero-img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
}

/* Cards flotantes del hero */
.services-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: -130px;
    position: relative;
    z-index: 10;
}

.services-card-mini {
    background: #ffffff;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.services-card-mini:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}

.services-card-mini__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4cc9f0 0%, #3ab5dc 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.services-card-mini__content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.services-card-mini__content p {
    font-size: 13px;
    color: #6e7592;
    line-height: 1.5;
}

/* ===== 2. SERVICES PREMIUM SECTION ===== */

.services-premium {
    padding: 80px 0 60px;
    background-color: #f8f9fc;
    position: relative;
}

.deco-stars-premium {
    position: absolute;
    top: 40px;
    left: 10%;
    color: rgba(76, 201, 240, 0.3);
    font-size: 28px;
    letter-spacing: 8px;
}

.services-premium__header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.services-premium__header h2 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.services-premium__header h2 span {
    color: #4cc9f0;
}

.services-premium__header p {
    font-size: 15px;
    line-height: 1.75;
    color: #5a607c;
}

/* ===== 3. SERVICE DETAIL SECTIONS ===== */

.service-detail {
    padding: 80px 0;
    background-color: #f8f9fc;
}

.service-detail--blue {
    background-color: #1e3a8a;
    color: #ffffff;
}

.service-detail__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

/* Invertir orden en sections con clase --right */
.service-detail--right .service-detail__inner {
    direction: rtl;
}

.service-detail--right .service-detail__content,
.service-detail--right .service-detail__visuals {
    direction: ltr;
}

/* Contenido */
.service-detail__content h2 {
    font-size: clamp(32px, 3.8vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #1e3a8a;
}

.service-detail--blue .service-detail__content h2 {
    color: #ffffff;
}

.service-detail__content h2 span {
    color: #4cc9f0;
}

.service-detail__intro {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-detail__list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.service-detail__list li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #5a607c;
}

.service-detail--blue .service-detail__list li {
    color: rgba(255,255,255,0.9);
}

.service-detail__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4cc9f0;
    font-size: 20px;
    line-height: 1;
}

.btn-service-detail {
    display: inline-flex;
    padding: 13px 32px;
    background: linear-gradient(135deg, #4cc9f0 0%, #3ab5dc 100%);
    color: #ffffff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-service-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(76, 201, 240, 0.4);
}

/* Visuals - Grid de imágenes y cards */
.service-detail__visuals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.visual-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visual-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.visual-card__icon {
    font-size: 48px;
}

/* Highlight card especial */
.highlight-card {
    background: linear-gradient(135deg, #4cc9f0 0%, #3ab5dc 100%);
    color: #ffffff;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.highlight-card--white {
    background: #ffffff;
    color: #1e3a8a;
}

.highlight-card__icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.highlight-card h4 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.highlight-card h4 span {
    font-weight: 400;
}

/* ===== 4. ADDITIONAL SERVICES SECTION ===== */

.additional-services {
    padding: 80px 0;
    background-color: #f8f9fc;
    position: relative;
}

.deco-stars-additional {
    position: absolute;
    top: 40px;
    right: 10%;
    color: rgba(76, 201, 240, 0.3);
    font-size: 32px;
}

.additional-services__header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 70px;
}

.additional-services__header h2 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.additional-services__header h2 span {
    color: #4cc9f0;
}

.additional-services__header p {
    font-size: 15px;
    line-height: 1.75;
    color: #5a607c;
}

/* Layout con imagen central */
.additional-services__layout {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.additional-services__center {
    position: relative;
    z-index: 2;
}

.additional-services__center img {
    width: 350px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* Items de servicio posicionados alrededor */
.additional-service-item {
    position: absolute;
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.additional-service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
    border-color: #4cc9f0;
}

.additional-service-item__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4cc9f0 0%, #3ab5dc 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px;
}

.additional-service-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

/* Posicionamiento de los items */
.additional-service-item[data-position="top-left"] {
    top: 50px;
    left: 80px;
}

.additional-service-item[data-position="top-right"] {
    top: 50px;
    right: 80px;
}

.additional-service-item[data-position="middle-left"] {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.additional-service-item[data-position="middle-right"] {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.additional-service-item[data-position="bottom-left"] {
    bottom: 50px;
    left: 80px;
}

.additional-service-item[data-position="bottom-right"] {
    bottom: 50px;
    right: 80px;
}

/* Hover mantiene translate-y */
.additional-service-item[data-position="middle-left"]:hover,
.additional-service-item[data-position="middle-right"]:hover {
    transform: translateY(calc(-50% - 6px));
}

/* ===== 5. RESPONSIVE ===== */

@media (max-width: 1024px) {
    .services-hero__inner,
    .service-detail__inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-hero-cards {
        grid-template-columns: 1fr;
        margin-top: -100px;
    }

    .service-detail__visuals {
        order: -1;
    }

    .service-detail--right .service-detail__inner {
        direction: ltr;
    }

    .additional-services__layout {
        flex-direction: column;
        min-height: auto;
    }

    .additional-service-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin-bottom: 20px;
    }

    .additional-service-item:hover {
        transform: translateY(-6px) !important;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 60px 0 140px;
    }

    .service-detail {
        padding: 60px 0;
    }

    .service-detail__visuals {
        grid-template-columns: 1fr;
    }

    .visual-col {
        grid-column: span 1;
    }

    .additional-services__center img {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .services-hero__title {
        font-size: 34px;
    }

    .service-detail__content h2 {
        font-size: 28px;
    }

    .services-card-mini {
        flex-direction: column;
        text-align: center;
    }
}