/* ============================================
   ACCREDIAN HOME — UX Enhancements
   ============================================ */

/* ---------- Section Spacing Standard ----------
   80px desktop / 60px tablet / 48px mobile
   Applied to all home sections for consistent rhythm
   ------------------------------------------------ */
.about-creative-section.large-section,
.team-section.large-section,
.testimonials.large-section {
    padding: 80px 0;
}

/* ---------- Promotional Carousel ---------- */
.promo-carousel-section {
    margin-top: 132px; /* clear fixed navbar */
}

.promo-carousel-section .meet-team.cards-section {
    padding: 0;
    margin-bottom: 0;
}

.promo-carousel-section .carousel.large-section {
    padding: 0;
}

/* ---------- Sub-Hero Callout + Stats ---------- */
.sub-hero-callout {
    background-color: #0a1f3f;
    border-top: 3px solid #d4a843;
    padding: 60px 0;
}

.sub-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.sub-hero-text {
    flex: 1;
}

.sub-hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4a843;
    margin-bottom: 12px;
}

.sub-hero-title {
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sub-hero-desc {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

.sub-hero-cta {
    flex-shrink: 0;
}

.sub-hero-btn {
    display: inline-block;
    background: #d4a843;
    color: #fff;
    padding: 16px 40px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #d4a843;
    border-radius: 30px;
    white-space: nowrap;
}

.sub-hero-btn:hover {
    background: transparent;
    color: #d4a843;
    text-decoration: none;
}

/* Stats row inside sub-hero */
.sub-hero-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
}

.sub-hero-stat {
    text-align: center;
    flex: 1;
}

.sub-hero-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #d4a843;
    line-height: 1.2;
    margin-bottom: 6px;
}

.sub-hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

/* ---------- Digital Services (¿Por qué / Servicio Integral) ---------- */
.digital-services .content .content-wrapper,
.digital-services .content-about .content-wrapper {
    padding: 80px 0 60px;
}

.digital-services .content .content-wrapper .subtitle,
.digital-services .content-about .content-wrapper .subtitle {
    font-size: 16px;
    color: #888;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.4;
}

.digital-services .service-item-type-2 {
    margin-bottom: 30px;
}

.digital-services .service-item-type-2 .title-service {
    font-size: 16px;
    font-weight: 700;
    color: #0a1f3f;
    margin-bottom: 6px;
    line-height: 1.3;
}

.digital-services .service-item-type-2 .service-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* ---------- Magnitude Carousel ---------- */
.magnitudes-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.swiper-magnitudes {
    padding-bottom: 48px;
}

.swiper-magnitudes .swiper-wrapper {
    align-items: stretch;
}

.swiper-magnitudes .swiper-slide {
    height: auto;
}

.mag-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mag-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.mag-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #e9ecef;
}

.mag-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mag-card:hover .mag-card-img img {
    transform: scale(1.05);
}

.mag-card-body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mag-card-body h6 {
    font-size: 15px;
    font-weight: 700;
    color: #0a1f3f;
    margin: 0 0 4px;
}

.mag-card-body p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.mag-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #d4a843;
    margin-top: auto;
    padding-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.swiper-mag-pagination {
    bottom: 0 !important;
    text-align: center;
}

.swiper-mag-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.swiper-mag-pagination .swiper-pagination-bullet-active {
    background: #d4a843;
    width: 24px;
    border-radius: 4px;
}

/* ---------- CTA Form Section ---------- */
#cotiza-home {
    padding: 80px 0 !important;
}

#cotiza-home > .container {
    position: relative;
    z-index: 100;
}

#cotiza-home .heading {
    position: relative;
    z-index: 100;
}

