/**
 * ═══════════════════════════════════════════════════════════════
 * OMNICARDS — AURA Theme
 * Pearl / Glass Aesthetic: pure, luminous, calm.
 * Efecto perla en cards y botones inspirado en marcelodolza.
 * Solo aplica bajo [data-theme="aura"].
 * ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   BASE CARD — Pearl glass
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] .bento-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 248, 240, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(240, 248, 255, 0.6) 0%, transparent 60%),
        linear-gradient(135deg, #faf6f0 0%, #f5f0eb 50%, #f8f4ef 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    box-shadow:
        inset 0 4px 12px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.04),
        inset 0 -8px 16px rgba(255, 255, 255, 0.6),
        0 12px 40px rgba(0, 0, 0, 0.06),
        0 4px 8px -2px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

[data-theme="aura"] .bento-card:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 4px 12px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.03),
        inset 0 -8px 16px rgba(255, 255, 255, 0.7),
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 6px 12px -2px rgba(0, 0, 0, 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   PEARL OVAL — ::before (glass highlight)
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] .bento-card::before {
    content: '';
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: 25%;
    top: -90%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.5) 0%, transparent 60%),
        rgba(255, 248, 240, 0.25);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.5s ease;
}

[data-theme="aura"] .bento-card:hover::before {
    transform: translateY(-8%);
}

/* ═══════════════════════════════════════════════════════════════
   PEARL SHINE — ::after (linear highlight)
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] .bento-card::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    top: 8%;
    bottom: 50%;
    border-radius: 20px 20px 0 0;
    box-shadow: inset 0 10px 8px -6px rgba(255, 255, 255, 0.8);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.05) 40%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease, transform 0.5s ease;
}

[data-theme="aura"] .bento-card:hover::after {
    opacity: 0.5;
    transform: translateY(6%);
}

/* ═══════════════════════════════════════════════════════════════
   CARD TITLE — Pearl header
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] .card-title {
    font-family: var(--font-sora);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   PER-CARD ACCENTS — Titles colored
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] #card-philosophy .card-title { color: var(--accent-philosophy); }
[data-theme="aura"] .bento-card--narrow .card-title { color: var(--accent-stack); }
[data-theme="aura"] #card-portfolio .card-title { color: var(--accent-portfolio); }
[data-theme="aura"] .bento-card--half:has(.contact-row) .card-title { color: var(--accent-contact); }
[data-theme="aura"] .bento-card--full .card-title { color: var(--accent-social); }

/* ═══════════════════════════════════════════════════════════════
   CONTENT — Layer above pearl effects
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] .card-heading {
    position: relative;
    z-index: 2;
}

[data-theme="aura"] .card-body {
    position: relative;
    z-index: 2;
}

[data-theme="aura"] .card-list {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT ROWS
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] .contact-row {
    color: #4a4a4a;
    position: relative;
    z-index: 2;
}

[data-theme="aura"] .contact-row svg {
    fill: none;
    stroke: #4a4a4a;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL LINKS — Pill minimal
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] .social-link {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    color: #4a4a4a;
    box-shadow: none;
    padding: 8px 20px;
    font-weight: 500;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
    position: relative;
    z-index: 2;
}

[data-theme="aura"] .social-link:hover {
    transform: none;
    border-color: var(--accent-social);
    color: var(--accent-social);
    box-shadow: none;
}

[data-theme="aura"] .social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS — Pearl style
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] .btn-primary {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 248, 240, 0.6) 0%, transparent 60%),
        linear-gradient(135deg, #faf6f0 0%, #f5f0eb 100%);
    color: #4a4a4a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    font-family: var(--font-sora);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    box-shadow:
        inset 0 3px 8px rgba(255, 255, 255, 0.7),
        inset 0 -2px 3px rgba(0, 0, 0, 0.04),
        inset 0 -6px 10px rgba(255, 255, 255, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.05),
        0 1px 3px -1px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

[data-theme="aura"] .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 3px 8px rgba(255, 255, 255, 0.8),
        inset 0 -2px 3px rgba(0, 0, 0, 0.03),
        inset 0 -6px 10px rgba(255, 255, 255, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.07),
        0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Pearl oval on buttons */
[data-theme="aura"] .btn-primary::before {
    content: '';
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: 20%;
    top: -100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    transition: transform 0.3s ease;
}

[data-theme="aura"] .btn-primary:hover::before {
    transform: translateY(-5%);
}

/* Pearl shine on buttons */
[data-theme="aura"] .btn-primary::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 8%;
    bottom: 50%;
    border-radius: 16px 16px 0 0;
    box-shadow: inset 0 6px 4px -4px rgba(255, 255, 255, 0.5);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="aura"] .btn-primary:hover::after {
    opacity: 0.4;
    transform: translateY(4%);
}

/* ═══════════════════════════════════════════════════════════════
   SAVE CONTACT BUTTON — Pearl with contact accent
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] #save-contact-btn {
    background: var(--accent-contact);
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    font-family: var(--font-sora);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

[data-theme="aura"] #save-contact-btn:hover {
    background: color-mix(in srgb, var(--accent-contact), #000 8%);
    transform: translateY(-1px);
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.35),
        inset 0 -1px 2px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   MODAL TITLES
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] #modal-philosophy-title {
    color: var(--accent-philosophy);
}

[data-theme="aura"] #modal-portfolio-title {
    color: var(--accent-portfolio);
}

/* ═══════════════════════════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

[data-theme="aura"] a:hover {
    color: var(--tertiary);
}

/* ═══════════════════════════════════════════════════════════════
   [18] SOUND TOGGLE — Pearl glass (njesenberger style)
   OFF: plateado · ON: verde AURA
   ═══════════════════════════════════════════════════════════════ */

[data-theme="aura"] .sound-toggle {
  font-size: 24px;
  border-radius: .5em;
  padding: .125em;
  background-image: linear-gradient(to bottom, #d5d5d5, #e8e8e8);
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

[data-theme="aura"] .sound-toggle-track {
  width: 3em;
  height: 1.5em;
  background-color: #e8e8e8;
  border-radius: .375em;
  box-shadow:
    inset 0 0 .0625em .125em rgba(255, 255, 255, 0.2),
    inset 0 .0625em .125em rgba(0, 0, 0, 0.4);
  transition: background-color .4s linear;
  border: none;
  backdrop-filter: none;
}

[data-theme="aura"] .sound-toggle-thumb {
  position: absolute;
  left: .125em;
  top: .125em;
  width: 1.25em;
  height: 1.25em;
  border-radius: .3125em;
  background-color: #e8e8e8;
  box-shadow:
    inset 0 -.0625em .0625em .125em rgba(0, 0, 0, 0.1),
    inset 0 -.125em .0625em rgba(0, 0, 0, 0.2),
    inset 0 .1875em .0625em rgba(255, 255, 255, 0.3),
    0 .125em .125em rgba(0, 0, 0, 0.5);
  transition: left .4s;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

[data-theme="aura"] .sound-toggle-thumb::before {
  content: '● ● ●';
  font-size: .3em;
  letter-spacing: .1em;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="aura"] .sound-toggle.active .sound-toggle-track {
  background-color: #66bb6a;
}

[data-theme="aura"] .sound-toggle.active .sound-toggle-thumb {
  left: calc(100% - 1.375em);
}

@media (max-width: 768px) {
  [data-theme="aura"] .sound-toggle {
    font-size: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   END OF AURA.CSS
   ══════════════════════════════════════════════════════════════ */
