/* ================================================================
   PERFIL DE AGENTE — casasen360.com
   Sistema de temas: cambia data-theme en .perfil-page
   ================================================================ */

/* ── Reset base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #071524; }

/* ================================================================
   TEMAS — solo cambia el atributo data-theme en .perfil-page
   Ejemplo: <div class="perfil-page" data-theme="naranja">
   ================================================================ */

/* ── AZUL (default) ──────────────────────────────────────────── */
.perfil-page {
    --p-primary:      #22bef8;
    --p-primary-dark: #0ea3d8;
    --p-bg:           #eef5fc;
    --p-surface:      #ffffff;
    --p-surface-2:    #f4f9fe;
    --p-text:         #1a2d4d;
    --p-text-muted:   #5a7a9d;
    --p-border:       #c8dff2;
    --p-chip-bg:      #d6eefb;
    --p-chip-text:    #0a2d4d;
    --p-shadow:       0 2px 16px rgba(10,45,77,.10);
    --p-shadow-hover: 0 6px 28px rgba(10,45,77,.18);
    --p-hero-a:       #061b30;
    --p-hero-b:       #0a2d4d;
    --p-hero-c:       #0d4a7a;
    --p-hero-glow:    rgba(34,190,248,.15);
    --p-nav-bg:       #0a2d4d;
    --p-footer-bg:    #061b30;
}

/* ── OSCURO ──────────────────────────────────────────────────── */
.perfil-page[data-theme="oscuro"] {
    --p-primary:      #22bef8;
    --p-primary-dark: #0ea3d8;
    --p-bg:           #071524;
    --p-surface:      #0d2236;
    --p-surface-2:    #112840;
    --p-text:         #deeefa;
    --p-text-muted:   #7baad4;
    --p-border:       #1a3a5c;
    --p-chip-bg:      #0d2e4a;
    --p-chip-text:    #7dd0f7;
    --p-shadow:       0 2px 16px rgba(0,0,0,.40);
    --p-shadow-hover: 0 6px 28px rgba(0,0,0,.55);
    --p-hero-a:       #020c14;
    --p-hero-b:       #071524;
    --p-hero-c:       #0a2035;
    --p-hero-glow:    rgba(34,190,248,.10);
    --p-nav-bg:       #020c14;
    --p-footer-bg:    #020c14;
}

/* ── NARANJA ─────────────────────────────────────────────────── */
.perfil-page[data-theme="naranja"] {
    --p-primary:      #ff6b2b;
    --p-primary-dark: #e5571a;
    --p-bg:           #fff5f0;
    --p-surface:      #ffffff;
    --p-surface-2:    #fff0e8;
    --p-text:         #2d1205;
    --p-text-muted:   #8a5040;
    --p-border:       #ffd4b8;
    --p-chip-bg:      #ffe8d6;
    --p-chip-text:    #8a2a00;
    --p-shadow:       0 2px 16px rgba(45,18,5,.10);
    --p-shadow-hover: 0 6px 28px rgba(45,18,5,.18);
    --p-hero-a:       #3d1208;
    --p-hero-b:       #7a2a0a;
    --p-hero-c:       #c44a1a;
    --p-hero-glow:    rgba(255,107,43,.22);
    --p-nav-bg:       #3d1208;
    --p-footer-bg:    #2a0a04;
}

/* ── AMARILLO / ÁMBAR ────────────────────────────────────────── */
.perfil-page[data-theme="amarillo"] {
    --p-primary:      #f59e0b;
    --p-primary-dark: #d97706;
    --p-bg:           #fffdf0;
    --p-surface:      #ffffff;
    --p-surface-2:    #fef9e0;
    --p-text:         #2d2000;
    --p-text-muted:   #7a6020;
    --p-border:       #fde68a;
    --p-chip-bg:      #fef3c7;
    --p-chip-text:    #7a4500;
    --p-shadow:       0 2px 16px rgba(45,32,0,.10);
    --p-shadow-hover: 0 6px 28px rgba(45,32,0,.18);
    --p-hero-a:       #1a1200;
    --p-hero-b:       #2d1f00;
    --p-hero-c:       #4a3500;
    --p-hero-glow:    rgba(245,158,11,.28);
    --p-nav-bg:       #2d1f00;
    --p-footer-bg:    #1a1200;
}

