/* -----------------------------------
   RESET UNIVERSAL
----------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* -----------------------------------
   VARIABLES GLOBALES
----------------------------------- */
:root {
    /* Tipografías */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Merriweather', serif;

    /* Colores base */
    --color-bg: #f8f9fa;
    --color-text: #1f1f1f;
    --color-muted: #6b7280;

    /* Paleta UI */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;

    --success: #16a34a;
    --warning: #facc15;
    --danger: #dc2626;

    /* Bordes y sombras */
    --radius: 10px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
}

/* -----------------------------------
   TIPOGRAFÍA BASE
----------------------------------- */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--color-text);
}

p {
    color: var(--color-muted);
    margin-bottom: 1rem;
}

label {
    font-weight: 600;
    color: var(--color-text);
}

/* -----------------------------------
   CONTENEDORES BASE
----------------------------------- */
.view {
    padding: 2rem;
    max-width: 900px;
    margin: auto;
}

.view-header {
    margin-bottom: 2rem;
}

.view-content {
    margin-bottom: 2rem;
}

.view-footer {
    display: flex;
    justify-content: flex-end;
}

/* -----------------------------------
   BOTONES BASE
----------------------------------- */
button {
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-next {
    background: var(--primary);
    color: #fff;
}

.btn-next:hover {
    background: var(--primary-dark);
}

/* -----------------------------------
   INPUTS BASE
----------------------------------- */
input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    border: 1px solid #d1d5db;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    background: #fff;
    transition: 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* -----------------------------------
   TARJETAS BASE
----------------------------------- */
.cards-container {
    display: grid;
    gap: 1.5rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* -----------------------------------
   UTILIDADES BASE
----------------------------------- */
.hidden {
    display: none !important;
}

.center {
    text-align: center;
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Integración de Tipografía Roboto Flex para Párrafos y Formularios */
p, label, input, select, textarea, button, .form-group, .inline-capsule-input {
    font-family: "Roboto Flex", sans-serif !important;
    font-optical-sizing: auto;
    font-variation-settings:
      "slnt" 0,
      "wdth" 100,
      "GRAD" 0,
      "XOPQ" 96,
      "XTRA" 468,
      "YOPQ" 79,
      "YTAS" 750,
      "YTDE" -203,
      "YTFI" 738,
      "YTLC" 514,
      "YTUC" 712 !important;
}

/* Material Symbols Icon Configuration */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24 !important;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}

/* Custom Advent Pro font style for the Identity word in branding headers */
.brand-identity-word {
  font-family: "Advent Pro", sans-serif !important;
  font-weight: 136 !important;
  font-variation-settings: "wdth" 131, "wght" 136, "slnt" 1 !important;
  text-transform: none !important; /* Evita que se fuerce uppercase */
  font-size: 2.1rem;
  letter-spacing: normal !important;
  display: inline-block;
  vertical-align: middle;
}

/* --- BLOQUEO DE CAPTURAS DE PANTALLA --- */
@media print {
    body, html, #app {
        display: none !important;
    }
}

.screenshot-protected {
    transition: filter 0.25s ease;
    position: relative;
}

/* --- TECNOLOGÍA ANTI-FOTOGRAFÍAS EXTERNAS (MOIRÉ INTERFERENCE & ROLLING SHUTTER SHIFT) --- */
.anti-photo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.08) 0px,
            rgba(0, 0, 0, 0.08) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.06) 0px,
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px,
            transparent 2px
        );
    background-size: 3px 3px;
    opacity: 0.85;
    z-index: 99;
    animation: antiPhotoPulse 0.03s infinite linear;
}

@keyframes antiPhotoPulse {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(0.5px, 0.5px) scale(1.002);
        opacity: 0.95;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
}




#custom-glass-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999999 !important;
    display: none;
}