.form-card {
    background: #fff;
    border-radius: 10px;
    padding: 44px 40px 36px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.form-card .primary-contact-form {
    gap: 0;
}

.form-row-2col {
    display: flex;
    gap: 16px;
}

.form-field {
    flex: 1;
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0a1f3f;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-field label .req {
    color: #d4a843;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    color: #333 !important;
    background: #f5f6f8 !important;
    border: 1px solid #dfe2e6 !important;
    border-radius: 6px !important;
    transition: border-color 0.25s, box-shadow 0.25s;
    margin-bottom: 0 !important;
    -webkit-appearance: none;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: #d4a843 !important;
    box-shadow: 0 0 0 3px rgba(212,168,67,0.12);
    outline: none;
    background: #fff !important;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
    color: #999 !important;
    font-weight: 400;
}

.form-card select {
    cursor: pointer;
    color: #999 !important;
}

.form-card select:valid:not([value=""]) {
    color: #333 !important;
}

.form-card textarea {
    resize: vertical;
    min-height: 100px;
    margin-bottom: 0 !important;
}

.form-submit-btn {
    display: block;
    width: 100%;
    background: #d4a843;
    color: #fff;
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #d4a843;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.form-submit-btn:hover {
    background: #0a1f3f;
    border-color: #0a1f3f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10,31,63,0.3);
}

/* Trust badges below form */
.form-trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.trust-badge i {
    color: #d4a843;
    font-size: 14px;
}

/* ---------- Hide HubSpot chat on mobile ---------- */
@media (max-width: 768px) {
    #hubspot-messages-iframe-container {
        display: none !important;
    }
}

/* ==============================================
   Responsive
   ============================================== */

/* Tablet (991px) — section spacing */
@media (max-width: 991px) {
    .about-creative-section.large-section,
    .team-section.large-section,
    .testimonials.large-section,
    .magnitudes-section {
        padding: 60px 0;
    }

    .digital-services .content .content-wrapper,
    .digital-services .content-about .content-wrapper {
        padding: 50px 15px 30px;
    }

    .digital-services .service-item-type-2 {
        margin-bottom: 24px;
    }
}

/* Tablet portrait (768px) — sub-hero stacks */
@media (max-width: 768px) {
    .sub-hero-callout {
        padding: 48px 0;
    }

    .sub-hero-row {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 32px;
    }

    .sub-hero-title {
        font-size: 26px;
    }

    .sub-hero-desc {
        font-size: 14px !important;
    }

    .sub-hero-btn {
        padding: 12px 32px;
    }

    .sub-hero-stats {
        flex-wrap: wrap;
    }

    .sub-hero-stat {
        flex: 0 0 50%;
        padding: 12px 0;
    }

    .sub-hero-stat-num {
        font-size: 1.6rem;
    }

    .mag-card-img {
        height: 150px;
    }

    .digital-services .content .content-wrapper .subtitle,
    .digital-services .content-about .content-wrapper .subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .digital-services .service-item-type-2 {
        margin-bottom: 20px;
    }

    .digital-services .service-item-type-2 .title-service {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .digital-services .service-item-type-2 .service-text {
        font-size: 13px;
    }
}

/* Small phones (767px) — section spacing */
@media (max-width: 767px) {
    .about-creative-section.large-section,
    .team-section.large-section,
    .testimonials.large-section,
    .magnitudes-section {
        padding: 48px 0;
    }
}

/* Phones (575px) — full-width cards, stacked badges */
@media (max-width: 575px) {
    .form-card {
        padding: 28px 20px 24px;
    }

    .form-row-2col {
        flex-direction: column;
        gap: 0;
    }

    .form-submit-btn {
        padding: 14px;
    }

    .form-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .mag-card-img {
        height: 140px;
    }

    .mag-card-body {
        padding: 12px 14px 16px;
    }

    .mag-card-body h6 {
        font-size: 14px;
    }
}

/* Extra small phones (480px) — compact everything */
@media (max-width: 480px) {
    .sub-hero-callout {
        padding: 40px 0;
    }

    .sub-hero-row {
        margin-bottom: 24px;
    }

    .sub-hero-badge {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .sub-hero-title {
        font-size: 24px;
    }

    .sub-hero-desc {
        font-size: 14px !important;
    }

    .digital-services .content .content-wrapper .subtitle,
    .digital-services .content-about .content-wrapper .subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .digital-services .service-item-type-2 .title-service {
        font-size: 14px;
    }

    .digital-services .service-item-type-2 .service-text {
        font-size: 12px;
    }

    .sub-hero-btn {
        display: block;
        text-align: center;
        padding: 14px 20px;
        font-size: 14px;
    }

    .sub-hero-stats {
        padding: 24px 0;
    }

    .sub-hero-stat {
        padding: 8px 0;
    }

    .sub-hero-stat-num {
        font-size: 1.4rem;
    }

    .sub-hero-stat-label {
        font-size: 11px;
        letter-spacing: 0.8px;
    }

    .magnitudes-section {
        padding: 48px 0;
    }

    .mag-card-img {
        height: 130px;
    }

    .mag-card-body h6 {
        font-size: 13px;
    }

    .mag-card-body p {
        font-size: 12px;
    }
}