/* ── VERDE ───────────────────────────────────────────────────── */
.perfil-page[data-theme="verde"] {
    --p-primary:      #22c55e;
    --p-primary-dark: #16a34a;
    --p-bg:           #f0fdf4;
    --p-surface:      #ffffff;
    --p-surface-2:    #e8faf0;
    --p-text:         #052e16;
    --p-text-muted:   #3a7a55;
    --p-border:       #bbf7d0;
    --p-chip-bg:      #d1fae5;
    --p-chip-text:    #065f30;
    --p-shadow:       0 2px 16px rgba(5,46,22,.10);
    --p-shadow-hover: 0 6px 28px rgba(5,46,22,.18);
    --p-hero-a:       #021a0c;
    --p-hero-b:       #052e16;
    --p-hero-c:       #0a4a22;
    --p-hero-glow:    rgba(34,197,94,.22);
    --p-nav-bg:       #052e16;
    --p-footer-bg:    #021a0c;
}

/* ── DORADO ──────────────────────────────────────────────────── */
.perfil-page[data-theme="dorado"] {
    --p-primary:      #c9a227;
    --p-primary-dark: #a8861e;
    --p-bg:           #fefce8;
    --p-surface:      #ffffff;
    --p-surface-2:    #fef9d0;
    --p-text:         #2a1f00;
    --p-text-muted:   #7a6820;
    --p-border:       #edd060;
    --p-chip-bg:      #fef3c7;
    --p-chip-text:    #6b4f00;
    --p-shadow:       0 2px 16px rgba(42,32,0,.12);
    --p-shadow-hover: 0 6px 28px rgba(42,32,0,.20);
    --p-hero-a:       #1a1400;
    --p-hero-b:       #2a2000;
    --p-hero-c:       #3d3000;
    --p-hero-glow:    rgba(201,162,39,.32);
    --p-nav-bg:       #2a2000;
    --p-footer-bg:    #1a1400;
}

/* ── NEGRO ───────────────────────────────────────────────────── */
.perfil-page[data-theme="negro"] {
    --p-primary:      #22bef8;
    --p-primary-dark: #0ea3d8;
    --p-bg:           #000000;
    --p-surface:      #111111;
    --p-surface-2:    #1a1a1a;
    --p-text:         #f5f5f5;
    --p-text-muted:   #9ca3af;
    --p-border:       #2a2a2a;
    --p-chip-bg:      #1a1a1a;
    --p-chip-text:    #e0e0e0;
    --p-shadow:       0 2px 16px rgba(0,0,0,.55);
    --p-shadow-hover: 0 6px 28px rgba(0,0,0,.75);
    --p-hero-a:       #000000;
    --p-hero-b:       #000000;
    --p-hero-c:       #0a0a0a;
    --p-hero-glow:    rgba(34,190,248,.12);
    --p-nav-bg:       #000000;
    --p-footer-bg:    #000000;
}

/* ── ROJO ────────────────────────────────────────────────────── */
.perfil-page[data-theme="rojo"] {
    --p-primary:      #ef4444;
    --p-primary-dark: #dc2626;
    --p-bg:           #fff5f5;
    --p-surface:      #ffffff;
    --p-surface-2:    #fef2f2;
    --p-text:         #2d0505;
    --p-text-muted:   #8a4040;
    --p-border:       #fecaca;
    --p-chip-bg:      #fee2e2;
    --p-chip-text:    #8a0000;
    --p-shadow:       0 2px 16px rgba(45,5,5,.10);
    --p-shadow-hover: 0 6px 28px rgba(45,5,5,.18);
    --p-hero-a:       #2d0505;
    --p-hero-b:       #4a0a0a;
    --p-hero-c:       #7a1414;
    --p-hero-glow:    rgba(239,68,68,.22);
    --p-nav-bg:       #2d0505;
    --p-footer-bg:    #1a0303;
}

/* ================================================================
   ESTILOS — usan las variables de arriba, no cambian por tema
   ================================================================ */

