/* ===================================================
   CONECTANDO ALMAS — Estilo Místico & Etéreo
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;600;700&family=Lato:wght@300;400&display=swap');

/* ============ VARIABLES ============ */
:root {
    --oro:              #d4af37;
    --oro-claro:        #f0d060;
    --purpura-oscuro:   #160a2a;
    --purpura-medio:    #2d1258;
    --purpura-claro:    #7b2fbe;
    --lavanda:          #c084fc;
    --blanco:           #ffffff;
    --blanco-suave:     rgba(255,255,255,0.85);
    --glass:            rgba(255,255,255,0.07);
    --glass-border:     rgba(255,255,255,0.18);
    --glass-hover:      rgba(255,255,255,0.13);
    --sombra-purpura:   rgba(123,47,190,0.35);
    --sombra-oro:       rgba(212,175,55,0.3);
    --radio:            18px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    background: var(--purpura-oscuro);
    color: var(--blanco);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ============ PARTÍCULAS ============ */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ============ NAVBAR ============ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    background: rgba(22, 10, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.nav-logo-img {
    height: 64px;
    width: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--oro);
    box-shadow: 0 0 18px var(--sombra-oro);
    transition: transform 0.3s ease;
}
.nav-logo-img:hover { transform: scale(1.08) rotate(3deg); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover {
    color: var(--oro-claro);
    text-shadow: 0 0 12px var(--oro);
}

.nav-social {
    display: flex;
    gap: 18px;
}
.nav-social a {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}
.nav-social a:hover { color: var(--lavanda); transform: scale(1.25); }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 96vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
    background: url('fondo2.jpg') no-repeat center center / cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(22, 10, 42, 0.45) 0%,
        rgba(45, 18, 88, 0.55) 50%,
        rgba(22, 10, 42, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.estrella-deco {
    font-size: 1.5rem;
    color: var(--oro-claro);
    display: block;
    margin-bottom: 18px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff 30%, var(--oro-claro) 70%, var(--lavanda) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-bottom: 10px;
}

.hero-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--lavanda);
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.phrase {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.8vw, 1.7rem);
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin-bottom: 40px;
    padding: 0 10px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.botones-hero {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============ BOTONES ============ */
.btn-whatsapp, .btn-instagram, .btn-card-action {
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37,211,102,0.5);
}

.btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
    box-shadow: 0 4px 20px rgba(214,36,159,0.35);
}
.btn-instagram:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(214,36,159,0.5);
}

.btn-card-action {
    background: transparent;
    border: 1.5px solid var(--oro);
    color: var(--oro);
    font-size: 0.85rem;
    padding: 11px 24px;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
}
.btn-card-action:hover {
    background: var(--oro);
    color: var(--purpura-oscuro);
    box-shadow: 0 0 25px var(--sombra-oro);
    transform: translateY(-2px);
}
.btn-card-action.destacado {
    background: linear-gradient(135deg, var(--oro), #b8962e);
    color: var(--purpura-oscuro);
    border-color: transparent;
    box-shadow: 0 4px 20px var(--sombra-oro);
    font-weight: 700;
}
.btn-card-action.destacado:hover {
    box-shadow: 0 8px 30px var(--sombra-oro);
    transform: translateY(-3px) scale(1.02);
}

/* ============ DECORACIONES ============ */
.bienvenida-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.linea-deco {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--oro), transparent);
}

.seccion-titulo {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--oro-claro);
    white-space: nowrap;
    text-shadow: 0 0 20px var(--sombra-oro);
}

.simbolos-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    font-size: 1.5rem;
    color: var(--oro);
    opacity: 0.6;
}

/* ============ BIENVENIDA ============ */
.seccion-bienvenida {
    position: relative;
    z-index: 1;
    padding: 90px 30px;
    text-align: center;
    background: linear-gradient(180deg, var(--purpura-oscuro) 0%, #200f42 50%, var(--purpura-oscuro) 100%);
}

.intro-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255,255,255,0.88);
    line-height: 1.9;
}
.intro-text strong {
    color: var(--lavanda);
    font-weight: 600;
}

/* ============ SERVICIOS ============ */
.seccion-servicios {
    position: relative;
    z-index: 1;
    padding: 80px 30px 100px;
    background: url('fondo3.png') no-repeat center center / cover;
    text-align: center;
}

.seccion-servicios::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--purpura-oscuro) 0%,
        rgba(22,10,42,0.6) 30%,
        rgba(22,10,42,0.6) 70%,
        var(--purpura-oscuro) 100%
    );
}

.seccion-servicios > * { position: relative; z-index: 1; }

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
}

/* ============ CARDS ============ */
.card {
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radio);
    padding: 35px 28px 28px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInCard 0.7s ease forwards;
    opacity: 0;
}

.card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(192,132,252,0.06) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.25s; }
.card:nth-child(3) { animation-delay: 0.4s; }

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(192,132,252,0.5);
    box-shadow: 0 20px 50px rgba(123,47,190,0.3), 0 0 0 1px rgba(212,175,55,0.1);
}

