﻿/* ============================================================
   SHARED.CSS — With Me Estudio v14.1
   Estilos globales: redes flotantes, scroll reveal, animaciones
   ============================================================ */

/* ─────────────────────────────────────────
   BOTONES SOCIALES FLOTANTES
   ───────────────────────────────────────── */

.social-float {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 999;
}

.social-float-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    background: rgba(32, 33, 76, 0.75);
    border: none;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transition: background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
    animation: sfIn 0.5s ease both;
}

.social-float-btn i {
    transition: transform 0.28s ease;
    display: block;
}

.social-float-btn:nth-child(1) { animation-delay: 0.05s; }
.social-float-btn:nth-child(2) { animation-delay: 0.12s; }
.social-float-btn:nth-child(3) { animation-delay: 0.19s; }
.social-float-btn:nth-child(4) { animation-delay: 0.26s; }

@keyframes sfIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Hover: solo cambia fondo + icono escala leve */
.social-float-btn:hover { color: #fff; }
.social-float-btn:hover i { transform: scale(1.18); }

.social-float-btn.sf-instagram:hover {
    background: linear-gradient(160deg, #e6683c, #dc2743, #cc2366);
    box-shadow: -3px 0 16px rgba(220, 39, 67, 0.4);
}
.social-float-btn.sf-facebook:hover {
    background: #1877f2;
    box-shadow: -3px 0 16px rgba(24, 119, 242, 0.4);
}
.social-float-btn.sf-tiktok:hover {
    background: #111827;
    box-shadow: -3px 0 16px rgba(105, 201, 208, 0.3);
}
.social-float-btn.sf-whatsapp {
    color: rgba(37, 211, 102, 0.9);
}
.social-float-btn.sf-whatsapp:hover {
    background: #25d366;
    box-shadow: -3px 0 16px rgba(37, 211, 102, 0.45);
    color: #fff;
}

/* Mobile */
@media (max-width: 767px) {
    .social-float {
        top: auto;
        bottom: 14px;
        right: 12px;
        transform: none;
        flex-direction: row;
        gap: 8px;
    }
    .social-float-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        animation: sfInMob 0.4s ease both;
    }
    .social-float-btn:hover i { transform: scale(1.1); }
    @keyframes sfInMob {
        from { opacity: 0; transform: scale(0.6); }
        to   { opacity: 1; transform: scale(1); }
    }
}

/* ─────────────────────────────────────────
   SCROLL REVEAL — Animaciones al hacer scroll
   ───────────────────────────────────────── */

.reveal {
    /* Removed opacity: 0 and transforms to make content visible instantly */
}

.reveal.reveal--left {
    /* removed transform */
}

.reveal.reveal--right {
    /* removed transform */
}

.reveal.reveal--scale {
    /* removed transform */
}

.reveal.is-visible {
    /* kept for compatibility */
}

/* Removed transition delays to prevent elements from taking seconds to show up */

/* ─────────────────────────────────────────
   EFECTO RIPPLE (gota de agua) — Formulario
   ───────────────────────────────────────── */

.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: rippleAnim 0.7s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ─────────────────────────────────────────
   CURSOR PERSONALIZADO (solo desktop)
   ───────────────────────────────────────── */

@media (min-width: 1024px) {
    body {
        cursor: none;
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 17px;
        height: 17px;
        background: var(--rosa, #dcafef);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition: transform 0.08s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
        box-shadow: 0 0 6px rgba(220, 175, 239, 0.6);
    }

    .custom-cursor.cursor-hover {
        width: 36px;
        height: 36px;
        background: rgba(220, 175, 239, 0.45);
    }

    a, button, [role="button"], .empezemos, .cotizar, .enlace {
        cursor: none;
    }
}

/* ─────────────────────────────────────────
   BADGE "NUEVO" para el menú
   ───────────────────────────────────────── */

.badge-new {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--rosa, #dcafef);
    color: var(--azul, #20214c);
    padding: 1px 5px;
    border-radius: 4px;
    vertical-align: super;
    margin-left: 3px;
    font-family: 'HarmoniaSansProBlack', sans-serif;
    animation: badgePop 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}

@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ─────────────────────────────────────────
   ANIMACIÓN TEXTO ROTATIVO (hero)
   ───────────────────────────────────────── */

.text-rotator {
    display: inline-block;
    position: relative;
    color: var(--rosa, #dcafef);
    overflow: hidden;
    vertical-align: bottom;
}

.text-rotator-inner {
    display: block;
    animation: rotateText 9s ease-in-out infinite;
}

.text-rotator-inner span {
    display: block;
    height: 1.1em;
    line-height: 1.1em;
}

@keyframes rotateText {
    0%  { transform: translateY(0); }
    28% { transform: translateY(0); }
    33% { transform: translateY(-33.33%); }
    61% { transform: translateY(-33.33%); }
    66% { transform: translateY(-66.66%); }
    94% { transform: translateY(-66.66%); }
    100%{ transform: translateY(0); }
}

/* ─────────────────────────────────────────
   CARD HOVER 3D EFECTO
   ───────────────────────────────────────── */

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.card-3d:hover {
    box-shadow: 0 20px 60px rgba(32, 33, 76, 0.2);
}

/* ─────────────────────────────────────────
   GLASSMORPHISM UTILITY
   ───────────────────────────────────────── */

.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ─────────────────────────────────────────
   GRADIENT TEXT UTILITY
   ───────────────────────────────────────── */

.gradient-text {
    background: linear-gradient(135deg, var(--rosa, #dcafef), var(--azul, #20214c));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─────────────────────────────────────────
   LÍNEA DECORATIVA ANIMADA
   ───────────────────────────────────────── */

.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rosa, #dcafef), var(--azul, #20214c));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-underline:hover::after,
.animated-underline.active::after {
    width: 100%;
}

/* ─────────────────────────────────────────
   SMOOTH SCROLL GLOBAL
   ───────────────────────────────────────── */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Evita que el header fijo tape los títulos de los anchors */
}

/* ============================================================
   LÍNEA DE TIEMPO UNIVERSAL (Procesos / Metodología)
   ============================================================ */
/* Mobile */
.linea-tiempo {
    position: relative;
    width: 90%;
    margin: 0rem auto 2rem;
    padding: 2rem 0 1rem;
}

.linea-tiempo::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--rosa-claro);
    border-radius: 2px;
}

.bloque {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 45px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bloque.visible {
    opacity: 1;
    transform: translateX(0);
}

.bloque:nth-child(1) { transition-delay: 0.05s; }
.bloque:nth-child(2) { transition-delay: 0.15s; }
.bloque:nth-child(3) { transition-delay: 0.25s; }
.bloque:nth-child(4) { transition-delay: 0.35s; }
.bloque:nth-child(5) { transition-delay: 0.45s; }
.bloque:nth-child(6) { transition-delay: 0.55s; }

.bloque::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--rosa);
    border: 4px solid var(--blanco);
    z-index: 1;
}

.contenido-bloque {
    background-color: #ebe9e96f;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.watermark-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(220, 175, 239, 0.2);
    position: absolute;
    right: 12px;
    bottom: -5px;
    line-height: 1;
    font-family: 'HarmoniaSansProBlack', sans-serif;
    pointer-events: none;
    user-select: none;
}

.titulo-bloque {
    font-size: 1.2rem;
    color: var(--azul);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.parrafo-bloque {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.6;
}

/* Desktop */
@media (min-width: 1024px) {
    .linea-tiempo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
        padding: 0;
        margin: 12rem auto 8rem; /* Increased margin-top to prevent title overlap */
        position: relative;
        height: 10px;
        max-width: 1400px;
        width: 95%;
    }

    .linea-tiempo::before {
        top: 3px;
        left: 0;
        width: 100%;
        height: 4px;
        bottom: auto;
        transform: none;
        background: linear-gradient(to right, var(--rosa-claro), var(--rosa), var(--azul));
        border-radius: 2px;
    }

    .bloque {
        flex: 1;
        height: 10px;
        margin: 0;
        padding: 0;
        left: auto !important;
        text-align: center !important;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    /* ODD blocks sit ABOVE the line */
    .bloque:nth-child(odd) .contenido-bloque {
        bottom: 80px;
    }

    /* EVEN blocks sit BELOW the line */
    .bloque:nth-child(even) .contenido-bloque {
        top: 80px;
    }

    .bloque::before {
        top: -8px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 20px;
        height: 20px;
        border-width: 3px;
    }

    .bloque:nth-child(even)::before {
        top: -8px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    /* Connector lines */
    .bloque::after {
        content: '';
        position: absolute;
        width: 2px;
        height: 70px;
        background: var(--rosa-claro);
        left: 50%;
        transform: translateX(-50%);
        z-index: 0;
    }

    .bloque:nth-child(odd)::after {
        bottom: 10px;
    }

    .bloque:nth-child(even)::after {
        top: 10px;
    }

    .contenido-bloque {
        position: absolute;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(220, 175, 239, 0.4);
        border-radius: 2rem;
        padding: 1.5rem 1rem;
        box-shadow: 0 10px 25px rgba(32, 33, 76, 0.05);
        transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
        z-index: 2;
    }

    .bloque:hover .contenido-bloque {
        border-color: var(--rosa);
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(32, 33, 76, 0.1);
    }

    .contenido-bloque::after {
        display: none !important;
    }

    .bloque:nth-child(even) .contenido-bloque::after {
        display: none !important;
    }

    .watermark-number {
        display: block;
        font-size: 5rem;
        font-weight: 900;
        color: rgba(220, 175, 239, 0.2);
        position: absolute;
        right: 15px;
        bottom: -5px;
        line-height: 1;
        font-family: 'HarmoniaSansProBlack', sans-serif;
    }

    .titulo-bloque {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
        position: relative;
        z-index: 2;
    }

    .parrafo-bloque {
        font-size: 0.85rem;
        line-height: 1.5;
        color: #555;
        position: relative;
        z-index: 2;
    }
}
/* ============================================================
   LAYOUT ZIG-ZAG (Servicios Detallados)
   ============================================================ */

.grupo3-detalles {
    grid-area: parte3;
    padding: 1rem 1.5rem;
    background-color: var(--blanco);
}

.texto-grupo3{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    column-gap: .5rem;
    row-gap: 1rem;
}

.parrafo-grupo3{
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
    color: var(--azul);
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 0.2rem solid var(--rosa);
    text-align: center;
}

.lista-servicios-detallados {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    /* Efecto inicial suave sin ocultar por completo */
    transform: translateY(15px);
    transition: transform 0.6s ease, filter 0.6s ease;
    margin-bottom: 1.5rem;
}

.servicio-row:hover {
    transform: translateY(0);
}

.sr-img {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background-color: var(--rosa-claro);
}

.sr-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.servicio-row:hover .sr-img img {
    transform: scale(1.08);
}

.sr-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sr-icon {
    font-size: 2rem;
    color: var(--blanco);
    margin-bottom: 1.5rem;
    background: var(--azul);
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(32, 33, 76, 0.3);
    transition: transform 0.4s ease, background 0.4s ease;
}

.servicio-row:hover .sr-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--rosa);
}

.sr-title {
    font-size: 2rem;
    color: var(--azul);
    font-family: 'HarmoniaSansProBlack', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.sr-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sr-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--azul);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid var(--azul);
    padding: 0.8rem 1.8rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.sr-btn:hover {
    background: var(--azul);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(32, 33, 76, 0.2);
}

@media (min-width: 768px) {
    .servicio-row {
        gap: 3rem;
    }

    .sr-img img {
        height: 375px;
    }
    .sr-title {
        font-size: 2.5rem;
    }
    .sr-desc {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    .servicio-row {
        flex-direction: row;
        gap: 5rem;
        margin-bottom: 3rem;
    }
    .servicio-row.sr-reverse {
        flex-direction: row-reverse;
    }
    .sr-img {
        width: 45%;
        height: 430px;
    }

    .sr-img img {
        height: 475px;
    }
    .sr-text {
        width: 50%;
    }
}