.perfil-page {
    background-color: var(--p-bg);
    color: var(--p-text);
    font-family: 'Roboto', sans-serif;
    transition: background-color .35s, color .35s;
}

.perfil-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Subnav sticky ───────────────────────────────────────────── */
.perfil-subnav {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--p-nav-bg);
    border-bottom: 2px solid var(--p-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transition: background .35s, border-color .35s;
}
.perfil-subnav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    gap: 16px;
}
.perfil-subnav-links { display: flex; gap: 4px; }
.ps-link {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background .2s, color .2s;
}
.ps-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.ps-link.active { color: var(--p-primary); background: rgba(255,255,255,.08); }

/* ── Subnav derecha ──────────────────────────────────────────── */
.perfil-price-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(90deg, var(--p-primary), var(--p-primary-dark));
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    transition: transform .18s, box-shadow .18s, background .35s;
    animation: perfil-pulse 2.5s ease-in-out infinite;
}
.perfil-price-cta:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
    text-decoration: none;
    color: #fff !important;
}
.perfil-price-cta strong { font-size: 14px; font-weight: 800; }
.perfil-price-cta .fa-star { font-size: 11px; opacity: .9; }
.perfil-price-cta .fa-chevron-right { font-size: 10px; opacity: .75; }

@keyframes perfil-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(0,0,0,.25); }
    50%       { box-shadow: 0 2px 18px rgba(34,190,248,.45); }
}

/* ── Botón paleta / magic wand ───────────────────────────────── */
.perfil-palette-wrap { position: relative; }

.perfil-palette-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}
.perfil-palette-btn:hover {
    background: rgba(255,255,255,.22);
    transform: rotate(15deg);
}

/* Dropdown de paleta */
.perfil-palette-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(5,14,28,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 12px;
    gap: 10px;
    flex-wrap: wrap;
    width: 148px;
    box-shadow: 0 12px 36px rgba(0,0,0,.5);
    z-index: 1000;
}
.perfil-palette-dropdown.open { display: flex; }

.palette-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,.18);
    transition: transform .18s, border-color .18s, box-shadow .18s;
    flex-shrink: 0;
    position: relative;
}
.palette-circle:hover {
    transform: scale(1.18);
    border-color: rgba(255,255,255,.65);
}
.palette-circle.active {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.28);
}
/* check en el círculo activo */
.palette-circle.active::after {
    content: '\f00c';
    font-family: FontAwesome;
    font-size: 12px;
    color: #fff;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
/* Negro necesita borde visible */
.palette-circle.negro { border-color: rgba(255,255,255,.40); }

/* ── Hero ────────────────────────────────────────────────────── */
.perfil-hero {
    position: relative;
    padding: 70px 0 60px;
    overflow: hidden;
}
.perfil-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--p-hero-a) 0%, var(--p-hero-b) 50%, var(--p-hero-c) 100%);
    z-index: 0;
    transition: background .35s;
}
.perfil-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, var(--p-hero-glow) 0%, transparent 65%);
    transition: background .35s;
}
.perfil-hero .perfil-container { position: relative; z-index: 1; }
.perfil-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    flex-wrap: wrap;
}

