﻿/* ==========================================================================
   1. ESTRUCTURA GLOBAL Y CONTENEDORES
   ========================================================================== */
.services-area {
    padding: 60px 0;
    overflow: visible; /* 🔥 FIX GSAP */
    background-color: #fcfcfc;
}

.adt-container-fluid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
}

.adt-row {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    width: 100%;
}

/* ==========================================================================
   2. COLUMNA IZQUIERDA
   ========================================================================== */
.col-lg-5.mb-3 {
    flex: 1.1;
    max-width: 600px !important;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.img-promo, .single-features-area {
    width: 100%;
    margin: 0 auto;
}

    .img-promo img, .single-features-area img {
        width: 100%;
        height: auto;
        border-radius: 25px;
        object-fit: cover;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

.img-promo {
    margin-top: -80px;
    margin-bottom: 20px
}

@media (min-width: 1200px) {
    .img-promo, .single-features-area {
        max-height: 380px;
        overflow: hidden;
    }
}

/* ==========================================================================
   3. FORMULARIO
   ========================================================================== */
.adt-form-col {
    flex: 0.9;
    max-width: 600px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0 !important;
}

.div-text {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.text-h3 {
    font-weight: 800;
    font-size: clamp(24px, 3vw, 36px);
    color: #007bff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 5px;
}

.text-subtitle {
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 400;
    color: #333;
}

.adt-form-container {
    background: #ffffff;
    padding: 45px 40px;
    border-radius: 35px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 550px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
}

.adt-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
}

.adt-form-control {
    height: 55px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 10px 20px;
    width: 100%;
}

.adt-form-btn {
    width: 100%;
    height: 60px;
    background-color: #ffb71b;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s;
}

    .adt-form-btn:hover {
        transform: translateY(-2px);
        background-color: #ffa500;
    }

.benefit-form {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    color: #555;
}

/* ==========================================================================
   4. CARDS (ARREGLADO PRO)
   ========================================================================== */
.benefits-cards {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 80px auto 0 auto;
    height: 520px;
}

/* BASE */
.custom-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(-40deg, #2061ab 0%, #3b82d6 67%, #65a9d9 100%);
    color: #fff;
    padding: 18px 20px;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(0,123,255,0.3);
    min-height: 90px;
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.3;
}

/* ESCALONADO */
.card1 {
    width: 55%;
    top: 0;
    z-index: 2;
}

.card2 {
    width: 65%;
    top: 90px;
    z-index: 3;
}

.card3 {
    width: 75%;
    top: 180px;
    z-index: 4;
}

.card4 {
    width: 85%;
    top: 270px;
    z-index: 5;
}

/* FIX Bootstrap */
.custom-card .row {
    margin: 0 !important;
}

.custom-card .col-6 {
    padding: 0 8px;
}

/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    .adt-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .col-lg-5.mb-3, .adt-form-col {
        width: 100% !important;
        max-width: 600px !important;
    }
}

/* 📱 MOBILE PRO (Galaxy + iPhone FIX REAL) */
@media (max-width: 768px) {

    .adt-form-container {
        padding: 25px 15px;
    }

    .benefits-cards {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .custom-card {
        position: relative;
        top: 0 !important;
        left: 0;
        transform: none;
        width: 88%;
        max-width: 420px;
        padding: 12px 14px;
        border-radius: 16px;
        font-size: 13px;
    }

        .custom-card span {
            font-size: 12.5px;
        }

        .custom-card .col-6 {
            width: 100%;
            padding: 0;
            margin-bottom: 6px;
        }
}

/* EXTRA SMALL */
@media (max-width: 480px) {
    .custom-card {
        width: 85%;
        max-width: 380px;
        font-size: 12px;
    }
}

/* ==========================================================================
   TESTIMONIOS (NO TOCADO)
   ========================================================================== */
:root {
    --adt-blue: #0054a6;
    --adt-gold: #ffca08;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.testimonial-card {
    background: #fff;
    flex: 0 1 calc(33.333% - 20px);
    min-width: 300px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}

    .testimonial-card:nth-child(even) {
        animation-delay: 0.5s;
    }

    .testimonial-card:hover {
        transform: translateY(-10px);
        animation-play-state: paused;
    }

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    font-size: 24px;
    margin-bottom: 15px;
}

    .stars::before {
        content: '★★★★★';
        background: linear-gradient(90deg, var(--adt-gold) var(--percent), #e0e0e0 var(--percent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: block;
        clip-path: inset(0 100% 0 0);
        animation: fillStars 1.5s ease-out forwards;
    }

@keyframes fillStars {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}
