/* =========================================================================
   UTILITY CLASSES (Added)
   ========================================================================= */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: var(--color-white) !important;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-primary {
    background-color: var(--color-primary);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-4 {
    margin-top: 2rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-inline: auto;
}

.rounded-img {
    border-radius: var(--radius-md);
}

.shadow-img {
    box-shadow: var(--shadow-hover);
}

/* =========================================================================
   SERVICES SECTION
   ========================================================================= */

.services {
    position: relative;
}

.container-relative {
    position: relative;
    z-index: 10; /* Ensures content is above the absolute positioned image */
}

/* Comerciante Climbing attached to Card */
.service-wrapper {
    position: relative;
    height: 100%;
}

.service-card.h-100 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comerciante-climb-card {
    position: absolute;
    left: -70px; /* Sale un poco más al ser más grande */
    top: 50%;
    transform: translateY(-50%);
    height: 220px;
    width: auto;
    z-index: 10;
    opacity: 0.95;
    pointer-events: none;
    animation: climbAnimCard 4s infinite alternate ease-in-out;
    filter: drop-shadow(5px 10px 15px rgba(0,0,0,0.15));
}

@keyframes climbAnimCard {
    0% { transform: translateY(-50%) rotate(-2deg); }
    100% { transform: translateY(-55%) rotate(2deg); }
}

@media screen and (max-width: 1200px) {
    .comerciante-climb-card {
        height: 160px;
        left: -50px;
        opacity: 0.8;
    }
}

@media screen and (max-width: 768px) {
    .comerciante-climb-card {
        height: 120px;
        left: -30px;
        top: -40px;
        transform: none;
        animation: climbAnimCardMobile 4s infinite alternate ease-in-out;
        opacity: 0.7;
    }
    
    @keyframes climbAnimCardMobile {
        0% { transform: translateY(0) rotate(-2deg); }
        100% { transform: translateY(-10px) rotate(2deg); }
    }
}

/* Ayudante Estático entre tarjetas */
.ayudante-static {
    position: absolute;
    left: -70px;
    top: 40%;
    transform: translateY(-50%);
    height: 220px;
    width: auto;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(5px 10px 15px rgba(0,0,0,0.15));
}

@media screen and (max-width: 1200px) {
    .ayudante-static {
        height: 160px;
        left: -50px;
    }
}

@media screen and (max-width: 768px) {
    .ayudante-static {
        height: 120px;
        left: 50%;
        top: -60px;
        transform: translateX(-50%);
    }
}

.services-header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.services-header-box .section-title-wrap {
    flex: 1;
    max-width: 600px;
    margin-bottom: 0;
}

.services-header-img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.alacima-img {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(15, 48, 87, 0.15));
    animation: floatAnim 6s infinite ease-in-out;
    opacity: 0.9;
}