.card-destacada {
    border-color: rgba(212,175,55,0.4);
    background: linear-gradient(145deg, rgba(212,175,55,0.08), rgba(123,47,190,0.1));
}
.card-destacada:hover {
    border-color: var(--oro);
    box-shadow: 0 20px 60px var(--sombra-oro), 0 0 0 1px rgba(212,175,55,0.3);
}

.badge-popular {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--oro), #b8962e);
    color: var(--purpura-oscuro);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
}

.card-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(192,132,252,0.2), rgba(212,175,55,0.15));
    border: 1px solid rgba(192,132,252,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--lavanda);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(192,132,252,0.4);
}

.card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--oro-claro);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.card .desc {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 18px;
    line-height: 1.6;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
}

/* Acordeón */
.btn-info {
    background: transparent;
    border: 1px solid rgba(192,132,252,0.35);
    color: var(--lavanda);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.btn-info:hover { background: rgba(192,132,252,0.12); border-color: var(--lavanda); }
.btn-info i { transition: transform 0.3s; }
.btn-info.open i { transform: rotate(180deg); }

.info-oculta {
    display: none;
    background: rgba(192,132,252,0.07);
    border: 1px solid rgba(192,132,252,0.2);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    text-align: left;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.puntos-clave {
    list-style: none;
    margin-bottom: 16px;
    text-align: left;
}
.puntos-clave li {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.puntos-clave li i { color: var(--lavanda); font-size: 0.9rem; }

.delivery-info {
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.55);
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: 'Cinzel', serif;
}
.delivery-info.vivo {
    color: #7fffa0;
    background: rgba(127,255,160,0.07);
    border: 1px solid rgba(127,255,160,0.2);
}

/* ============ FOOTER ============ */
.footer-mistico {
    background: linear-gradient(180deg, var(--purpura-oscuro), #0d0620);
    padding: 60px 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-container { max-width: 500px; margin: 0 auto 40px; }

.footer-logo {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--oro);
    margin-bottom: 16px;
    box-shadow: 0 0 20px var(--sombra-oro);
}

.footer-mistico h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--oro-claro);
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.footer-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.footer-social a {
    color: rgba(255,255,255,0.5);
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
}
.footer-social a:hover { color: var(--lavanda); transform: scale(1.3); }

.footer-copy {
    border-top: 1px solid var(--glass-border);
    padding: 18px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
}

/* ============ CHAT WIDGET ============ */
#chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: 'Lato', sans-serif;
}

.chat-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: linear-gradient(135deg, var(--purpura-claro), #4a0d8f);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 25px rgba(123,47,190,0.5);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.chat-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(123,47,190,0.7);
}
.chat-toggle-btn i { font-size: 1.1rem; }

#chat-container {
    display: none;
    flex-direction: column;
    width: 330px;
    background: #1a0d35;
    border: 1px solid rgba(192,132,252,0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.6);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(90deg, #2d1258, #4a0d8f);
    border-bottom: 1px solid rgba(192,132,252,0.2);
}
.chat-header strong {
    display: block;
    font-size: 0.9rem;
    color: var(--oro-claro);
    font-family: 'Cinzel', serif;
}
.chat-status {
    font-size: 0.72rem;
    color: #7fffa0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-status i { font-size: 0.5rem; }

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--oro);
}

.chat-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 4px;
}
.chat-close:hover { color: white; }

#chat-box {
    flex: 1;
    min-height: 260px;
    max-height: 320px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #120827;
    scrollbar-width: thin;
    scrollbar-color: rgba(192,132,252,0.3) transparent;
}

.msg-bot p, .msg-user p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.msg-bot {
    align-self: flex-start;
    max-width: 88%;
}
.msg-bot p {
    background: rgba(192,132,252,0.13);
    border: 1px solid rgba(192,132,252,0.2);
    border-radius: 14px 14px 14px 2px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.88);
}

.msg-user {
    align-self: flex-end;
    max-width: 80%;
}
.msg-user p {
    background: linear-gradient(135deg, #4a0d8f, #7b2fbe);
    border-radius: 14px 14px 2px 14px;
    padding: 10px 14px;
    color: white;
}

.msg-loading { font-style: italic; color: var(--lavanda) !important; font-size: 0.8rem !important; }

.chat-input-row {
    display: flex;
    border-top: 1px solid rgba(192,132,252,0.2);
    background: #1a0d35;
}
.chat-input-row input {
    flex: 1;
    padding: 13px 16px;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 0.88rem;
}
.chat-input-row input::placeholder { color: rgba(255,255,255,0.35); }

.btn-send {
    padding: 0 18px;
    background: linear-gradient(135deg, var(--purpura-claro), #4a0d8f);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}
.btn-send:hover { opacity: 0.85; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }
    .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; background: rgba(22,10,42,0.97); padding: 20px; gap: 20px; border-bottom: 1px solid var(--glass-border); }
    .nav-links.open { display: flex; }
    .hamburger { display: block; }
    .nav-social { gap: 14px; }
    .servicios-grid { padding: 0; }
    #chat-container { width: calc(100vw - 40px); }
    .hero { min-height: 85vh; }
    .phrase { font-size: 1.1rem; }
}
