/* ============================================================
   PQR - Ingenieros de Antioquia
   Paleta: #FE5A00 (naranja) + #000 (negro) + #fff (blanco)
   ============================================================ */

:root {
    --orange:      #FE5A00;
    --orange-dark: #d44c00;
    --orange-light:#ff7a30;
    --orange-glow: rgba(254,90,0,0.25);
    --black:       #000000;
    --dark:        #0d0d0d;
    --dark2:       #1a1a1a;
    --dark3:       #2a2a2a;
    --white:       #ffffff;
    --gray:        #f5f5f5;
    --gray2:       #e8e8e8;
    --text:        #1a1a1a;
    --text-soft:   #555;
    --radius:      14px;
    --radius-lg:   22px;
    --shadow:      0 8px 32px rgba(0,0,0,0.12);
    --shadow-lg:   0 20px 60px rgba(0,0,0,0.18);
    --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================================
   PARTÍCULAS ANIMADAS
   ============================================================ */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0;
    animation: floatUp var(--dur, 8s) var(--delay, 0s) infinite ease-in;
}
@keyframes floatUp {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.4; }
    90%  { opacity: 0.15; }
    100% { transform: translateY(-120px) scale(1); opacity: 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: relative;
    z-index: 10;
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(254,90,0,0.3);
    padding: 16px 32px;
    position: sticky;
    top: 0;
    animation: slideDown 0.6s ease both;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo-wrap {
    background: var(--white);
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    box-shadow: 0 0 0 2px var(--orange);
}
.logo { height: 44px; width: auto; display: block; }
.header-title h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}
.header-title p {
    font-size: 0.78rem;
    color: var(--orange);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    z-index: 2;
    padding: 64px 24px 48px;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse at center, rgba(254,90,0,0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite alternate;
}
@keyframes pulse {
    from { transform: translateX(-50%) scale(0.9); opacity: 0.7; }
    to   { transform: translateX(-50%) scale(1.1); opacity: 1; }
}
.hero-content { max-width: 900px; margin: 0 auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(254,90,0,0.15);
    border: 1px solid rgba(254,90,0,0.4);
    color: var(--orange-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    animation: fadeInUp 0.7s ease both 0.2s;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
    animation: fadeInUp 0.7s ease both 0.3s;
}
.hero-title .highlight {
    color: var(--orange);
    position: relative;
}
.hero-title .highlight::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), transparent);
    border-radius: 2px;
    animation: widthExpand 1s ease both 1s;
}
@keyframes widthExpand {
    from { width: 0; }
    to   { width: 100%; }
}
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 600px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.7s ease both 0.4s;
}

/* ============================================================
   CARDS TIPO PQR
   ============================================================ */
.tipo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
    animation: fadeInUp 0.7s ease both 0.5s;
}
.tipo-card {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.tipo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(254,90,0,0.12), transparent);
    opacity: 0;
    transition: var(--transition);
}
.tipo-card:hover, .tipo-card.active {
    border-color: var(--orange);
    background: rgba(254,90,0,0.1);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(254,90,0,0.25);
}
.tipo-card:hover::before, .tipo-card.active::before { opacity: 1; }
.tipo-card.active {
    box-shadow: 0 0 0 3px rgba(254,90,0,0.4), 0 12px 40px rgba(254,90,0,0.25);
}
.tipo-icon {
    width: 64px; height: 64px;
    background: rgba(254,90,0,0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--orange);
    transition: var(--transition);
}
.tipo-card:hover .tipo-icon, .tipo-card.active .tipo-icon {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
}
.tipo-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}
.tipo-card p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* ============================================================
   FORMULARIO
   ============================================================ */
.form-section {
    position: relative;
    z-index: 2;
    padding: 0 24px 80px;
}
.form-container {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(254,90,0,0.15);
    overflow: hidden;
    animation: fadeInUp 0.8s ease both 0.6s;
    color: var(--text);
}
.form-header {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    padding: 28px 36px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.form-icon {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}
.form-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}
.form-header p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
}