@media screen and (max-width: 768px) {
    .services-header-box {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }

    .services-header-box .section-title-wrap {
        max-width: 100%;
    }

    .services-header-box .section-title,
    .services-header-box .section-subtitle {
        text-align: center !important;
        margin-inline: auto;
        margin-bottom: 1rem;
    }

    .services-header-img {
        justify-content: center;
    }

    .alacima-img {
        max-width: 200px;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hover Inteligente: Glow Pulsante */
.service-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(58, 166, 185, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
    z-index: -1;
}

.service-card:hover::before {
    width: 300%;
    height: 300%;
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(58, 166, 185, 0.15);
    border-color: rgba(58, 166, 185, 0.3);
}

.highlight-card {
    border-top: 4px solid var(--color-accent);
}

.service-anim-container {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.base-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .base-icon {
    transform: scale(1.1);
    color: var(--color-primary);
}

/* =========================================================================
   MICRO-ANIMATIONS
   ========================================================================= */

/* 1. WEB & SENIOR: Layout Cargando */
.anim-wireframe {
    position: absolute;
    bottom: 5px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anim-wireframe .line {
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
    width: 0;
}

.service-card[data-anim="web"]:hover .anim-wireframe {
    opacity: 1;
}

.service-card[data-anim="web"]:hover .line-1 {
    animation: loadLine 1.5s infinite ease-out 0.1s;
}

.service-card[data-anim="web"]:hover .line-2 {
    animation: loadLine 1.5s infinite ease-out 0.3s;
}

.service-card[data-anim="web"]:hover .line-3 {
    animation: loadLine 1.5s infinite ease-out 0.5s;
}

@keyframes loadLine {
    0% {
        width: 0;
    }

    50%,
    100% {
        width: 25px;
    }
}

/* 2. LANDING: Botón Clickeándose */
.anim-btn-click {
    position: absolute;
    bottom: -5px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fake-btn {
    width: 30px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 4px;
    transition: transform 0.1s;
}

.anim-cursor {
    position: absolute;
    font-size: 1.2rem;
    color: var(--color-primary);
    bottom: -15px;
    right: 10px;
    opacity: 0;
    z-index: 3;
}

.service-card[data-anim="landing"]:hover .anim-btn-click,
.service-card[data-anim="landing"]:hover .anim-cursor {
    opacity: 1;
}

.service-card[data-anim="landing"]:hover .anim-cursor {
    animation: clickCursor 2s infinite ease-in-out;
}

.service-card[data-anim="landing"]:hover .fake-btn {
    animation: pushBtn 2s infinite ease-in-out;
}

@keyframes clickCursor {

    0%,
    100% {
        transform: translate(15px, 15px);
    }

    30%,
    70% {
        transform: translate(0, 0);
    }

    50% {
        transform: scale(0.85);
    }

    /* Clic */
}

@keyframes pushBtn {

    0%,
    45%,
    55%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9) translateY(2px);
        background: #E0941B;
    }

    /* Presionado */
}

/* 3. TIENDA: Carrito sumando */
.anim-item {
    position: absolute;
    top: -10px;
    right: 35px;
    color: var(--color-accent);
    font-size: 1.2rem;
    opacity: 0;
}

.anim-badge {
    position: absolute;
    top: 5px;
    right: 20px;
    background: #E74C3C;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.5);
}

.service-card[data-anim="shop"]:hover .anim-item {
    animation: dropItem 2s infinite ease-in;
}

.service-card[data-anim="shop"]:hover .anim-badge {
    animation: popBadge 2s infinite ease-out;
}

@keyframes dropItem {
    0% {
        transform: translateY(-20px) scale(0.5);
        opacity: 0;
    }

    20% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    40%,
    100% {
        transform: translateY(20px) scale(0);
        opacity: 0;
    }
}

@keyframes popBadge {

    0%,
    30% {
        transform: scale(0.5);
        opacity: 0;
    }

    45%,
    80% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* 4. APPS: Pantalla Cambiando */
.anim-screen-slider {
    position: absolute;
    width: 20px;
    height: 30px;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
}

.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.screen-a {
    background: var(--color-accent);
}

.screen-b {
    background: var(--color-primary);
    transform: translateX(100%);
}

.service-card[data-anim="app"]:hover .anim-screen-slider {
    opacity: 1;
}

.service-card[data-anim="app"]:hover .screen-a {
    animation: slideLeft 3s infinite ease-in-out;
}

.service-card[data-anim="app"]:hover .screen-b {
    animation: slideInRight 3s infinite ease-in-out;
}

@keyframes slideLeft {

    0%,
    30% {
        transform: translateX(0);
    }

    40%,
    80% {
        transform: translateX(-100%);
    }

    90%,
    100% {
        transform: translateX(0);
    }
}

@keyframes slideInRight {

    0%,
    30% {
        transform: translateX(100%);
    }

    40%,
    80% {
        transform: translateX(0);
    }

    90%,
    100% {
        transform: translateX(100%);
    }
}

/* Fin Micro-Animations */

.service-title {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--color-text-light);
    font-size: var(--fs-small);
    margin-bottom: 1.5rem;
}

/* New Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
    display: inline-block;
}

.service-features li {
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li i {
    font-size: 1rem;
    color: var(--color-secondary);
}

.service-features li i.fa-gift {
    color: #e67e22; /* Warning/Promo color */
}

/* Service Pricing Tag */
.service-price-wrap {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.price-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

/* WhatsApp Card Button */
.btn-whatsapp-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-card:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

/* Highlight Card adjustments */
.highlight-card .service-price {
    color: var(--color-secondary);
}

/* =========================================================================
   BENEFITS SECTION
   ========================================================================= */
.benefits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefits-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-top: 0.2rem;
}

.benefits-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.benefits-item p {
    color: var(--color-text-light);
    font-size: var(--fs-small);
}

@media screen and (max-width: 768px) {
    .benefits-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.benefits-img {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.benefits-cover-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(58, 166, 185, 0.2)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    animation: floatAnimBenefits 6s infinite ease-in-out;
}

@keyframes floatAnimBenefits {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* =========================================================================
   WHY CHOOSE US & STATS
   ========================================================================= */

.choose-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media screen and (max-width: 968px) {
    .choose-us-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .choose-us-content {
        text-align: center !important;
    }
    .choose-us-content .section-title {
        text-align: center !important;
    }
}

.choose-us-desc {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.choose-us-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.acuerdo-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    animation: floatAnimAcuerdo 6s infinite ease-in-out;
}

@keyframes floatAnimAcuerdo {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-accent);
}

.stat-text {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* =========================================================================
   BLOG SECTION
   ========================================================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-align: left;
    transition: var(--transition);
    position: relative;
}

.blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.blog-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.blog-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--fs-small);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.blog-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-link:hover {
    color: var(--color-accent);
}