﻿/* assets/css/estilo.css */
:root {
    --brand-primary: #7C3AED;
    --brand-accent: #22C55E;
    --brand-ink: #0B0816;
    --brand-surface: #0F0A1F;
    --brand-muted: #130F2E;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

img, video, canvas {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}
/* Transiciones suaves */
.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animación para el menú móvil */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Estilo para las tarjetas de servicios */
.servicio-card {
    transition: transform 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

/* Botones de filtro activos */
.filter-btn.active {
    background-color: #7C3AED;
    color: white;
}

/* Fondo de cuadrícula suave para hero */
.bg-grid-white\/10 {
    background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

/* Utilidad: limitar a 2 líneas */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Timeline mobile */
.timeline {
    position: relative;
}
.timeline:before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.12);
}
.timeline-item {
    position: relative;
    padding-left: 48px;
}
.timeline-bullet {
    position: absolute;
    left: 8px;
    top: 6px;
}

.mce-rounded-hero {
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.mce-rounded-panel {
    border-radius: 32px;
}

.mce-rounded-footer {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.mce-whatsapp-float {
    isolation: isolate;
    will-change: transform, box-shadow;
    /* Se elimina el halo animado para que el botón se vea como un solo círculo */
    animation: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 9999px;
}

.mce-whatsapp-float::before {
    content: none;
}

.mce-whatsapp-float::after {
    content: none;
}

.mce-whatsapp-float__icon {
    display: block;
    position: relative;
    z-index: 1;
    animation: none;
}

/* Llamada animada */
.mce-call-ringing {
    position: relative;
    overflow: visible;
}
.mce-call-ringing .call-ico-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}
.mce-call-ringing .call-ico-wrap .call-ring {
    position: absolute;
    inset: 0;
    border: 2px solid currentColor;
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.6);
    animation: mceCallPulse 1.8s ease-out infinite;
}
.mce-call-ringing .call-ring--2 { animation-delay: 0.25s; }
.mce-call-ringing .call-ring--3 { animation-delay: 0.5s; }

@keyframes mceCallPulse {
    0%   { opacity: 0.6; transform: scale(0.6); }
    60%  { opacity: 0.12; transform: scale(1.4); }
    100% { opacity: 0; transform: scale(1.65); }
}

/* Botón flotante de llamada */
.mce-call-float {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.1rem;
    border-radius: 9999px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.mce-call-float:hover,
.mce-call-float:focus-visible {
    background: #eef2ff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.32);
}
.mce-call-float .call-ico-wrap {
    background: rgba(15, 23, 42, 0.06);
}

.mce-whatsapp-float:hover,
.mce-whatsapp-float:focus-visible,
.mce-whatsapp-float:hover::before,
.mce-whatsapp-float:focus-visible::before,
.mce-whatsapp-float:hover::after,
.mce-whatsapp-float:focus-visible::after,
.mce-whatsapp-float:hover .mce-whatsapp-float__icon,
.mce-whatsapp-float:focus-visible .mce-whatsapp-float__icon {
    animation-play-state: paused;
}

.mce-whatsapp-float:hover,
.mce-whatsapp-float:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 22px 34px rgba(22, 163, 74, 0.34);
}

@media (min-width: 768px) {
    .timeline:before {
        display: none;
    }
    .timeline-item {
        padding-left: 0;
    }
    .timeline-bullet {
        position: static;
    }
}

/* Personalizar scrollbar (opcional) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #7C3AED;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6D28D9;
}

/* Animaciones al hacer scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes mceWhatsappBreath {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 14px 26px rgba(22, 163, 74, 0.26);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 22px 34px rgba(22, 163, 74, 0.34);
    }
}

@keyframes mceWhatsappHalo {
    0%,
    100% {
        opacity: 0;
        transform: scale(0.92);
    }
    35% {
        opacity: 0.22;
    }
    60% {
        opacity: 0;
        transform: scale(1.34);
    }
}

@keyframes mceWhatsappReflection {
    0%,
    100% {
        opacity: 0.34;
        transform: scale(0.94);
    }
    50% {
        opacity: 0.58;
        transform: scale(1.04);
    }
}

@keyframes mceWhatsappIconBreath {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mce-whatsapp-float,
    .mce-whatsapp-float::before,
    .mce-whatsapp-float::after,
    .mce-whatsapp-float__icon {
        animation: none;
    }
}

@-webkit-keyframes mceLogoRotate {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes mceLogoRotate {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes mceLogoPulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0), 0 10px 22px rgba(14, 116, 144, 0.16);
    }
    50% {
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.45), 0 12px 26px rgba(14, 116, 144, 0.24);
    }
}

@keyframes mceLogoPulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(37, 99, 235, 0), 0 10px 22px rgba(14, 116, 144, 0.16);
    }
    50% {
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.45), 0 12px 26px rgba(14, 116, 144, 0.24);
    }
}

.mce-logo-frame {
    isolation: isolate;
}

.mce-logo-border {
    display: block;
    overflow: hidden;
    pointer-events: none;
    background: conic-gradient(
        from 0deg,
        #0B0816 0deg,
        #7C3AED 120deg,
        #22C55E 240deg,
        #7C3AED 320deg,
        #0B0816 360deg
    );
    -webkit-animation: mceLogoRotate 4.5s linear infinite, mceLogoPulse 2.8s ease-in-out infinite;
    animation: mceLogoRotate 4.5s linear infinite, mceLogoPulse 2.8s ease-in-out infinite;
    -webkit-transform-origin: center;
    transform-origin: center;
}

.mce-logo-frame:hover .mce-logo-border,
.mce-logo-frame:active .mce-logo-border {
    -webkit-animation-duration: 2.2s, 1.8s;
    animation-duration: 2.2s, 1.8s;
}

/* Tarjetas de servicios: modo compacto con modal */
.srv-card {
    cursor: pointer;
    background: linear-gradient(145deg, #0b1224 0%, #0f172a 45%, #111827 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.srv-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5f5;
}
.srv-summary-price {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.srv-summary-hint {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.78);
}

.srv-card h3 {
    color: #f8fafc;
}
.srv-card .srv-extra {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
}
.srv-card .srv-level-desc {
    font-size: 0.97rem;
    line-height: 1.5;
    color: #e5e7eb;
}

.srv-modal-template {
    display: none;
}

/* Modal */
.srv-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}
.srv-modal.is-active {
    display: block;
}
.srv-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}
.srv-modal__panel {
    position: relative;
    width: min(92vw, 760px);
    max-height: 88vh;
    overflow-y: auto;
    margin: 6vh auto;
    background: #0b1224;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
}
.srv-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.srv-modal__close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}
.srv-modal__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.srv-modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}
.srv-modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
}
.srv-modal__summary {
    color: #cbd5f5;
    font-weight: 600;
}
.srv-modal__body .srv-extra {
    font-size: 1.05rem;
    line-height: 1.7;
}
.srv-modal__body .srv-level-desc {
    font-size: 1rem;
}

.srv-modal__body {
    padding-bottom: 8px;
}

.no-scroll {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: contain;
}

@media (max-width: 640px) {
    .srv-modal__panel {
        width: 92vw;
        margin: 4vh auto;
        max-height: 84vh;
    }
}
.no-scroll {
    overflow: hidden;
}

/* --------- Ajustes móviles --------- */
@media (max-width: 640px) {
    /* Botones flotantes: misma estética, sin barra blanca y sin solaparse */
    .mce-whatsapp-float {
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    }
    .mce-call-float {
        left: 12px;   /* mantiene su posición lateral como en desktop */
        right: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 9999px;
        justify-content: center;
        gap: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .mce-call-float .call-ico-wrap {
        margin-right: 0;
        width: 48px;
        height: 48px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    }
    .mce-call-float span:not(.call-ico-wrap) { display: none; }

    /* Panel del asistente más angosto y con margen al borde */
    .assistant-panel {
        width: min(92vw, 360px);
        right: 4vw;
        max-height: 70vh;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
    }

    /* Ocultar botón asistente si se prioriza espacio en móvil */
    .floating-buttons { display: none; }
}