/* Alerts */
.alert {
    margin: 24px 36px 0;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 0.4s ease;
}
.alert-success { background: #f0faf4; border: 1px solid #a3e6bc; color: #1a7a40; }
.alert-error   { background: #fff5f5; border: 1px solid #f5a3a3; color: #c53030; }

/* Badge tipo seleccionado */
.selected-tipo {
    margin: 20px 36px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff8f5;
    border: 1px solid var(--orange);
    color: var(--orange);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: fadeInUp 0.3s ease;
}
.tipo-requerido {
    margin: 8px 36px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c53030;
    font-size: 0.82rem;
}

/* Grid del formulario */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 28px 36px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group label svg { color: var(--orange); }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--gray2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-glow);
    background: #fffbf8;
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.15);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FE5A00' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Contador de caracteres */
.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 4px;
}

/* Error campo */
.field-error {
    font-size: 0.78rem;
    color: #e53e3e;
    min-height: 18px;
    display: block;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.checkbox-group input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--orange);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}
.checkbox-label {
    font-size: 0.85rem !important;
    color: var(--text-soft) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    line-height: 1.6;
    cursor: pointer;
}

/* Footer del form */
.form-footer {
    padding: 0 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--gray2);
    padding-top: 24px;
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    min-width: 220px;
}
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-submit:hover::before { left: 100%; }
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(254,90,0,0.5);
}
.btn-submit:active { transform: translateY(0); }
.btn-text, .btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.form-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #888;
}
.form-note svg { color: var(--orange); }

/* ============================================================
   SECCIÓN INFO CARDS
   ============================================================ */
.info-section {
    position: relative;
    z-index: 2;
    padding: 0 24px 80px;
}
.info-grid {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease both;
}
.info-card:nth-child(1) { animation-delay: 0.7s; }
.info-card:nth-child(2) { animation-delay: 0.8s; }
.info-card:nth-child(3) { animation-delay: 0.9s; }
.info-card:hover {
    border-color: rgba(254,90,0,0.3);
    background: rgba(254,90,0,0.06);
    transform: translateY(-4px);
}
.info-icon {
    width: 60px; height: 60px;
    background: rgba(254,90,0,0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--orange);
    transition: var(--transition);
}
.info-card:hover .info-icon {
    background: var(--orange);
    color: var(--white);
}
.info-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.info-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}
.info-card p strong { color: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.6);
    border-top: 1px solid rgba(254,90,0,0.2);
    padding: 36px 24px;
    text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.footer p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.8;
}

/* ============================================================
   MODAL DE ÉXITO
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    color: var(--text);
    animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
@keyframes scaleIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.modal-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.modal-icon.success {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    box-shadow: 0 8px 30px rgba(254,90,0,0.4);
    animation: bounceIn 0.6s ease both 0.2s;
}
@keyframes bounceIn {
    0%   { transform: scale(0); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.modal h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}
.modal p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.radicado-box {
    background: #fff8f5;
    border: 2px solid var(--orange);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.radicado-box span { font-size: 0.78rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.radicado-box strong { font-size: 1.3rem; color: var(--orange); letter-spacing: 2px; }
.btn-modal {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254,90,0,0.4);
}

/* ============================================================
   ANIMACIONES COMUNES
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
    .header { padding: 12px 16px; }
    .header-title h1 { font-size: 1rem; }
    .header-title p { font-size: 0.7rem; }
    .logo { height: 36px; }

    .hero { padding: 40px 16px 32px; }
    .hero-subtitle { font-size: 0.95rem; }
    .tipo-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tipo-card { padding: 20px 14px; }

    .form-section { padding: 0 16px 60px; }
    .form-grid { grid-template-columns: 1fr; gap: 16px; padding: 20px 20px; }
    .form-group.full-width { grid-column: 1; }
    .form-header { padding: 22px 20px; }
    .form-footer { padding: 20px 20px 24px; }
    .selected-tipo { margin: 16px 20px 0; }
    .tipo-requerido { margin: 6px 20px 0; }
    .alert { margin: 16px 20px 0; }

    .btn-submit { width: 100%; padding: 16px 24px; }

    .info-section { padding: 0 16px 60px; }
    .info-grid { grid-template-columns: 1fr; }

    .modal { padding: 36px 24px; }
}

@media (max-width: 480px) {
    .tipo-cards { grid-template-columns: 1fr 1fr; }
    .tipo-card h3 { font-size: 0.85rem; }
    .tipo-card p { display: none; }
}