/* Avatar */
.perfil-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    padding-right: 36px;
    border-right: 1px solid rgba(255,255,255,.12);
}
.perfil-avatar-img,
.perfil-avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--p-primary);
    box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 8px 32px rgba(0,0,0,.3);
    object-fit: cover;
    transition: border-color .35s;
}
.perfil-avatar-placeholder {
    background: linear-gradient(135deg, var(--p-hero-b), var(--p-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 700;
    color: #fff;
}
.perfil-badge-disponible {
    margin-top: 14px;
    position: static;
    transform: none;
    background: #16c784;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(22,199,132,.35);
}
.perfil-badge-disponible .fa { font-size: 8px; vertical-align: middle; margin-right: 3px; }

/* Info hero */
.perfil-hero-info { flex: 1; min-width: 260px; padding-left: 8px; }
.perfil-nombre {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.perfil-titulo {
    color: var(--p-primary);
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 6px;
    transition: color .35s;
}
.perfil-zona { color: rgba(255,255,255,.7); font-size: 13px; margin: 0 0 12px; }
.perfil-zona .fa { margin-right: 4px; }

/* Rating */
.perfil-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 20px;
}
.perfil-rating .fa-star,
.perfil-rating .fa-star-half-o { color: #f0a500; font-size: 14px; }
.rating-num   { color: #fff; font-weight: 700; font-size: 14px; margin-left: 6px; }
.rating-count { color: rgba(255,255,255,.55); font-size: 12px; }

/* Quick stats */
.perfil-quick-stats {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 24px;
    width: fit-content;
    backdrop-filter: blur(4px);
}
.pqs-item { display: flex; flex-direction: column; align-items: center; padding: 0 18px; }
.pqs-item strong { color: var(--p-primary); font-size: 20px; font-weight: 700; line-height: 1; transition: color .35s; }
.pqs-item span   { color: rgba(255,255,255,.65); font-size: 11px; margin-top: 3px; }
.pqs-sep         { width: 1px; height: 32px; background: rgba(255,255,255,.18); }

/* CTAs */
.perfil-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .2s;
}
.cta-btn:hover { transform: translateY(-2px); text-decoration: none; }

.cta-whatsapp {
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(37,211,102,.35);
}
.cta-whatsapp:hover { background: #1eb85a; box-shadow: 0 6px 20px rgba(37,211,102,.45); }

.cta-llamar {
    background: rgba(255,255,255,.15);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.35);
}
.cta-llamar:hover { background: rgba(255,255,255,.25); }

.cta-portafolio {
    background: var(--p-primary);
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
    transition: background .2s, transform .15s;
}
.cta-portafolio:hover { background: var(--p-primary-dark); }

/* ── Redes sociales ──────────────────────────────────────────── */
.perfil-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff !important;
    transition: transform .18s, background .2s, border-color .2s;
}
.social-btn:hover { transform: translateY(-3px) scale(1.1); text-decoration: none; }

.social-facebook:hover  { background: #1877f2; border-color: #1877f2; }
.social-instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.social-linkedin:hover  { background: #0a66c2; border-color: #0a66c2; }
.social-indeed:hover    { background: #003a9b; border-color: #003a9b; }
.social-x:hover         { background: #000; border-color: #555; }

.social-indeed-text,
.social-x-text {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.social-x-text { font-size: 15px; }

/* ── Sobre mí ────────────────────────────────────────────────── */
.perfil-about {
    padding: 56px 0;
    background: var(--p-surface);
    transition: background .35s;
}
.perfil-about-inner {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.about-text       { flex: 1; min-width: 260px; }
.about-text p     { color: var(--p-text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 20px; transition: color .35s; }
.about-chips      { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    background: var(--p-chip-bg);
    color: var(--p-chip-text);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    transition: background .35s, color .35s;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex-shrink: 0;
    width: 340px;
}
.about-stat-card {
    background: var(--p-surface-2);
    border: 1px solid var(--p-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--p-shadow);
    transition: background .35s, border-color .35s, box-shadow .2s;
}
.about-stat-card:hover { box-shadow: var(--p-shadow-hover); }
.about-stat-card .fa   { font-size: 22px; color: var(--p-primary); margin-bottom: 8px; display: block; transition: color .35s; }
.about-stat-card strong { display: block; font-size: 20px; font-weight: 700; color: var(--p-text); line-height: 1.1; transition: color .35s; }
.about-stat-card span   { font-size: 12px; color: var(--p-text-muted); margin-top: 2px; display: block; transition: color .35s; }

/* ── Títulos de sección ──────────────────────────────────────── */
.perfil-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--p-text);
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
    transition: color .35s;
}
.perfil-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--p-primary);
    border-radius: 2px;
    transition: background .35s;
}

/* ── Portafolio ──────────────────────────────────────────────── */
.perfil-portfolio {
    padding: 56px 0;
    background: var(--p-bg);
    transition: background .35s;
}
.perfil-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.portfolio-filters { display: flex; gap: 8px; }
.pf-btn {
    background: var(--p-surface);
    border: 1px solid var(--p-border);
    color: var(--p-text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    font-family: 'Roboto', sans-serif;
}
.pf-btn:hover,
.pf-btn.active {
    background: var(--p-primary);
    border-color: var(--p-primary);
    color: #fff;
}

.perfil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.perfil-prop-card {
    background: var(--p-surface);
    border: 1px solid var(--p-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--p-shadow);
    transition: box-shadow .25s, transform .25s, background .35s, border-color .35s;
}
.perfil-prop-card:hover { box-shadow: var(--p-shadow-hover); transform: translateY(-4px); }
.perfil-prop-card.hidden { display: none; }

.prop-thumb {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prop-thumb::before {
    content: '\f015';
    font-family: FontAwesome;
    font-size: 40px;
    color: rgba(255,255,255,.2);
}
.prop-thumb-img {
    background-size: cover;
    background-position: center;
}
.prop-thumb-img::before { display: none; }
.prop-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}
.prop-tipo {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}
.prop-tipo-venta { background: var(--p-primary); color: #fff; transition: background .35s; }
.prop-tipo-renta { background: #f0a500; color: #fff; }

.prop-body    { padding: 18px; }
.prop-titulo  { font-size: 15px; font-weight: 700; color: var(--p-text); margin: 0 0 6px; line-height: 1.3; transition: color .35s; }
.prop-precio  { font-size: 18px; font-weight: 700; color: var(--p-primary); margin: 0 0 10px; transition: color .35s; }
.prop-meta    { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.prop-meta span  { font-size: 12px; color: var(--p-text-muted); transition: color .35s; }
.prop-meta .fa   { margin-right: 3px; color: var(--p-primary); transition: color .35s; }

.prop-actions { display: flex; gap: 8px; }
.prop-btn-detail {
    flex: 1;
    text-align: center;
    background: var(--p-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 0;
    border-radius: 7px;
    text-decoration: none;
    transition: background .2s;
}
.prop-btn-detail:hover { background: var(--p-primary-dark); text-decoration: none; }
.prop-btn-wa {
    background: #25d366;
    color: #fff !important;
    font-size: 16px;
    width: 40px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .2s;
}
.prop-btn-wa:hover { background: #1eb85a; }

/* ── Contacto ────────────────────────────────────────────────── */
.perfil-contact {
    padding: 56px 0;
    background: var(--p-surface);
    transition: background .35s;
}
.perfil-contact-inner { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.contact-info-panel   { flex: 1; min-width: 260px; }
.contact-info-panel p { color: var(--p-text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; transition: color .35s; }

.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--p-surface-2);
    border: 1px solid var(--p-border);
    border-radius: 10px;
    text-decoration: none;
    transition: box-shadow .2s, transform .15s, background .35s, border-color .35s;
}
.contact-link-item:hover { transform: translateX(4px); box-shadow: var(--p-shadow); text-decoration: none; }
.contact-link-item .fa   { font-size: 20px; width: 36px; text-align: center; flex-shrink: 0; }
.contact-wa  .fa         { color: #25d366; }
.contact-tel .fa,
.contact-ubicacion .fa   { color: var(--p-primary); transition: color .35s; }
.contact-link-item div strong { display: block; font-size: 13px; font-weight: 700; color: var(--p-text); transition: color .35s; }
.contact-link-item div span   { font-size: 12px; color: var(--p-text-muted); transition: color .35s; }

.contact-form-panel {
    flex: 1;
    min-width: 280px;
    background: var(--p-surface-2);
    border: 1px solid var(--p-border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--p-shadow);
    transition: background .35s, border-color .35s;
}
.contact-form-panel h3 { font-size: 18px; font-weight: 700; color: var(--p-text); margin: 0 0 22px; transition: color .35s; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-field   { margin-bottom: 14px; }
.pf-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--p-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color .35s;
}
.pf-field input,
.pf-field select,
.pf-field textarea {
    width: 100%;
    background: var(--p-surface);
    border: 1px solid var(--p-border);
    color: var(--p-text);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .35s, color .35s;
}
.pf-field input:focus,
.pf-field select:focus,
.pf-field textarea:focus {
    border-color: var(--p-primary);
    box-shadow: 0 0 0 3px rgba(var(--p-primary), .15);
}
.pf-field input::placeholder,
.pf-field textarea::placeholder { color: var(--p-text-muted); opacity: .7; }
.pf-field select { cursor: pointer; }

.pf-submit {
    width: 100%;
    background: var(--p-primary);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    transition: background .2s, transform .15s, box-shadow .2s;
}
.pf-submit:hover { background: var(--p-primary-dark); transform: translateY(-1px); }
.pf-submit:active { transform: translateY(0); }

/* ── Pricing ─────────────────────────────────────────────────── */
.perfil-pricing {
    padding: 64px 0;
    background: var(--p-bg);
    transition: background .35s;
}
.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}
.pricing-header p {
    color: var(--p-text-muted);
    font-size: 15px;
    margin: 0 0 28px;
    transition: color .35s;
}

/* Toggle */
.pricing-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--p-surface);
    border: 2px solid var(--p-primary);
    border-radius: 50px;
    padding: 10px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
    transition: background .35s, border-color .35s;
}
.ptoggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--p-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color .2s;
    user-select: none;
}
.ptoggle-label.active { color: var(--p-primary); }
.ptoggle-badge {
    background: #16c784;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: #c8dff2;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background .25s;
    flex-shrink: 0;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.pricing-toggle[aria-checked="true"] { background: var(--p-primary); }
.pricing-toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.25);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.pricing-toggle[aria-checked="true"] .pricing-toggle-knob { transform: translateX(24px); }

/* Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 780px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--p-surface);
    border: 1px solid var(--p-border);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    box-shadow: var(--p-shadow);
    transition: background .35s, border-color .35s, box-shadow .25s;
}
.pricing-card:hover { box-shadow: var(--p-shadow-hover); }

.pricing-card-pro {
    border-color: var(--p-primary);
    box-shadow: 0 0 0 1px var(--p-primary), var(--p-shadow);
}
.pricing-card-pro:hover {
    box-shadow: 0 0 0 1px var(--p-primary), var(--p-shadow-hover);
}

.pc-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--p-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 16px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background .35s;
}
.pc-plan {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--p-primary);
    margin-bottom: 16px;
    transition: color .35s;
}
.pc-price-wrap {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 4px;
}
.pc-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--p-text);
    line-height: 1;
    transition: color .35s;
}
.pc-period {
    font-size: 15px;
    color: var(--p-text-muted);
    margin-bottom: 6px;
    transition: color .35s;
}
.pc-annual-note {
    font-size: 12px;
    color: var(--p-text-muted);
    min-height: 18px;
    margin-bottom: 24px;
    transition: color .35s;
}
.pc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pc-features li {
    font-size: 13px;
    color: var(--p-text);
    display: flex;
    align-items: center;
    gap: 9px;
    transition: color .35s;
}
.pc-features li .fa-check { color: var(--p-primary); transition: color .35s; }
.pc-features li .fa-times  { color: var(--p-border); }
.pc-disabled { opacity: .45; }

.pc-cta {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--p-primary);
    color: var(--p-primary) !important;
    transition: background .2s, color .2s;
}
.pc-cta:hover { background: var(--p-primary); color: #fff !important; text-decoration: none; }
.pc-cta-pro {
    background: var(--p-primary);
    color: #fff !important;
}
.pc-cta-pro:hover { background: var(--p-primary-dark); border-color: var(--p-primary-dark); }

.pricing-disclaimer {
    text-align: center;
    color: var(--p-text-muted);
    font-size: 12px;
    margin-top: 24px;
    transition: color .35s;
}
.pricing-disclaimer .fa { margin-right: 5px; }

@media (max-width: 600px) {
    .pricing-cards { grid-template-columns: 1fr; max-width: 360px; }
}

/* ── CTA móvil fijo ──────────────────────────────────────────── */
.pm-mobile-cta {
    display: none;
}
@media (max-width: 768px) {
    .pm-mobile-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--p-nav-bg);
        border-top: 2px solid var(--p-primary);
        box-shadow: 0 -4px 24px rgba(0,0,0,.35);
        transition: background .35s, border-color .35s;
    }
    .pm-mobile-cta-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        max-width: 480px;
        margin: 0 auto;
    }
    .pm-mobile-cta-text {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    .pm-mobile-label {
        font-size: 11px;
        color: rgba(255,255,255,.55);
        font-weight: 500;
    }
    .pm-mobile-price {
        font-size: 13px;
        color: rgba(255,255,255,.85);
        font-weight: 500;
    }
    .pm-mobile-price strong {
        font-size: 18px;
        font-weight: 800;
        color: var(--p-primary);
        transition: color .35s;
    }
    .pm-mobile-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--p-primary);
        color: #fff;
        border: none;
        padding: 12px 22px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        font-family: 'Roboto', sans-serif;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: 0 4px 16px rgba(0,0,0,.25);
        animation: pm-mobile-pulse 2.2s ease-in-out infinite;
        transition: background .2s, transform .15s;
    }
    .pm-mobile-btn:active { transform: scale(.97); }
    @keyframes pm-mobile-pulse {
        0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,.25); }
        50%       { box-shadow: 0 4px 24px color-mix(in srgb, var(--p-primary) 60%, transparent); }
    }
    /* Espacio para que el footer no quede tapado por el CTA */
    .perfil-footer { padding-bottom: calc(18px + 68px + env(safe-area-inset-bottom)); }
}

/* ── Modal precio ────────────────────────────────────────────── */
.pm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pm-overlay.open { display: flex; }

.pm-box {
    background: var(--p-surface);
    border-radius: 20px;
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    border: 1px solid var(--p-border);
    animation: pm-in .25s cubic-bezier(.34,1.56,.64,1);
    transition: background .35s, border-color .35s;
}
@keyframes pm-in {
    from { opacity:0; transform: scale(.92) translateY(12px); }
    to   { opacity:1; transform: scale(1)   translateY(0);    }
}

.pm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--p-surface-2);
    border: 1px solid var(--p-border);
    color: var(--p-text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background .2s, color .2s;
}
.pm-close:hover { background: var(--p-primary); color: #fff; border-color: var(--p-primary); }

.pm-header { text-align: center; margin-bottom: 20px; }
.pm-tag {
    display: inline-block;
    background: var(--p-chip-bg);
    color: var(--p-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    transition: background .35s, color .35s;
}
.pm-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--p-text);
    margin: 0 0 6px;
    transition: color .35s;
}
.pm-subtitle {
    font-size: 13px;
    color: var(--p-text-muted);
    margin: 0 0 20px;
    transition: color .35s;
}

/* Toggle del modal */
.pm-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--p-surface-2);
    border: 1px solid var(--p-border);
    border-radius: 50px;
    padding: 8px 18px;
    transition: background .35s, border-color .35s;
}
.pm-tlabel {
    font-size: 13px;
    font-weight: 600;
    color: var(--p-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color .2s;
    user-select: none;
}
.pm-tlabel.active { color: var(--p-primary); }
.pm-badge-off {
    background: #16c784;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
}
.pm-toggle {
    display: inline-flex;
    align-items: center;
    width: 48px;
    height: 26px;
    border-radius: 13px;
    background: #c8dff2;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    flex-shrink: 0;
    transition: background .25s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.pm-toggle[aria-checked="true"] { background: var(--p-primary); }
.pm-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.25);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.pm-toggle[aria-checked="true"] .pm-knob { transform: translateX(22px); }

/* Precio */
.pm-price-block {
    text-align: center;
    margin: 16px 0 20px;
}
.pm-price {
    font-size: 52px;
    font-weight: 800;
    color: var(--p-primary);
    line-height: 1;
    transition: color .35s;
}
.pm-period {
    font-size: 18px;
    font-weight: 400;
    color: var(--p-text-muted);
}
.pm-annual-info {
    font-size: 12px;
    color: var(--p-text-muted);
    margin-top: 4px;
    min-height: 18px;
    transition: color .35s;
}

/* Features */
.pm-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    border-top: 1px solid var(--p-border);
    border-bottom: 1px solid var(--p-border);
    padding: 18px 0;
    transition: border-color .35s;
}
.pm-features li {
    font-size: 13px;
    color: var(--p-text);
    display: flex;
    align-items: center;
    gap: 9px;
    transition: color .35s;
}
.pm-features li .fa { color: var(--p-primary); font-size: 14px; transition: color .35s; }
.pm-disabled { opacity: .4; }
.pm-disabled .fa { color: var(--p-text-muted) !important; }

