* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #e0eafc 0%, #cfdef3 100%);
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
a{
    text-decoration: none;
}
.url{
    text-decoration:none;
}
/* Tarjeta principal */
.card {
    max-width: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 42px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0px);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: scale(1.01);
}

/* Encabezado */
.header {
    background: #1e2f5e;
    padding: 1.8rem 2rem;
    text-align: center;
    color: white;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header h1 span {
    background: #ffb347;
    padding: 4px 12px;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e2f5e;
}

.header p {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* contenido */
.content {
    padding: 2rem 2rem 2rem 2rem;
}

/* cada bloque de formulario */
.form-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.6rem;
}

.form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.label-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.label-icon i {
    font-size: 1.6rem;
}

.sub {
    font-size: 0.8rem;
    font-weight: normal;
    color: #475569;
    margin-left: 6px;
}

input {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    border: 2px solid #e2e8f0;
    border-radius: 28px;
    background: #fefefe;
    transition: all 0.25s;
    font-family: monospace;
    letter-spacing: 0.3px;
}

input:focus {
    outline: none;
    border-color: #1e2f5e;
    box-shadow: 0 0 0 3px rgba(30, 47, 94, 0.2);
    background: #ffffff;
}

.input-hint {
    font-size: 0.7rem;
    color: #5b6e8c;
    margin-top: 8px;
    margin-left: 12px;
}

/* botón guardar */
.save-section {
    display: flex;
    justify-content: flex-end;
    margin: 16px 0 12px 0;
}

.btn-save {
    background: #1e2f5e;
    color: white;
    border: none;
    padding: 12px 26px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-save:hover {
    background: #0f1e3f;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.btn-save:active {
    transform: translateY(1px);
}

/* Área de resultados / enlaces activos */
.links-panel {
    background: #f1f5f9;
    border-radius: 32px;
    padding: 1.4rem 1.6rem;
    margin-top: 28px;
    box-shadow: inset 0 1px 3px #0001, 0 4px 8px #0001;
}

.links-panel h3 {
    font-size: 1.1rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border-left: 4px solid #ffb347;
    padding-left: 12px;
}

.link-item {
    background: white;
    border-radius: 28px;
    padding: 14px 18px;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s;
    border: 1px solid #e9edf2;
}

.link-item:hover {
    border-color: #cbd5e1;
    background: #fffffffa;
}

.link-info {
    flex: 3;
    min-width: 150px;
    word-break: break-all;
}

.link-label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-url {
    font-family: monospace;
    font-size: 0.8rem;
    color: #1e293b;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}
.link-url a {
    text-decoration: none;
    color: #1e2f5e;
    font-weight: 500;
}
.link-url a:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-open, .btn-clear-one {
    border: none;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.1s linear;
}

.btn-open {
    background: #2c6e2f;
    color: white;
}
.btn-open:hover {
    background: #1f5522;
}
.btn-clear-one {
    background: #e2e8f0;
    color: #334155;
}
.btn-clear-one:hover {
    background: #cbd5e1;
}

.empty-message {
    font-size: 0.85rem;
    color: #5b6e8c;
    text-align: center;
    padding: 20px 10px;
    font-style: italic;
}

.reset-all {
    text-align: right;
    margin-top: 16px;
}
.btn-reset {
    background: transparent;
    border: none;
    color: #b91c1c;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px 10px;
    border-radius: 40px;
    transition: background 0.1s;
}
.btn-reset:hover {
    background: #fee2e2;
}

footer {
    font-size: 0.7rem;
    text-align: center;
    padding: 1rem;
    color: #5b6e8c;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 550px) {
    .content {
        padding: 1.5rem;
    }
    .link-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .action-buttons {
        align-self: flex-end;
    }
    .btn-save {
        width: 100%;
        justify-content: center;
    }
}