/* ============================================
   VANCAKE - Sección "Hola, somos VanCake"
   SCOPED a #services — no afecta el resto
   ============================================ */

/* === CurveUp: transparent so services bg-pattern shows through === */
#curveUp path {
    fill: #f4efee !important;
    stroke: #f4efee !important;
}
/* Extend services behind curveUp so pattern covers the gap */
#services {
    margin-top: -2px;
}

/* === Body background: no white gaps between sections === */
body {
    background-color: #f4efee !important;
}

/* === Space between counter and slogan === */
#counter-section {
    margin-bottom: 40px;
}

/* === Section Base === */
#services {
    background-image:
        linear-gradient(rgba(244, 239, 238, 0.55), rgba(244, 239, 238, 0.55)),
        url('../img/vancake/background1.png') !important;
    background-color: #f4efee !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
    padding: 60px 0 !important;
    position: relative;
    overflow: hidden;
}
@media (max-width: 991.98px) {
    #services { background-attachment: scroll; }
}
#services .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    z-index: 1;
}


/* === Title === */
#services .main-title {
    color: #cc7b7e !important;
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(204, 123, 126, 0.2) !important;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: left;
    padding: 0;
}

/* === Intro Card === */
#services .intro-card {
    background: linear-gradient(145deg, #ffffff 0%, #faf5f5 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(204, 123, 126, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    max-width: 480px;
}
#services .intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}
#services .intro-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(204, 123, 126, 0.25);
}
#services .intro-card:hover::before {
    left: 100%;
}

/* === Text Styles === */
#services .intro-text {
    color: #8b5b56;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}
#services .highlight-pink {
    color: #cc7b7e;
    font-weight: 700;
}
#services .story-text {
    color: #8b5b56;
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: justify;
}
#services .story-highlight {
    font-weight: 600;
    color: #8b5b56;
}

/* === Cupcake Image === */
#services .cupcake-container {
    position: relative;
    height: 300px;
}
#services .cupcake-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right top;
}

/* === Polaroid Card === */
#services .polaroid-card {
    background: white;
    padding: 12px;
    padding-bottom: 50px;
    max-width: 340px;
    transform: rotate(-3deg);
    box-shadow: 6px 8px 20px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: inline-block;
}
#services .polaroid-card:hover {
    transform: rotate(-3deg) translateY(-10px) scale(1.05);
    box-shadow: 12px 18px 35px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);
}
#services .polaroid-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}
#services .polaroid-label {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    background-color: #9ca677;
    padding: 8px 20px;
    box-shadow: 2px 3px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
#services .polaroid-label:hover {
    transform: translateX(-50%) rotate(0deg) scale(1.1);
}
#services .polaroid-label span {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* === Paper Clip === */
#services .paper-clip {
    position: absolute;
    top: -12px;
    left: 30px;
    z-index: 10;
}

/* === Cake Icon Float === */
#services .cake-icon {
    animation: vcFloat 3s ease-in-out infinite;
    margin-bottom: -20px;
    margin-left: 50px;
    position: relative;
    z-index: 2;
}
@keyframes vcFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* === Values === */
#services .value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: vcSlideIn 0.6s ease-out forwards;
    opacity: 0;
}
#services .value-item:nth-child(1) { animation-delay: 0.2s; }
#services .value-item:nth-child(2) { animation-delay: 0.4s; }
#services .value-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes vcSlideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
#services .value-item:hover {
    transform: translateX(10px);
}
#services .icon-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: #ecc2c6;
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 3px 4px 10px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#services .value-item:hover .icon-circle {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 5px 8px 20px rgba(0,0,0,0.2);
}
#services .tape-label {
    background-color: #9ca677;
    padding: 8px 18px;
    box-shadow: 2px 3px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: inline-block;
}
#services .tape-label.rotate-left { transform: rotate(-2deg); }
#services .tape-label.rotate-right { transform: rotate(1deg); }
#services .tape-label.rotate-slight { transform: rotate(-1deg); }
#services .value-item:hover .tape-label {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 4px 6px 15px rgba(0,0,0,0.2);
}
#services .tape-label span {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* === Heart Animation === */
#services .heart-icon {
    animation: vcPulse 1.5s ease-in-out infinite;
}
@keyframes vcPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* === Story Cards === */
#services .story-card {
    border-radius: 20px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 20px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
#services .story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #cc7b7e 0%, #ecc2c6 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}
#services .story-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 123, 126, 0.08), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}
#services .story-card:hover {
    transform: translateY(-12px) translateX(5px);
    box-shadow: -8px 15px 35px rgba(204, 123, 126, 0.2), 0 8px 20px rgba(0,0,0,0.08);
}
#services .story-card:hover::before {
    transform: scaleY(1);
}
#services .story-card:hover::after {
    left: 100%;
}
#services .story-card:hover .card-icon svg {
    transform: rotate(15deg) scale(1.2);
}
#services .card-liderazgo {
    background: linear-gradient(135deg, #ffffff 0%, #fff9f9 50%, #fef3f3 100%);
    box-shadow: 0 8px 25px rgba(204, 123, 126, 0.12);
}
#services .card-union {
    background: linear-gradient(135deg, #ffffff 0%, #f9fbf7 50%, #f4f7f1 100%);
    box-shadow: 0 8px 25px rgba(156, 166, 119, 0.12);
}
#services .card-union::before {
    background: linear-gradient(180deg, #9ca677 0%, #bec9a3 100%);
}
#services .card-compromiso {
    background: linear-gradient(135deg, #ffffff 0%, #fdf8f8 50%, #faf2f2 100%);
    box-shadow: 0 8px 25px rgba(204, 123, 126, 0.12);
}
#services .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(135deg, #fef5f5 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(204, 123, 126, 0.15);
    transition: all 0.4s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
#services .card-icon svg {
    transition: all 0.4s ease;
    display: block;
}
#services .story-card p {
    position: relative;
    z-index: 1;
}

/* === Layout helpers (BS3 compat) === */
#services .vc-flex {
    display: flex;
    align-items: flex-start;
}
#services .vc-flex > .vc-left {
    width: 58.33%;
    padding-right: 15px;
}
#services .vc-flex > .vc-right {
    width: 41.67%;
    padding-left: 15px;
}
#services .vc-flex-content {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
#services .vc-flex-content > .vc-col-left {
    width: 35%;
    padding-right: 10px;
}
#services .vc-flex-content > .vc-col-right {
    width: 65%;
    padding-left: 10px;
}

/* Value PNG images */
#services .value-png {
    max-width: 200px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#services .value-item:hover .value-png {
    transform: translateX(10px) scale(1.08);
    filter: drop-shadow(4px 6px 10px rgba(0,0,0,0.15));
}

/* === Responsive === */
@media (max-width: 991px) {
    #services .main-title {
        font-size: 2.8rem;
        text-align: center;
    }
    #services .cupcake-container {
        display: none;
    }
    #services .polaroid-card {
        margin: 0 auto 30px;
    }
    #services .vc-flex,
    #services .vc-flex-content {
        display: block;
    }
    #services .vc-flex > .vc-left,
    #services .vc-flex > .vc-right,
    #services .vc-flex-content > .vc-col-left,
    #services .vc-flex-content > .vc-col-right {
        width: 100%;
        padding: 0;
    }
    #services .intro-card {
        max-width: 100%;
    }
}