/* CTAs */
.pm-cta {
    display: block;
    text-align: center;
    background: var(--p-primary);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 14px;
    transition: background .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.pm-cta:hover { background: var(--p-primary-dark); transform: translateY(-1px); text-decoration: none; }

.pm-all-plans {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--p-text-muted) !important;
    text-decoration: none;
    transition: color .2s;
}
.pm-all-plans:hover { color: var(--p-primary) !important; text-decoration: none; }
.pm-all-plans .fa   { margin-left: 4px; font-size: 11px; }

/* ── Footer ──────────────────────────────────────────────────── */
.perfil-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: var(--p-footer-bg);
    font-size: 13px;
    transition: background .35s;
}
.perfil-footer-name  { color: rgba(255,255,255,.75); font-weight: 600; }
.perfil-footer-sep   { color: rgba(255,255,255,.3); }
.perfil-footer-brand { color: var(--p-primary); text-decoration: none; font-weight: 600; transition: color .35s; }
.perfil-footer-brand:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .perfil-nombre   { font-size: 24px; }
    .pqs-item        { padding: 0 10px; }
    .pqs-item strong { font-size: 16px; }
    .about-stats     { width: 100%; grid-template-columns: 1fr 1fr; }
    .about-text      { width: 100%; }
    .perfil-contact-inner { flex-direction: column; }
    .form-row-2      { grid-template-columns: 1fr; }
    .perfil-section-header { flex-direction: column; align-items: flex-start; }
    .perfil-ctas .cta-btn  { font-size: 12px; padding: 9px 14px; }
    .perfil-grid     { grid-template-columns: 1fr; }
    .perfil-social   { justify-content: center; }
}

@media (max-width: 480px) {
    .perfil-hero     { padding: 40px 0 32px; }
    .perfil-hero-content { flex-direction: column; align-items: center; text-align: center; }
    .perfil-avatar-wrap {
        width: auto;
        padding-right: 0;
        border-right: none;
    }
    .perfil-avatar-img,
    .perfil-avatar-placeholder { width: 120px; height: 120px; }
    .perfil-avatar-placeholder  { font-size: 46px; }
    .perfil-badge-disponible    { margin-top: 10px; }
    .perfil-nombre { font-size: 28px; letter-spacing: 0; }
    .perfil-rating,
    .perfil-quick-stats  { justify-content: center; }
    .perfil-quick-stats  { width: 100%; }
    .pqs-item        { flex: 1; }
    .perfil-section-title::after { left: 50%; transform: translateX(-50%); }
    .perfil-section-title { text-align: center; }
    .perfil-ctas     { justify-content: center; }
    .ps-link         { font-size: 12px; padding: 5px 10px; }
    .perfil-palette-dropdown { right: -10px; }

    /* Price CTA: segunda línea pegada a la derecha */
    .perfil-subnav-inner  { flex-wrap: wrap; height: auto; padding: 6px 20px 0; gap: 0; }
    .perfil-subnav-links  { order: 1; flex: 1; }
    .perfil-palette-wrap  { order: 2; }
    .perfil-price-cta {
        order: 3;
        width: calc(100% + 40px);
        margin: 4px -20px 0;
        justify-content: flex-end;
        border-radius: 0;
        padding: 5px 20px;
        font-size: 11px;
        animation: none;
        box-shadow: none;
        background: linear-gradient(90deg, transparent, var(--p-primary-dark) 40%, var(--p-primary));
    }

    /* Descripción centrada */
    .about-text p    { text-align: center; }
    .about-chips     { justify-content: center; }

    /* Contacto centrado */
    .contact-info-panel p { text-align: center; }
    .contact-info-panel .perfil-section-title { text-align: center; }

    /* Títulos de cards centrados */
    .prop-titulo     { text-align: center; }
    .prop-precio     { text-align: center; }
    .prop-meta       { justify-content: center; }

    /* Redes sociales centradas */
    .perfil-social   { justify-content: center; }
}
